How to get Current(Live) Price in afl? I already tried Close, Getrtdata , and Lastvalue.
None works as close gives price at the end of the candle
Getrtdata works only on real time
Last value works same as close.
Suppose for 5min candles I want price at 11.03 am which is actually after open[11.00] n b4 close[11.05] of that candle. Any1 know any other way please help.
1 Like
Use "Last Traded Price = "+GetRTData("Last");Â
This code would retrieve the last traded price of the selected instrument.
You can use “Lookup” in AmiBroker AFL to get required close value at a particular time.
For more details, please check below link
http://www.amibroker.com/guide/afl/lookup.html
Regards
Vivith
(Authorized real time data vendor of NSE supporting data feeds to Amibroker, Metastock and Ninjatrader)