If the EA trade all 28 pair need to put the filter "at a time it can trade max 2 pairs". How to make the EA to filter Maximum allowed pair to trade based on Equity draw down. Is there any tips on this
- Trading Signals and Copy Trading
- Fractals - Bill Williams' Indicators - Indicators - Charts - MetaTrader 5 for Android
- Fractals - Bill Williams' Indicators - Indicators - Chart - MetaTrader 5 for iPhone
Belvendran Ranjan:
If the EA trade all 28 pair need to put the filter "at a time it can trade max 2 pairs". How to make the EA to filter Maximum allowed pair to trade based on Equity draw down. Is there any tips on this
If the EA trade all 28 pair need to put the filter "at a time it can trade max 2 pairs". How to make the EA to filter Maximum allowed pair to trade based on Equity draw down. Is there any tips on this
int SYMBOL_NUMBER_LIMIT = 2; string COUNTED_SYMBOLS[]; ArrayResize(COUNTED_SYMBOLS, SYMBOL_NUMBER_LIMIT, 0); for(int s=0; s<SYMBOL_NUMBER_LIMIT; s++) COUNTED_SYMBOLS[s]=""; int SYMBOLS_IN_TRADE_SO_FAR = 0; bool NEW_TRADE_PERMISSION = true; int ALL_POSITIONS = PositionsTotal(); if(ALL_POSITIONS > 0) { for(int index=0; index<ALL_POSITIONS; index++) { string THIS_SYMBOL = PositionGetSymbol(index); bool Symbol_already_counted = false; for(int i=0; i<SYMBOL_NUMBER_LIMIT; i++) { if(COUNTED_SYMBOLS[i]==THIS_SYMBOL) { Symbol_already_counted = true; break; } if(Symbol_already_counted) continue; else { SYMBOLS_IN_TRADE_SO_FAR++; if(SYMBOLS_IN_TRADE_SO_FAR >= SYMBOL_NUMBER_LIMIT) { NEW_TRADE_PERMISSION = false; break; } for(int j=0; j<SYMBOL_NUMBER_LIMIT; j++) if(COUNTED_SYMBOLS[j]=="") { COUNTED_SYMBOLS[j] = THIS_SYMBOL; break; } } } }
Please help, I want a code that would not allow my EA to open trade on more than 3 symbols at a time i.e once you have trades opened on 3 different symbols, the EA would ignore opening trades in a new symbol even when all the conditions are met. Thanks in advance.
OLUFEMI ODUNUGA:
Please help, I want a code that would not allow my EA to open trade on more than 3 symbols at a time i.e once you have trades opened on 3 different symbols, the EA would ignore opening trades in a new symbol even when all the conditions are met. Thanks in advance.What
Please help, I want a code that would not allow my EA to open trade on more than 3 symbols at a time i.e once you have trades opened on 3 different symbols, the EA would ignore opening trades in a new symbol even when all the conditions are met. Thanks in advance.What
How you decided to append your question to this thread is a mystery. :)
A similar question here
Alain Verleyen:
Thanks.
Thanks.
Thanks for your response,
Please what part of the EA is the code going to be.

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