Hello,
Check this
TimeFrameSet( inDaily);
ma1 = EMA(C, 5 );
ma2 = EMA(C, 10 );
TimeFrameRestore();
ema1= TimeFrameExpand( ma1, inDaily,expandLast);
ema2=TimeFrameExpand( ma2, inDaily,expandLast);
conditionA=(ema1>ema2);
conditionB=(ema2>ema1);
Plot(ema1,"",IIf(conditiona,5,4),1);
Plot(ema2,"",31,1);
breakoutime=ParamTime( "brk Time ", "9:25:00" );
afterbreakout0 = Cross(TimeNum(),breakoutime);
myc= IIf(afterbreakout0, colorYellow,47);
P = ParamField( "Price field" );
xO = ValueWhen(afterbreakout0,P);
Plot(XO,"4th Bar",1,32);
SetBarFillColor( myc);
PlotOHLC(O,H,L,C,"",myc,132);
Check this
TimeFrameSet( inDaily);
ma1 = EMA(C, 5 );
ma2 = EMA(C, 10 );
TimeFrameRestore();
ema1= TimeFrameExpand( ma1, inDaily,expandLast);
ema2=TimeFrameExpand( ma2, inDaily,expandLast);
conditionA=(ema1>ema2);
conditionB=(ema2>ema1);
Plot(ema1,"",IIf(conditiona,5,4),1);
Plot(ema2,"",31,1);
breakoutime=ParamTime( "brk Time ", "9:25:00" );
afterbreakout0 = Cross(TimeNum(),breakoutime);
myc= IIf(afterbreakout0, colorYellow,47);
P = ParamField( "Price field" );
xO = ValueWhen(afterbreakout0,P);
Plot(XO,"4th Bar",1,32);
SetBarFillColor( myc);
PlotOHLC(O,H,L,C,"",myc,132);