Buy every step down from MA

Hi, I need signals with following condition:

the are levels
step is the int measure betw levels:


1 level = MA+10
0 level = MA
-1 level = MA-10
-2 level =MA-10*2

if Close<MA, buy 1Size every Level down from MA
if Close>MA, sell 1Size every Level up from MA

buy = Cross( MA-Step, C);
1. I have a feeling that something wrong is here.
2. And how to connect these guys?

1st buy at -1 Level: at price EntryPrice =(MA-1*Step),
2nd buy at -2 Level at previous EntryPrice minus step: EntryPrice = EntryPrice -Step

thank you
Last edited:

Similar threads

Broker Special Offers

Intraday Higher Leverage

Save up to 90% in brokerage and get higher leverage for intraday trades.

Are you a day trader?