PureBytes Links
Trading Reference Links
|
I am trying to build a module to compute the
support resistance lines for RT application
The line below deternines the last closing
bar.
The code works correctly except when I have clicked
on the chart and therefore selected a bar other than the last bar. The result I
get is with reference to the selected bar ... not the last bar that I
want.
How could I change this so that the last bar is
always referenced - to guarantee that operator interference (like clicking on
chart) does not affect results?
Thanks
Ara
EndTime = 131500;
LastBar =
ValueWhen(TimeNum()>EndTime-10000 and TimeNum() <=
EndTime,BarIndex(),1);
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Sponsor
ADVERTISEMENT
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.
|