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 futtrader, 04-21-2024, 01:50 AM
          4 responses
          41 views
          0 likes
          Last Post futtrader  
          Started by Option Whisperer, Today, 09:55 AM
          1 response
          11 views
          0 likes
          Last Post bltdavid  
          Started by port119, Today, 02:43 PM
          0 responses
          1 view
          0 likes
          Last Post port119
          by port119
           
          Started by Philippe56140, Today, 02:35 PM
          0 responses
          3 views
          0 likes
          Last Post Philippe56140  
          Started by 00nevest, Today, 02:27 PM
          0 responses
          2 views
          0 likes
          Last Post 00nevest  
          Working...
          X