Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    Chris L.NinjaTrader Customer Service

    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 knighty6508, 05-10-2024, 01:20 AM
        4 responses
        25 views
        0 likes
        Last Post knighty6508  
        Started by OllieFeraher, 05-09-2024, 11:14 AM
        6 responses
        19 views
        0 likes
        Last Post OllieFeraher  
        Started by PaulMohn, 05-02-2024, 06:59 PM
        2 responses
        44 views
        0 likes
        Last Post PaulMohn  
        Started by ETFVoyageur, Today, 02:10 AM
        0 responses
        14 views
        0 likes
        Last Post ETFVoyageur  
        Started by rayyyu12, Today, 12:47 AM
        0 responses
        9 views
        0 likes
        Last Post rayyyu12  
        Working...
        X