I have included a pipstep. But i have still 1 Problem. I want to trade in countertrend. So if we have lower lows-> buy and vice versa, BUT:

Conditions for Buy/Sell:
Sell: Bid>=(LastSellPrice+(PipStep*Point)) // Here we have a initial Sell and therefore sell with pipstep, because Bid is allways higher than the other, even without a LastSellPrice value
Buy: Ask<= (LastBuyPrice-(PipStep *Point) // Now I have a problem, because Ask is higher then LastBuyPrice because there is no initial Buy.

Does someone have a fix for this?