Hi, I am using n-tick charts and would like to plot a ribbon that shows the trend as defined in a 259-tick time frame. How can I correct the following code to do this, please?
TimeFrameMode(1); TimeFrameSet(259);//259t bbtrendup259 = H > Ref(H,-1); bbtrenddown259 = L < Ref(L,-1); TimeFrameRestore(); //Ribbon up = TimeFrameExpand(bbtrendup259,259) ; down = TimeFrameExpand(bbtrenddown259,259) ; Plot( 10,/* defines the height of the ribbon in percent of pane width */"",IIf(up, colorAqua,IIf(down, colorPink,colorYellow )), /* choose color */ styleOwnScale|styleArea|styleNoLabel, -0.5, 100 ); Thanks, Greg
