My strategy existing multi signals in the same time period, the time period is opivotbar of pivot "( price,length, leftstrength, rightstrength, instance, hilo, opivotprice, opivotbar) "
How can I define trading in the same time period(opivotbar) ?
I input the pivot function that existing the darkbrown plot ( opivotbar ) , I mean trading in the same wave time period.Please check the below pic.
Could you give me some idea?
Thanks.
Code: Select all
variables:value1( 0 ), opivotprice( 0 ), opivotbar( 0 ), AVGP( 0 );
value1 = pivot( high, 21, 4, 2, 1, -1, opivotprice, opivotbar );
value2 = opivotprice;
value3 = opivotbar;
AVGP = AVERAGE( CLOSE, 3 );
if close > AVGP then
value10 = Arw_New(Date,time,LOW,FALSE);
value11 = Arw_SetText( value10, "AVGP");
value12 = Arw_SetTextBGcolor( value10, magenta );
variables:value1( 0 ), opivotprice( 0 ), opivotbar( 0 ), AVGP( 0 );
value1 = pivot( high, 21, 4, 2, 1, -1, opivotprice, opivotbar );
value2 = opivotprice;
value3 = opivotbar;
AVGP = AVERAGE( CLOSE, 3 );
if close > AVGP then
value10 = Arw_New(Date,time,LOW,FALSE);
value11 = Arw_SetText( value10, "AVGP");
value12 = Arw_SetTextBGcolor( value10, magenta );