Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawing stop and profit levels

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

    Drawing stop and profit levels

    Hello,

    I would like to ask for some help how to draw line/dots which will be presenting profit and stop loss limit. I would like to use strategy builder for that. I do not have issue with drawing on dot but I my target is to have drawn until profit or stop loss is reached. I am sending example how it should look like.

    Is such drawing option available through strategy builder?

    Thank you

    Click image for larger version

Name:	image.png
Views:	146
Size:	11.3 KB
ID:	1221783

    #2
    Hello MiroslavH,

    Thank you for your post.

    When working with an unlocked strategy in the NinjaScript Editor, you can certainly track certain orders and create conditions that draw on your chart once an order is filled. In the Strategy Builder, there are certain limitations. You could potentially set up a bool variable that is false by default, sets to true when a position is opened, and then check for when the position changes to flat (meaning a stop or target was filled) and then at that moment draw on the chart and then set the bool back to false to "rearm" it for the next entry. This would look something like the following example where an email is shared when the stop loss or profit target is hit:
    World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.


    In your scenario, you would want to change the action from SendMail to the Draw action to draw a dot at the Close[0] price where the action was triggered.

    For additional information about some of the conditions and actions available in the Strategy Builder, please see the following pages:



    Please let us know if we may be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    91 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    137 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    121 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    72 views
    0 likes
    Last Post PaulMohn  
    Working...
    X