Re-entry delay from real sell signal

hi,

I have simple formula, only one symbol, here it is:

Buy =
(
C > TEMA ( C , 12 )
AND C > TEMA ( C , 26 )
);
Sell =
(
C < TEMA ( C , 12 )
AND C < TEMA ( C , 26 )
);
Buy = Buy AND BarsSince( Sell ) >= 3;

Short = 0; Cover = 0;

I want to have 3 bars delay between INITIAL SELL, not every SELL signal.
How to do that?

Please look at the picture above. The initial SELL was 3 bars ago, so I want the formula to generate BUY. Now it doesnt generete the BUY signal, coz of "buy = buy and barsince (sell) >=3. The formula doesnt differ the sell signal from initial sell signal.

Any idea how to repair it?

thanks!

When posting the formula, please make sure that you use Code Tags (using </> code button) as explained here: How to use this site.

Using code button

Code tags are required so formulas can be properly displayed and copied without errors.

You can try the following:

Buy =
Cross( C , TEMA ( C , 12 ) )
AND C > TEMA ( C , 26 );

Sell =
Cross( TEMA ( C , 12 ), C ) 
AND C < TEMA ( C , 26 );

Buy = Buy AND BarsSince( Sell ) >= 3;

Short = 0; Cover = 0;

Using impulse form (Cross) avoids excessive repeated signals.

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.