Comment on Code your Technical Analysis strategy

Nithin Kamath commented on 03 Jun 2013, 11:41 AM

You can’t mention specific times, but you can say how many candles before the current candle using the REF function.

Suppose, you have an hourly chart and your intervals are 10:00:00, 11:00:00, 12:00:00 and so on.
Current time is 12:00:00, then
CLOSE denotes closing price of the candle at 12:00:00
REF (CLOSE, 1) denotes close at 11:00:00
REF (CLOSE, 2) denotes close at 10:00:00

View the full comment thread »