Pointsize? problem when setting SL

Forums ProRealTime English forum ProOrder support Pointsize? problem when setting SL

Viewing 6 posts - 1 through 6 (of 6 total)
  • #90153

    Hello!

    Im testing a code to set my SL just below “swing low” when going long. This code seems to work the way I want to on DAX, but when testing it in Forex I just cant get it to work properly. I tried to use “pointsize” but I just cant get it to work the way it does in DAX. The problem is that it just closes the order directly with SL or TP. With *pointsize it goes a bit longer but not even close to where it should.

    Below a simple code just to show in a simple way the way it works.

     

    #90154

    Try

     

    #90194

    Thanks Roberto for your reply,

    I still dont get it to work. example pic from GBPUSD where it doesnt work and another from DAX where it looks ok. On Dax it only works without Pipsize and on GBPUSD it doesnt work with or without. Do I need to add pipsize anywhere else?

    #90216

    If you add 15 to GbpUsd you’ll reach around 16.3 which will NEVER be true.

    You’ll have to convert also the other value to pips:

    I forgot to write it in my previous answer, sorry.

    1 user thanked author for this post.
    #90396

    Ok, everything is working now. I actually had to divide with pipsize at pairs where the the number was lower than 1 (ex 0.002) .  I also had to do it at the “extra” as you mentioned Roberto.

    Thank you Roberto, Grazie Mille!

     

     

     

     

     

    1 user thanked author for this post.
    #90405

    Sorry, it was DIVIDE, you’re right!

    1 user thanked author for this post.
Viewing 6 posts - 1 through 6 (of 6 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login