Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawing the Stop Price on the Chart

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Drawing the Stop Price on the Chart

    How can we draw a curve on the chart which show the value of the Trail Stop for each bar when there is an order active?

    I have tried many difference things but nothing works.

    I have managed to draw huge ugly dots on the chart at any location, but I cannot capture the value of the Trail Stop as it changes and I cannot draw a line on a chart.

    Is there an example of this in the NT help guide somewhere? The same would be useful for the Profit Target.
    Attached Files
    Last edited by AlgoJason; 02-12-2018, 07:18 PM. Reason: Add example

    #2
    Hello,

    Thank you for the post.

    To capture the trail stop, you could use the OnOrderUpdate override you have in the script currently. In nearly the same way that you are checking for the entry, you can look for the trailing stop.

    I don't see that you currently have a trailing stop order in the script so you would need to add that first so OnOrderUpdate is called for the trailstop.

    Once you have a trailstop, you can draw the dot where you set the stop price, or look for an order with the trailstops name, you can see its name by Printing the order object or by looking in the orders tab.

    For each of the order changes the trailstop has, the dot could be updated/added from OnOrderUpdate.

    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    51 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    127 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    69 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X