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

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, 09: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 rocketman7, Today, 09:41 AM
2 responses
5 views
0 likes
Last Post rocketman7  
Started by traderqz, Today, 09:44 AM
1 response
4 views
0 likes
Last Post traderqz  
Started by rocketman7, Today, 02:12 AM
7 responses
31 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by guillembm, Yesterday, 11:25 AM
3 responses
16 views
0 likes
Last Post NinjaTrader_Jesse  
Started by junkone, 04-21-2024, 07:17 AM
10 responses
150 views
0 likes
Last Post NinjaTrader_BrandonH  
Working...
X