• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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 soulfx, Today, 03:57 AM
0 responses
3 views
0 likes
Last Post soulfx
by soulfx
 
Started by digibob, Today, 03:45 AM
0 responses
5 views
0 likes
Last Post digibob
by digibob
 
Started by Matts7, Today, 12:56 AM
1 response
17 views
0 likes
Last Post NinjaTrader_Marco  
Started by barrybrice, Yesterday, 08:51 PM
1 response
8 views
0 likes
Last Post NinjaTrader_Marco  
Started by hayleeabb, Today, 12:30 AM
1 response
7 views
0 likes
Last Post NinjaTrader_ChrisSch  
Working...
X