Trying to debug my code and noticed my multiple timeframe is not working.
I'm trying to find inside bars on 2Day bars.
When I plot the result it's not what I'm looking for. Could it be my understanding and use of the api is incorrect? Here's my code:
TimeFrameSet( 2*inDaily ); // switch now to 2Day bars inside2xDaily = High < Ref(High,-1) AND Low> Ref(Low, -1); TimeFrameRestore(); // restore time frame to original is2DayInsideBar=TimeFrameExpand(inside2xDaily, inDaily ); Plot( is2DayInsideBar, "Is2DayInsideBar", colorDefault, styleLine );