Forum

Pls help me for stop trading and wait for condition

Hi! I have problem with my code! I want if orderlots >= lotb then it will stop trading and wait for new condition! However it didnt stop and countinute trade until profitable result //+------------------------------------------------------------------+ //|

Pls help me with this simple EA! Particularly, Buy oder function

I created a simple EA base on RSI and CCi! Besides, this EA will open order at bar's open price and close order at close price of the same bar or open price of next bar! However, when i backtest it only work with sell order! Buy order didn't work Pls help me