PureBytes Links
Trading Reference Links
|
Thank
you DT, very nice code. Substitute PARAM() for the fixed LastBars, nice to play
with :-)
<FONT face=Arial color=#0000ff
size=2>
<FONT face=Arial color=#0000ff
size=2>herman.
<FONT face=Tahoma
size=2>-----Original Message-----From: DIMITRIS TSOKAKIS
[mailto:TSOKAKIS@xxxxxxxxx]Sent: Sunday, February 22, 2004 5:23
AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Re:
IB vs AA trading ( was Can anyone help me Sort this
out....)Michael,Herman, We may also have the last
20 Close bars at the left side of an Indicator pane.To avoid lines
confusion I erased the first 20 indicator dots and placed a white
separator.Lastbars=20;t=Cum(1);s=LastValue(Cum(Status("barvisible"
)));L1=LastValue(Cum(1));tr=S-LASTBARS;//IndicatorsIndicator1=StochK();Indicator2=StochD();Plot(IIf(t>L1-tr+1,Indicator1,Null),"",colorRed,8);Plot(IIf(t>L1-tr+1,Indicator2,Null),"",colorBlue,8);Plot(100*(t==L1-tr+1),"",colorWhite,2+styleThick);//The
last Close barsC1=
IIf(t<L1-Lastbars,Null,C);C1u=IIf(t<L1-Lastbars,Null,1.05*C);C1d=IIf(t<L1-Lastbars,Null,0.95*C);Plot(IIf(t>L1-tr,Null,Ref(C1,tr)),"c1",colorBlack,8+styleLeftAxisScale);//Instead
of Graphxspace [for the left
axis]Plot(IIf(t>L1-tr,Null,Ref(C1u,tr)),"c1",1,styleNoLine+styleLeftAxisScale);Plot(IIf(t>L1-tr,Null,Ref(C1d,tr)),"c1",1,styleNoLine+styleLeftAxisScale);Title=Name()+",
The last "+WriteVal(Lastbars,1.0)+" Close bars";It works automatically
for any zoom.Dimitris Tsokakis--- In amibroker@xxxxxxxxxxxxxxx,
"Michael.S.G." <OzFalcon@xxxx> wrote:>
Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend
SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|