Hi,
I am having a specific problem with INV. To make it simple, I will put it this way. My chart interval is 5 min and I fetch last 5 days high low values for every new 5min candle that forms using
lasthigh1 = high(-1, inv("D"));
lasthigh2 = high(-2, inv("D")); .. and so on.
I get the right values for lasthigh1 and lasthigh2 when first 5M candle of the day closes and new tick arrives for next 5M. Thereafter, for every new 5M candle tick , i get null for lasthigh1 and lasthigh2. I am calling those exact two lines for every new 5M candle. I tried backtesting and got the same, even on live charts.
Any idea what is wrong with inv("D") for subsequent candles on smaller timeframe?
My esignal version is 10.6.2425.1208
Thanks.
I am having a specific problem with INV. To make it simple, I will put it this way. My chart interval is 5 min and I fetch last 5 days high low values for every new 5min candle that forms using
lasthigh1 = high(-1, inv("D"));
lasthigh2 = high(-2, inv("D")); .. and so on.
I get the right values for lasthigh1 and lasthigh2 when first 5M candle of the day closes and new tick arrives for next 5M. Thereafter, for every new 5M candle tick , i get null for lasthigh1 and lasthigh2. I am calling those exact two lines for every new 5M candle. I tried backtesting and got the same, even on live charts.
Any idea what is wrong with inv("D") for subsequent candles on smaller timeframe?
My esignal version is 10.6.2425.1208
Thanks.
Comment