Trailing Stop with steps

Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #257957 quote
    Madrosat
    Participant
    Master

    Thank you Keymaster Nicolas

    I try it

    I have not understand why code Grahal is not running on eur usd

    #257964 quote
    Nicolas
    Keymaster
    Master

    Because if you set the variable “StopdistanceBreakeven” equal to 20, it counts as 20 points for the instrument and if the pointsize is not equal to 1 then for EURUSD it would be about 1.1865 + 20 = 21.1865 !!

    Since pointsize for forex is 0.0001 the correct syntax is to multiplied the variable set in points with the real pointsize:

    variable = StopdistanceBreakeven * pointsize
    

    so in that case the result is:

    variable = 20 * 0.0001 = 0.0020

    added to the EURUSD price:

    1.1865 + 0.0020 = 1.1885

    correct value!

Viewing 2 posts - 16 through 17 (of 17 total)
  • You must be logged in to reply to this topic.

Trailing Stop with steps


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Amin1233 @amin1233 Participant
Summary

This topic contains 16 replies,
has 5 voices, and was last updated by Nicolas
2 days, 23 hours ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 01/06/2026
Status: Active
Attachments: 2 files
Logo Logo
Loading...