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

Displacing Plots by various amounts

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

  • priceisking
    replied
    Ok Thank you!

    Leave a comment:


  • NinjaTrader_PaulH
    replied
    Hello priceisking,

    Thanks for your post.

    All I can find is the Displacement property but that would apply to all plots of the indicator: https://ninjatrader.com/support/help...splacement.htm

    If breaking it up into 3 separate indicators is not an option, then all I could suggest is using OnRender() for custom drawing. You can take a look at the indicator IchimokuCloud available in the user apps for an idea on the coding required..

    Leave a comment:


  • priceisking
    started a topic Displacing Plots by various amounts

    Displacing Plots by various amounts

    Hello,

    I have 3 plots on my indicator for example:

    Values[2][0] = SMA(200)[0];
    Values[3][0] = SMA(100)[0];
    Values[4][0] = SMA(50)[0];

    I want to displace all of these to the right on the chart. (move it in the future).

    How can i code this to make it move over to the right different values.

    For example, i want to displace the first one by 8 bars and the second one by 5 bars and the third one by 3 bars.


    I tried changing the plot to something like SMA(200)[-8] but that doesn't work and it doesn't plot.

    Thank you in advance.

Latest Posts

Collapse

Topics Statistics Last Post
Started by RubenCazorla, Today, 09:07 AM
2 responses
11 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by i019945nj, 12-14-2023, 06:41 AM
7 responses
81 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by timmbbo, 07-05-2023, 10:21 PM
4 responses
158 views
0 likes
Last Post NinjaTrader_Gaby  
Started by tkaboris, Today, 08:01 AM
1 response
7 views
0 likes
Last Post NinjaTrader_Gaby  
Started by Lumbeezl, 01-11-2022, 06:50 PM
31 responses
819 views
1 like
Last Post NinjaTrader_Adrian  
Working...
X