Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Variable plot within chart?

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

  • NinjaTrader_JoshP
    replied
    Too many possibilities. Please post some code.
    You most likely have a bunch of errors referencing the missing Plot you just removed. You need to go through the code wherever you have Plot0.Set() or Plot0[0] (considering your plot was named Plot0) and replace it with your DataSeries name (myDataSeries.Set() or myDataSeries[0]).

    Leave a comment:


  • Burga1
    replied
    I added the dataseries elements in "Variables" and "Initialize" and commented out the code in "Add(new plot...)" and "Properties", I got nothing but errors. Is there something I might have missed or must I redo the indicator without specifying those plots in the wizard?...

    Leave a comment:


  • NinjaTrader_JoshP
    replied
    Doing so will remove the plot but maintain the variable for calculation purposes. If that is what you want then yes.

    Leave a comment:


  • Burga1
    replied
    Thanks. So you mean I should setup a dataseries for that variable and then remove the "Add(new Plot...etc...)" stuff for that variable?

    Leave a comment:


  • NinjaTrader_JoshP
    replied
    You can change the code of it to just be stored in a DataSeries instead of an actual plot. This way there will be nothing plotted for the variable.

    Leave a comment:


  • Burga1
    replied
    Thanks but I need to remove it, when it plots it interferes with the display of the entire indicator...

    Leave a comment:


  • NinjaTrader_Ray
    replied
    You can set plot colors to Transparent that may work.

    Leave a comment:


  • Burga1
    replied
    Thank you. I'll have to take a look at that another time. Is there a way to quickly and easily simply remove that variable from being charted at all?

    Leave a comment:


  • NinjaTraderEcosystem_Ryan
    replied
    Hi Burga1:

    Thank you for your post.

    You will need to customize these indicators using NinjaScript in order to overlay them on the price bars.

    The link to the following post can point you towards some indicators that others have already created to be overlayed on the price bars:


    More information on developing customized indicators can be found here:


    Best regards,

    Leave a comment:


  • Burga1
    started a topic Variable plot within chart?

    Variable plot within chart?

    Greetings,

    I have an indicator that is plotting a certain variable within the "bottom area" below the price chart. I'd like to have it plot instead within the price chart itself (just that particular variable) just above/below the price candlestick bars -- how is this accomplished? Thanks in advance.

Latest Posts

Collapse

Topics Statistics Last Post
Started by ybforex, 03-11-2025, 05:30 PM
12 responses
100 views
0 likes
Last Post rockmanx00  
Started by forgebench, Today, 02:22 PM
2 responses
9 views
0 likes
Last Post forgebench  
Started by MamaKB, 02-14-2025, 03:38 PM
10 responses
84 views
0 likes
Last Post Fertryd2  
Started by Irukandji, Today, 03:46 PM
0 responses
7 views
0 likes
Last Post Irukandji  
Started by HappyTrader76, Yesterday, 04:14 PM
8 responses
48 views
0 likes
Last Post HappyTrader76  
Working...
X