Thanks.
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!
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
NinjaTrader
Forum Indicator Adjustment Help.
Collapse
X
-
Forum Indicator Adjustment Help.
I want change Plot from Line to HLine. I made changes and compiled, but doesn't change chart image. Want HLine extended to right side price column. I removed indicator and re added to chart, but still no change. See Attached Notes & Indicator.
Thanks.Last edited by santafe; 05-29-2019, 09:11 AM.Tags: None
-
I believe if you've compiled changes to the code you'll have to remove and re-add the indicator to the charts so it'll call the Initialize method. Otherwise, the old version of the code will be using the old settings from when it was last added to the chart.
It's possible there could be an old template file that is preventing your changes, but good luck!
-
Hello santafe,
Thanks for your post.
The plots in this indicator are overridden in the section: public override void Plot(Graphics graphics, Rectangle bounds, double min, double max)
In addition to the changes you made, in the override void Plot() method, add the line: base.Plot(graphics, bounds, min, max);
Paul H.NinjaTrader Customer Service
Comment
-
Hello santafe,
Thanks for your reply.
Looks like this:
public override void Plot(Graphics graphics, Rectangle bounds, double min, double max)
{
if (Bars == null || ChartControl == null || this.LastBarIndexPainted < BarsRequired)
return;
base.Plot(graphics, bounds, min, max);
Paul H.NinjaTrader Customer Service
Comment
-
Hello santafe,
Thanks for your reply.
You have added in the correct location.
I noticed that the indicator will not display certain lines if there is not enough data loaded and this would also be noted on the chart at the bottom by the indicator itself.
Please make sure you have at least 30 days of data in the data series.
I've attached an example of what I see which shows the ADR high/low lines extended across the chart. I have 30 days of data loaded in the data series
Paul H.NinjaTrader Customer Service
Comment
-
I believe if you've compiled changes to the code you'll have to remove and re-add the indicator to the charts so it'll call the Initialize method. Otherwise, the old version of the code will be using the old settings from when it was last added to the chart.Last edited by mopakarim4500; 07-20-2019, 09:42 AM.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by WHICKED, Today, 12:45 PM
|
2 responses
16 views
0 likes
|
Last Post
by WHICKED
Today, 03:36 PM
|
||
Started by GussJ, 03-04-2020, 03:11 PM
|
15 responses
3,271 views
0 likes
|
Last Post Today, 03:15 PM | ||
Started by Tim-c, Today, 02:10 PM
|
1 response
8 views
0 likes
|
Last Post Today, 02:52 PM | ||
Started by Taddypole, Today, 02:47 PM
|
0 responses
2 views
0 likes
|
Last Post
by Taddypole
Today, 02:47 PM
|
||
Started by chbruno, 04-24-2024, 04:10 PM
|
4 responses
51 views
0 likes
|
Last Post
by chbruno
Today, 02:38 PM
|
Comment