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

Overly multiple line plots with multiple price scale in 1 single indicator instance

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

    Overly multiple line plots with multiple price scale in 1 single indicator instance

    Hello

    I was searching for some example that shows how to handle the situations where you have multiple plots (line plots in this case with variable values) in 1 single indicator but the plots are all in different price/numeric scales, where at some specific time you could have the next values shown on the chart.

    The next is not NinjaScript code, is just to have the visual idea about what kind of numerical values scales you could be seeing during a specific time in the chart.


    Values[0][0] = 850.00
    Values[1][0] = 10,700.00
    Values[2][0] = 15.00
    Values[3][0] = 85,000.00

    Values[N][0] = 1,00,000.00


    And for example, the line of code ‘ScaleJustification = NinjaTrader.Gui.Chart.ScaleJustification.Overlay;’ works as should when you need to have 2-3 indicators in the same panel, or when you previously have the instrument price and you need to plot an indicator that be “overlaid” in relation to that instrument graph, but what about if the situation is you have these multiple plots inside 1 single indicator instance and each plot has its own price marker scale as the numbers above.

    I know maybe a kind of patch would be to have multiple instances of the indicator with each one showing one of the plots but I don’t feel it would be a real solution but the most important is that where you have more than 3 plots with different price scale then I don’t know how to handle those cases where the 3 basic possibilities are taken, for example:
    • Plot0 -> Right Justification
    • Plot1 -> Left Justification
    • Plot2 -> Overlay Justification (floating in the right price scale)
    • But what about Plot4, Plot5, PlotN, … where I need all them to be shown in the same chart panel with only 1 indicator instance?

    A possible solution would simply be to be able to have a kind of separate instruction for each plot where you can specify the plot will overlaid in its own numerical scale that is totally independent from any other plot either be in the same scale or in a very different price scale. Something like:


    //Not real code, just the basic idea.
    ScaleJustificationMain = NinjaTrader.Gui.Chart.ScaleJustification.Right //The principal “base scale”. If needed
    ScaleJustificationPlot1 = NinjaTrader.Gui.Chart.ScaleJustification.Overlay
    ScaleJustificationPlot2 = NinjaTrader.Gui.Chart.ScaleJustification.Overlay
    ScaleJustificationPlot3 = NinjaTrader.Gui.Chart.ScaleJustification.Overlay


    ScaleJustificationPlotN = NinjaTrader.Gui.Chart.ScaleJustification.Overlay


    But of course I haven’t seen anything similar to this for the moment, so please help me to handle this kind of situations.

    Please note the indicator is working perfectly as should for now, and the only problem is this part about to graph the multiple plots in the chart where due the very different price scale actually they are shown as a kind of straight horizontal lines where the reality is that each plot (each line) has swings or zig-zags exactly as any instrument plot/graph has. If it helps please just think you have a kind of multiple SMA lines with very different price scale and you need each of them be shown “in its own scale” with each of them being plotted in a kind of floating price marker or something like that.

    Thank you in advance!


    #2
    Hello futurenow,

    Thank you for your note.

    Scale Justification would work on a per script basis and unfortunately not as you would need here on a per plot basis. So my suggestion would be splitting up the indicator into multiple scripts covering the full setup you need to be able to have those plots on different justifications.

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      Please add this feature. I've seen multiple requests in the forums for this type of feature. I do not want to scale one of my indicators because the values will be off when I view the data box and I want to know the value. I do a workaround by adding the indicator twice and setting one instance as transparent for data set A and then the second instance gets data set B as transparent. This works, but it is twice the indicators to manage. Please make the plots attachable individually.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by bortz, 11-06-2023, 08:04 AM
      47 responses
      1,602 views
      0 likes
      Last Post aligator  
      Started by jaybedreamin, Today, 05:56 PM
      0 responses
      8 views
      0 likes
      Last Post jaybedreamin  
      Started by DJ888, 04-16-2024, 06:09 PM
      6 responses
      18 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by Jon17, Today, 04:33 PM
      0 responses
      4 views
      0 likes
      Last Post Jon17
      by Jon17
       
      Started by Javierw.ok, Today, 04:12 PM
      0 responses
      12 views
      0 likes
      Last Post Javierw.ok  
      Working...
      X