Forum on trading, automated trading systems and testing trading strategies
EA opens Many Trades, How to Open 1 buy & 1 sell?
Vladimir Karputov, 2022.01.10 16:03
You have a huge mistake - you create an indicator handle at every tick.
REMEMBER: The MQL5 style implies that the indicator handle MUST be created ONLY ONCE and this must be done in OnInit !!!
An example of get values from the iRSI indicator
How to start with MQL5
- www.mql5.com
This thread discusses MQL5 code examples. There will be examples of how to get data from indicators, how to program advisors...
StopLoss should be a price …. 700.000 doesnt Look like a price… you Take your code… put it on a script … and load on diferent Markets … see if your point/tick calculation works
SLLevel=Ask-SL*_Point
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
hello, I start programming in MQL5, and I progress little by little but I do not understand an event. I put the code below but when I run the Script and look at the log in MT5 it tells me that my stop loss is not good (stop loss = 700,000). At the beginning I thought to myself that I had coded badly so I looked at other EAs that worked well but I did not find any difference with my code which would justify such a value. Do you have an idea ?