[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: IB vs AA trading ( was Can anyone help me Sort this out....)



PureBytes Links

Trading Reference Links

Ok, I have it.... Wooo Hoooo. Here is the Complete & working version of Hermans Original Limiting Number of Bars Shown code. Enjoy. NumBarsShown = Param("NumBarsShown",100,10,100,1); SV = SelectedValue(BarIndex()); T=LastValue(Cum(Status("barvisible" ))); // Total Visible Bars S=SelectedValue((Cum(Status("barvisible" )))); // Selected Visible bar EndDisplayBar = SV + (t-s); // Calc EndDisplayBar NBS =  (EndDisplayBar-NumBarsShown); Blank = IIf(BarIndex() > (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; 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.