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

Plotting the Future

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

    Plotting the Future

    I am working on Ichimoku indicators, and one of the features of Ichimoku is it uses current price action to plot future support and resistance.

    Price information from the Current Bar needs to be plotted on the screen now but at a point on the chart 26 periods from now. Any thoughts on how to make this work?

    #2
    Grasul,

    Unfortunately this is unsupported. You can place drawing objects into the future, however. Here is a post with some more information.



    Please let me know if I may assist further.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by Grasul View Post
      I am working on Ichimoku indicators, and one of the features of Ichimoku is it uses current price action to plot future support and resistance.

      Price information from the Current Bar needs to be plotted on the screen now but at a point on the chart 26 periods from now. Any thoughts on how to make this work?

      This has been solved. Use the Ichi in post 29 of the below thread.... its open code so you can see how its done.

      Comment


        #4
        The calculations of the indicator you linked have an error in them I believe.

        The correct calculation for Tenkan Sen is (Highest High + Lowest Low) / 2 for the last 9 (default) bars.

        The calculation the indicator is using is:

        TenkanSen.Set((MAX(Fast)[0] + MIN(Fast)[0])* 0.5);


        which translates to (Highest Close + Lowest Close) / 2 which of course is not the same thing.

        The correct calculation for Tenkan Sen is:

        TenkanSen.Set((MAX(High, Fast)[0] + MIN(Low, Fast)[0])* 0.5);


        The Kijun Sen calculation and Senkou Span B have the same error but are both also easily fixed.
        Last edited by Grasul; 11-28-2011, 07:25 PM.

        Comment


          #5
          I have not looked at the code in the indicator, but it would not surprise me to find that you are exactly correct... it looks so from your snippets. I often find such discrepencies in shared indicators and make a habit, as you have apparently done with this one, of checking line for line shared indicator I rely on for actual trade signals.

          I use Ichi just as a quick snap shot overview of a market I haven't been following. I find it has too much lag to be of use for actual trade signals. Thanks for pointing out the descrepencies. I have not put it into the indicator section because it is not my indicator. Maybe someone who uses Ichi will take the time to refactor the code I posted, make it conform exactly to the classic Ichi rules, then post it into the indicator section. I can't see having that time myself, but if no one does it, perhaps I will someday.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Segwin, 05-07-2018, 02:15 PM
          14 responses
          1,789 views
          0 likes
          Last Post aligator  
          Started by Jimmyk, 01-26-2018, 05:19 AM
          6 responses
          837 views
          0 likes
          Last Post emuns
          by emuns
           
          Started by jxs_xrj, 01-12-2020, 09:49 AM
          6 responses
          3,293 views
          1 like
          Last Post jgualdronc  
          Started by Touch-Ups, Today, 10:36 AM
          0 responses
          13 views
          0 likes
          Last Post Touch-Ups  
          Started by geddyisodin, 04-25-2024, 05:20 AM
          11 responses
          63 views
          0 likes
          Last Post halgo_boulder  
          Working...
          X