hi sir, thank you for your reply
yes i work with visual jforex to establish my first strategy, and i used the option "on candle" , and i put the period, however , the strategy open multiple positions in a lot of times.
the strategy is based on engulfing patterns principle
for example, sell position if candle 2 ( get historical candle shift2) is bullish and candle 1 ( get historical candle shift1) is bearish candle 1 is bigger than candle 2

i joined the strategy so you can discover the error !
thanks in advance !