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:	131
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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    54 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    72 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X