Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

do anything when any indicator cross any drawing tool like a Line

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

    do anything when any indicator cross any drawing tool like a Line

    I want to put an arrow or any order when the blue line crosses the purple one down, I don't know if just is possible using the "strategy builder wizard" or maybe I have to use C# code

    thanks
    Attached Files

    #2
    Hello polopolo, thanks for your question.

    Unfortunately, you can not access drawing object information from the strategy builder. One would need to set up the drawing tool as an object

    e.g. NinjaTrader.NinjaScript.DrawingTools.Line myLine = Draw.Line(this, "tag1", false, 10, 1000, 0, 1001, Brushes.LimeGreen, DashStyleHelper.Dot, 2);

    or loop through the DrawObjects array to find a user drawn object.

    Please let me know if I can assist any further.

    Comment


      #3
      Thanks I let you know

      Comment


        #4
        Any update about the question in this post?
        Originally posted by NinjaTrader_ChrisL View Post
        Hello polopolo, thanks for your question.

        Unfortunately, you can not access drawing object information from the strategy builder. One would need to set up the drawing tool as an object

        e.g. NinjaTrader.NinjaScript.DrawingTools.Line myLine = Draw.Line(this, "tag1", false, 10, 1000, 0, 1001, Brushes.LimeGreen, DashStyleHelper.Dot, 2);

        or loop through the DrawObjects array to find a user drawn object.

        Please let me know if I can assist any further.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        45 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        14 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        20 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        22 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X