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

How do I constrain a Rectangle to a given timeframe?

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

    How do I constrain a Rectangle to a given timeframe?

    We have a Strategy that Draws Rectangles using DrawRectangle() on Swings. The Rectangles main purpose is to be used on a Weekly Chart. However, when we switch to a Daily Chart the Rectangles change from the Weekly Timeframe to the Daily Timeframe. How can I constrain the Rectangles to the Weekly even when the Daily Chart is being displayed?

    Thanks for anything!
    Rob

    #2
    Hello RobVig,

    Thank you for your post.

    The drawing objects will draw based on the indicator's input series. If the input series is changed the objects will change as well as the indicator is reloaded onto the new Input Series.

    There would not be a means to draw on a prior Input Series. If you are trying to have objects from another series draw on another series chart you may consider running with multiple series in your script and using the DateTime of the secondary series for the DateTime of the draw objects. Or you could look into using custom plotting.

    For information on multiple series in your code please visit the following link: http://ninjatrader.com/support/helpG...nstruments.htm

    For information on custom plotting please go to Tools > Edit NinjaScript > Indicator > CustomPlotSample.

    Comment


      #3
      Thanks Patrick!

      I'll give that a shot and post my results when I have something.

      Rob

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by ketostrongdiet, Today, 12:34 AM
      0 responses
      6 views
      0 likes
      Last Post ketostrongdiet  
      Started by ketostrongdiet, Today, 12:33 AM
      0 responses
      5 views
      0 likes
      Last Post ketostrongdiet  
      Started by mattdowns1234, Yesterday, 06:57 PM
      0 responses
      16 views
      0 likes
      Last Post mattdowns1234  
      Started by dgee949, Yesterday, 06:26 PM
      0 responses
      26 views
      0 likes
      Last Post dgee949
      by dgee949
       
      Started by dgee949, Yesterday, 05:58 PM
      0 responses
      32 views
      0 likes
      Last Post dgee949
      by dgee949
       
      Working...
      X