How to write ltp code in amibroker

Hy traders,

how to write LTP code in amibroker

Thanks
Sarath

On live market the latest CLOSE function will be the LTP

No separate function for LTP .

thanks

Ltp = LastValue(C,1);

WHICH IS BETTER SIR, JUST USE " CLOSE" OR “Ltp = LastValue(C,1);”

// LTP
ltp = LastValue©;

// Signal Price
BuyPrice = ValueWhen(Buy,C);
SellPrice = ValueWhen(Sell,C);

1 Like