Hi, my expert advisor is built using the TD sequential indicator. Whenever a candle hits a '9' a buy or sell order is made. The problem is this condition can occur when still in a trade on the same pair. I would like to only have one trade open per pair. Any help will be appreciated.
- Help in coding.
- need help to modify ea
- Please i need help with my EA !!!! it keeps opening trades whenever sl has been hit even if the conditions to trade are not meet
1. Remove these lines from OnInit:
if (PositionsTotal() > 0){ return(INIT_FAILED);
2. Study an example, Calculate Positions and Pending Orders
How to start with MQL5
- 2020.12.19
- www.mql5.com
This thread discusses MQL5 code examples. There will be examples of how to get data from indicators, how to program advisors...
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