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:	139
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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    30 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    47 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X