PureBytes Links
Trading Reference Links
|
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;
//Indicators
Indicator1=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 bars
C1= 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:
>
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->
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:
http://docs.yahoo.com/info/terms/
|