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

Strat/Indicator wont draw arrows

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

    Strat/Indicator wont draw arrows

    I have a very simple strategy that I want to draw an arrow when conditions are met. When I set the strategy (using wizard) to draw an arrow or triangle, nothing happens. When I change that action to change color background, it works.

    Are there some conditions that prevent certain drawing actions? Also I should mention this is on historical data, not live or replay.

    thanks.

    #2
    Hi billr,
    Most commonly this is the Y value where it's drawn. Check attached screenshot for an example.
    Attached Files
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thanks Ryan, I'm sure that's the problem. On another note, I used the strategy wizard to create what is really an indicator. How difficult is it to convert a strategy into an indicator?

      Thanks.

      Comment


        #4
        Code should be identical -- just have to copy over each section into an indicator. The one thing that's different is that strategies typically have a 20 bar "minimum bars required" that's not in indicators. This means if you ever index past value with, then you need to handle this separately in your indicator code. More details on this item are available here:
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by rexsole, Today, 08:39 AM
        0 responses
        4 views
        0 likes
        Last Post rexsole
        by rexsole
         
        Started by trilliantrader, Yesterday, 03:01 PM
        3 responses
        30 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by cmtjoancolmenero, Yesterday, 03:58 PM
        4 responses
        26 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by Brevo, Today, 01:45 AM
        1 response
        14 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by rjbtrade1, 11-30-2023, 04:38 PM
        2 responses
        74 views
        0 likes
        Last Post DavidHP
        by DavidHP
         
        Working...
        X