![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
No the problem doesn’t correlate with the conditions combined being too rare.
Even if I just modify the original code like below expert stops trading completely.
Just one change at RSI stops it from working completely.
Okay a separate question if you were trying to use 4 indicators and achieve the same desired function as me How would you code it? Maybe that would be a good starting point to figure the issue out
Kind Regards
The simplest way would be to assign a maximum score at the beggining based on how many indicators are on .
Then if an indicator fires you add one to the score . (you set the score to 0 before starting the check).
The simplest way would be to assign a maximum score at the beggining based on how many indicators are on .
Then if an indicator fires you add one to the score . (you set the score to 0 before starting the check).
it would not be hardcoded . The user enables or disables indicators .
Then the initialization counts the enabled indicators . That is the max tally
With Fast and Slow ma ? or price ?
it would not be hardcoded . The user enables or disables indicators .
Then the initialization counts the enabled indicators . That is the max tally
With Fast and Slow ma ? or price ?
Something like this
Something like this
Pass the values of the indicators as parameters into a function or move the arrays with the values in too.
Pass the values of the indicators as parameters into a function or move the arrays with the values in too.
So something like this.
Would void or bool be best? And then keeping the total required conditions in the OnTick with the Order logic for Buy and Sell
So something like this.
Would void or bool be best? And then keeping the total required conditions in the OnTick with the Order logic for Buy and Sell
yeah but with buytally and selltally as refererences too
yeah but with buytally and selltally as refererences too