PureBytes Links
Trading Reference Links
|
Thankyou Dimitris for the Que.
As such I have re-worked the indicator - But still not
finished........
Here is the work sofar: (Selection Shift problem still to be
Fixed).
NumBarsShown =
Param("NumBarsShown",100,10,100,1);
SV =
SelectedValue(BarIndex());
T=LastValue(Cum(Status("barvisible"
))); // Total
Visible Bars
S=(Cum(Status("barvisible"
))); // Selected
Visible bar
NBS = (S +
NumBarsShown);
EndDisplayBar = SV + (t-s);
Blank =
IIf(BarIndex()
>
(SV-NBS),1,Null);
Plot(Blank*C,"Close",colorBlack,styleCandle);
//t=
Status("barvisible");
Title =
"\n SV :
" + SV +
"\n
TotalVisibleBars : " + T
+
"\n Sel Vis
Bar # : " + S +
"\n
EndDisp : " +
EndDisplayBar +
"\n NBS :
" + NBS;
At 09:23 PM 22/02/2004, you wrote:
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(tL1-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."
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/
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.
|