How to make ATR values editable in the EA Settings
2 replies
Conmariin
6 years ago #201247
EA-Wizard has a great function for SL and TS to calculate with ATR. The formula is for example: 2 * ATR (14)
But than it is hardcoded in the EA and you can’t change the values 2 and 14. You must recode the EA everytime.
I didn’t figure out how to make a solution with EA-Wizard completely but on behalf on EA-Wizard and on behalf manual coding in Meta-Editor. It’s easy. I describe how:
First make Variables in EA-Wizard in the Strategy-Tab for example like in 1.png. And make the ATR-Settings for SL and TP. Than save your EA. Open the mq4-file with the Meta-Editor and search for ATR in the code. You will find the code for ATR like in 2.png. Exchange the numbers (for example 2 and 14) with the variables from 1.png. Do this for SL and TS, Long and Short. Save and compile your EA in Meta-Editor. Done! 🙂
Automatisches Handeln mit Expert Advisor
https://www.rabenesche.de
tomas262
6 years ago #201252
Conmariin
6 years ago #201279
Viewing 2 replies - 1 through 2 (of 2 total)