Hello,

In a 1 minute frame, I plot this formula with no TimeFrameSet() and no 
TimeFrameRestore(), it's OK.

I keep a 1 minute frame, I put TimeFrameSet( in1Minute) before and 
TimeFrameRestore() after, it does not plot.

The idea is to plot ( in1Minute) and ( in1Minute * 3). But the first 
step to put TimeFrameSet( in1Minute) is messy.

Any help appreciated.

Best regards




// 9trading 006
// Copyright 9Trading.com



Plot( 100, "", 7, styleLine );
Plot( -100, "", 7, styleLine );
n = Param( "per", 7, 2, 25, 1 );

//TimeFrameSet( in1Minute);

ys1 = ( High + Low + Close * 2 ) / 4;
rk3 = EMA( ys1, n );
rk4 = StDev( ys1, n );
rk5 = ( ys1 - rk3 ) * 100 / rk4;
rk6 = EMA( rk5, n );
UP = EMA( rk6, n );
DOWN = EMA( up, n );
Oo = IIf( up < down, up, down );
Hh = Oo;
Ll = IIf( up < down, down, up );
Cc = Ll;
barcolor2 = IIf( Ref( oo, -1 ) < Oo AND Cc < Ref( Cc, -1 ), colorBlue, 
IIf( up > down, colorGreen, colorRed ) );
PlotOHLC( Oo, hh, ll, Cc, "Mod 1m " , barcolor2, styleCandle );

//TimeFrameRestore();


//Plot( TimeFrameExpand( PlotOHLC( Oo, hh, ll, Cc, "Modified " , 
barcolor2, styleCandle ), in1Minute), "\n 1 min bars", colorBlue);

Reply via email to