- sh1980: e but Martingale orders cannot placed
Use the debugger or print out your variables, including _LastError and prices and find out why. Do you really expect us to debug your code for you?
Code debugging - Developing programs - MetaEditor Help
Error Handling and Logging in MQL5 - MQL5 Articles (2015)
Tracing, Debugging and Structural Analysis of Source Code - MQL5 Articles (2011)
Introduction to MQL5: How to write simple Expert Advisor and Custom Indicator - MQL5 Articles (2010) - sh1980: Note: This is multicurrency EA, need to attached only in one chart.
On MT4: Unless the current chart is that specific symbol(s)/TF(s) referenced, you must handle 4066/4073 errors before accessing candle/indicator values.
Download history in MQL4 EA - MQL4 programming forum - Page 3 #26.4 (2019) -
Martingale is not a strategy. It's a betting system.
Hedging, grid trading, same as Martingale.
Martingale, Hedging and Grid : MHG - General - MQL5 programming forum (2016)Martingale, guaranteed to blow your account eventually. If your strategy is not profitable without, it is definitely not profitable with.
Martingale vs. Non Martingale (Simplified RoR vs Profit and the Illusions) - MQL5 programming forum (2015)Why it won't work:
Calculate Loss from Lot Pips - MQL5 programming forum (2017)
THIS Trading Strategy is a LIE... I took 100,000 TRADES with the Martingale Strategy - YouTube (2020)
Does a safe Martingale exist ? - Trading Systems - MQL5 programming forum (2010)
It's amazing that you (or most likely AI) managed to fit a multi-currency martingale into 200 lines of code.
if (OrderSend(symbol, OP_SELL, lotSize, Bid, 3, 0, 0, "CCI Sell", 0, 0, clrRed) < 0)
This is the bid of the current symbol, not the one you are trying to open an order for.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello Experts,
I was made one of MT4 EA, problem is normal orders working fine but Martingale orders cannot placed according to given pips value.
Please help me, I am very thankful to yours.
EA code already attached.
Note: This is multicurrency EA, need to attached only in one chart.