Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Create Renko indicator based on minute time frame.
Collapse
X
-
Create Renko indicator based on minute time frame.
I'd like to import, transfer or otherwise plot an indicator displaying changing S/R levels calculated from a minute chart indicator. Is it possible to have a minute chart installed in the renko chart and appear "invisible" and not affect the renko bar spacing. Is there a way to bridge send the information from the minute chart and plot on the renko?Tags: None
-
The better way is to write an indicator to do this by loading the additional data into the indicator using AddDataSeries. I have already done something similar but my indicator loads data from different selectable timeframes so it does work this way.
See: https://ninjatrader.com/support/help...nstruments.htm
Another way (using the Ninjatrader UI) for non-programmers is to load the additional data and set those bars to say line on close and make the line colour transparent. Then assign the second data to the indicator to work off the second symbol data. This is a bit clunky but should work.Last edited by iq200; 06-14-2019, 02:00 AM.
-
Hello rronzz,
Thank you for your post.
iq200's post is fairly on the money here. The most elegant solution here would be to create your own indicator that brings in a second time frame (your 1 minute bars) and plot the indicator based on that data series. Depending on the indicator you're wanting to use, you may be able to edit an existing one to add your own functionality. Most indicators built into NinjaTrader are open source and you are more than welcome to save copies and make your own modifications. Third party indicators vary, as some are protected assemblies, while some are just open source code as well.
I would have also referred you to the link on Multi-Time Frames and Instruments that they provided in their post. However, here is a super simple code example of plotting an indicator on a secondary time frame:
Please let us know if we may be of further assistance to you.Code:private SMA SMA1; protected override void OnStateChange() { if (State == State.SetDefaults) { Description = @"Enter the description for your new custom Indicator here."; Name = "SMAplusMinute"; Calculate = Calculate.OnBarClose; IsOverlay = true; DisplayInDataBox = true; DrawOnPricePanel = true; DrawHorizontalGridLines = true; DrawVerticalGridLines = true; PaintPriceMarkers = true; ScaleJustification = NinjaTrader.Gui.Chart.ScaleJustification.Right; //Disable this property if your indicator requires custom values that cumulate with each new market data event. //See Help Guide for additional information. IsSuspendedWhileInactive = true; AddPlot(Brushes.LightCoral, "SMAPlot"); } else if (State == State.Configure) { AddDataSeries(Data.BarsPeriodType.Minute, 1); //add our secondary 1 minute data series for calculating the SMA } else if (State == State.DataLoaded) { SMA1 = SMA(BarsArray[1], 10); //set SMA here so we make sure it's calculated on the secondary data series } } protected override void OnBarUpdate() { if (CurrentBars[0] < 1 || CurrentBars[1] < 10) // make sure there's at least one bar for primary series and at least 200 of the secondary series prior to processing return; if(BarsInProgress == 0) // if OnBarUpdate was called from the primary bar series, then set the current value to the latest SMA1 value Value[0] = SMA1[0]; }
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
581 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
338 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
554 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
552 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment