Forum

To stop EA after fixed profit percentage over starting balance.

i want to stop expert advisor to trade after fixed profit target over account initial balance. i built EA for my prop firm account. this is the code i entered after my startegy . when i started backtesting , the EA still continues to trade. double floatingprofits ; input int startbalance = 50000 ;

Opting for stop loss from 2 variables.

I am building an ea, i want to use either candle low or the Sar low below the candle.. If the Sar indicator value is not there available below the entry candle. The stop loss should be previous candle low. I already coded for trailing sl as per SAR value but Finding it difficult to code this

Order repeating on Non true condetion also.

i made an EA for bull & bear engulfing. also stated to enter new trade when no orders running on both of them seperatively. Its still opening new trade when condetions are not true . for example entering a bear trade till it closes, then again enter new bear trade without condetions trade onw new

MQL 5 . bear engulfing EA built on ChatGpt shows no error on compile but sell trade not executing at market price

This is the code , there is no error on compile but its not executing order on market price : // Input parameters input double RiskPercentage = 0.4 ; // Risk percentage per trade input double TakeProfitPercentage = 0.7 ; // Take profit percentage per trade // Global variables int MagicNumber =