pivot and R1 not working
9 replies
Uwe6000
8 years ago #233523
Hello, I have created a file, the long position should be closed at the R1. I have created a variable for pivot and R1. I need the pivot variable to calculate even more R and S points. Unfortunately the position will not be closed on R1. What is wrong ? attached file
many greetings
0
Conmariin
8 years ago #233560
Hi Uwe6000,
I think the pivot and R1 value shouldn’t be integer. Because you get values something like 1.542763. And try to change the shift Parameters from 0 to 1. 0 is the actual bar and you can’t get a close at 0.
Automatisches Handeln mit Expert Advisor
https://www.rabenesche.de
Active also in:
https://forums.babypips.com/u/ravenash
0
Tomas Matejka
8 years ago #233565
Hello,
yes, price values need to be the double type set
0
Uwe6000
8 years ago #233568
Hello, I changed the values to double type, the values of the bar to 1, but now long is always closed immediately. Unfortunately, I can not find why. 🙁
0
Tomas Matejka
8 years ago #233573
Hello,
you calculated values incorrectly. The above section is meant to be used for conditions not for expressions
0
Uwe6000
8 years ago #233588
hi, thanks a lot tomas for the file, perfect it works ! 🙂
0
Uwe6000
8 years ago #233956
Hello, i like to close the short position at S2, but the position will not be closed with my settings.
The “TrailDisR2S2” is a variable as Type “int” with value of 10. Mean if Low und Difference of 10 Pips lower as S2, then close Position. i use Dow Jones backtest on 3.5.18 (S2= 24.631) or 24.4.18 (S2= 24.200) – not working.
Thanks for help…
0
Uwe6000
8 years ago #233959
sry: Dow Jones backtest on 3.5.18 (S2= 23.631)
0
Tomas Matejka
8 years ago #233975
Hello,
can you attach the latest project you modified to exit on S2 so I can fix it directly? Please Zip or send to [email protected]
0
Uwe6000
8 years ago #233991
Hello tomas,
I sent you a file via email
Thank you very much
0
Viewing 9 replies - 1 through 9 (of 9 total)