Not logged in
Viewing 10 posts - 1 through 10 (of 10 total)
  • #233523 |
    Participant
    126 Posts

    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.
    #233560
    Conmariin
    Customer
    116 Posts

    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

    #233565
    tomas262
    Administrator
    1827 Posts

    Hello,

    yes, price values need to be the double type set

    #233568
    Participant
    126 Posts

    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.
    #233573
    tomas262
    Administrator
    1827 Posts

    Hello,

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

    Attachments:
    You must be logged in to view attached files.
    #233588
    Participant
    126 Posts

    hi, thanks a lot tomas for the file, perfect it works ! :-)

    #233956
    Participant
    126 Posts

    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.
    #233959
    Participant
    126 Posts

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

    #233975
    tomas262
    Administrator
    1827 Posts

    Hello,

    can you attach the latest project you modified to exit on S2 so I can fix it directly? Please Zip or send to support@strategyquant.com

    #233991
    Participant
    126 Posts

    Hello tomas,
    I sent you a file via email

    Thank you very much

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.