How to get Current Price in afl?

#1
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.
 
Last edited:

amitrandive

Well-Known Member
#2
How to get Current 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.
Any1 know any other way please help.
Code:
TC=TimeFrameGetPrice("C",inDaily,0);
 
#3
Last edited:
#5
You can also try this :-
PlotText(" <---------- "+LastValue(C),BarCount,LastValue(C),42);
Again u r using "C" which is close price not the Current (live) price. :(
 

copypasteaee

Humbled by Markets
#6
Again u r using "C" which is close price not the Current (live) price. :(
You are your self confused... current price will be close price of the last candle at that moment.