I'm working on my own EA based on my trading plan, which is 90% working. When conditions are met it opens a order which a 2:1 reward-risk ratio
The problem is modifying the Stoploss to set to Order price after it passes 50% reward
Files:
New_Text_Document.txt
2 kb
- How to set the close price of bar[2] as stoploss price when opening an order?
- How to modify StopLoss of opened order every new bar using the Magic Number of the opened order?
- OrderModify Error 1
Show your attempt if you need coding help.
If your program does not do what it should the debugger will tell you where and why:
Code debugging: https://www.metatrader5.com/en/metaeditor/help/development/debug
Error Handling and Logging in MQL5: https://www.mql5.com/en/articles/2041
Tracing, Debugging and Structural Analysis of Source Code, scroll down to: "Launching and Debuggin": https://www.mql5.com/en/articles/272
Code debugging - Developing programs - MetaEditor Help
- www.metatrader5.com
MetaEditor has a built-in debugger allowing you to check a program execution step by step (by individual functions). Place breakpoints in the code...
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