Reply

pivot and R1 not working

9 replies

Uwe6000

Subscriber, bbp_participant, community, 27 replies.

Visit profile

5 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

Attachments:
You must be logged in to view attached files.

0

Conmariin

Subscriber, bbp_participant, community, customer, 54 replies.

Visit profile

5 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

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

5 years ago #233565

Hello,

yes, price values need to be the double type set

0

Uwe6000

Subscriber, bbp_participant, community, 27 replies.

Visit profile

5 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.  🙁

Attachments:
You must be logged in to view attached files.

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

5 years ago #233573

Hello,

you calculated values incorrectly. The above section is meant to be used for conditions not for expressions

0

Uwe6000

Subscriber, bbp_participant, community, 27 replies.

Visit profile

5 years ago #233588

hi, thanks a lot tomas for the file, perfect it works ! 🙂

0

Uwe6000

Subscriber, bbp_participant, community, 27 replies.

Visit profile

5 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…

 

Attachments:
You must be logged in to view attached files.

0

Uwe6000

Subscriber, bbp_participant, community, 27 replies.

Visit profile

5 years ago #233959

sry: Dow Jones backtest on 3.5.18 (S2= 23.631)

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

5 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

Subscriber, bbp_participant, community, 27 replies.

Visit profile

5 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)