Spécifications
Hi i have an expert that takes trade after rsi and stochastic oscillator. Same type of ea for mt4 and mt5
Some of the future or options i have is. I copy this from the old requirement specification.
Magic number default to 1= if several ea of this model is in use on different charts different currency pairs max trades and max losing trades is not over runed. If i chose 1 like an example for all off them.
Only one trade at each signal
Max allowed trades in number Default to 1
Max allowed losing trades Default to 1
Max spread if sett to 0 no max spread
And upper left corner Text that disappear after ea is removed with info about trade direction and cash risk and indicator settings
Settings on indicators adjustable same as in mt4
The problem is.
If i have a losing trade on one currency pair, every time i load a new chart of that pair and put my ea on i need to change the magic number.
Because it remember the losing trade. So i need to load the ea magic number 1 example and se on the info text max losing trades 1/ 1 then it will not trade so i need to test myself to example magic number 3 max losing trades 0/1 now it would trade for me if it getts activated.
And if i trade example 3 different pairs same ea on all 3 pairs and same magic numbers and settings for losing trades and max trades is sett to 1 the ea can take one trade on each pair if it gett activated. That could be 3 trades instead of 1 trade.
The purpose with the function is that most off the time the ea don't get activated on all off the pairs so i try to get one good oversold trade on.
What i want it to do.
I want i to refresh every time i load my ea like other eas do. So it only feels active eas same type same magic number
If that for some odd reason is not possible 2 option is that every loaded ea is independent and that every time the ea is loaded on it don't remember the old trades that have been taken before the ea was loaded.
It is for mt4 and mt5
Ask if something is unclear. The ea works except this