• 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

Not plotting right color.

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

  • NinjaTrader_ChelseaB
    replied
    Hello KennyK,

    A barsAgo number would also need to selected with the plot selection.

    Values[plot index][barsAgo index]
    https://ninjatrader.com/support/help...-us/values.htm

    Print(Values[3][0]);
    Last edited by NinjaTrader_ChelseaB; 03-27-2019, 08:02 AM.

    Leave a comment:


  • KennyK
    replied
    Hi Chelsea,
    Got it working, I worked out that the gold "colorline" should have been a plotted line not a bar histogram. See attached screen shot.
    Thanks for your help. Would still like to know why I couldn't see anything in the output window? As per previous question.
    Ken.
    Attached Files

    Leave a comment:


  • KennyK
    replied
    Hi Chelsea,
    I wrote the script in the OnBarUpdate() section as follows: Print (Values[3]); I tried it with 0,1,2 as well but nothing appeared in the output window.
    What am I doing wrong?
    Ken.

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    Hello KennyK,

    The plot that is gold is Values[3].
    ​​​​​​AddPlot(new Stroke(Brushes.Gold, 2), PlotStyle.Bar, "ColorLine");

    Are the other plot values being set?

    If Values[3] is not set do you see the other plots? (Meaning are they behind the gold plot?)

    If you print the value for the other plots what are the values of these? (i.e. Values[0], Values[1], Values[2])

    Leave a comment:


  • KennyK
    started a topic Not plotting right color.

    Not plotting right color.

    Hi,
    I have converted the attached indicator over from NT7 to NT8. It is only plotting in the color Gold, but should be also plotting in the other colors.
    I cannot see what the problem is, would you please take a look and advise me on what the issue
    Attached Files

Latest Posts

Collapse

Topics Statistics Last Post
Started by vitixs, Today, 04:45 AM
0 responses
2 views
0 likes
Last Post vitixs
by vitixs
 
Started by J4Runner, Yesterday, 07:21 PM
1 response
11 views
0 likes
Last Post NinjaTrader_Marco  
Started by dtl-saw, Yesterday, 08:44 PM
0 responses
13 views
0 likes
Last Post dtl-saw
by dtl-saw
 
Started by ballboy11, Yesterday, 04:29 PM
0 responses
13 views
0 likes
Last Post ballboy11  
Started by zacharydw00, Yesterday, 02:29 PM
2 responses
30 views
0 likes
Last Post zacharydw00  
Working...
X