Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Update a line manually within a strategy

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

    Update a line manually within a strategy

    Hello,

    I have my strategy working fine except one important part that is related with the Support and Resistance lines that I have to fix them manually since I am not able to find the way to programm them effectively. So, let's consider only one horizontal line to simplify what I need. Is there any way to plot a line (for example with the price value: A) into the strategy code and then vary it manually (during the strategy execution by moving it using the mouse like another line manually plotted) and the new value of the line (price value) is updated into the variable A, in the way that the code can use this variable "A" for taking decisions?.I don't know if I have explain me well enough?

    Thanks in advance.

    Regards,

    #2
    Hello Sangui,

    Thank you for your post.

    So essentially you are looking for a method to have the strategy draw the line but allow you to manually adjust the lines and still have it act as a level for calculations? This is possible, you can find an example of this with the AlertForManuallyDrawnLines at the following link: http://www.ninjatrader.com/support/f...d=4&linkid=472

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    633 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    364 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    567 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    568 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X