Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Problem with custom indicator
Collapse
X
-
I found:
if (CurrentBar == 0)
{
myDataSeries.Set(Input[0]);
Slope.Set(Input[0]);
Slopemov.Set(Input[0]);
}
else
{
Slope.Set(FctMyslope());
double MovSlope=EMA(myDataSeries,LenghtMov)[0];
Slopemov.Set(MovSlope);
}
I must to add "if (CurrentBar == 0)".
Thank's a lot for your help and time.
Comment
-
All that I did is to simply take your code that you posted in post#3 and add the tracking statements. I do not get any errors, so if you do, then I must conclude that you may have changed your code in the meantime, in which case we are not looking at the same thing anymore. I can only deal with what information that I see, unfortunately.Originally posted by neo-13 View PostSorry you have rigth:
The error come from compil.
The line is:
Slope.Set(FctMyslope());
and the error message is:
...slope(idDataseries, int, int) is a method, which is not valid in the given context
Thank's again for your help
Comment
-
Yes that works but if the back color of the chart is black and we set it to be black the value of the plot will be also black and it doesn't look good. And also the plot values when we click the bar will be in black also. Is there other way to customize the plot where in it will not be seen in the chart but the values of the plot will remain as the default color when declaring the plot?Originally posted by NinjaTrader_Joydeep View PostHello edward_bell,
Thanks for your note.
Unfortunately there are no native way to do it. However if you set the color of the Plots same as the color of the background then you can make the lines disappear, while the values still appearing in the Y Axis pane.
Comment
-
Originally posted by edward_bell View PostYes that works but if the back color of the chart is black and we set it to be black the value of the plot will be also black and it doesn't look good. And also the plot values when we click the bar will be in black also. Is there other way to customize the plot where in it will not be seen in the chart but the values of the plot will remain as the default color when declaring the plot?
The color of the Plot will always be the color of the text, so the answer is "no": you set the Plot color, the text color will match it.
Comment
-
Thanks for your immediate reply. Basically I want the plot values to be there when you click the bars but the plotted line will be hidden. I tried to set the color to transparent but the plot values will not be show on the bar when I click it. I want the plot will show even if the color of the plot is transparent. I want it to show just like the Close, Low, High, Open price but the plot line will be hidden.Originally posted by koganam View Post
The color of the Plot will always be the color of the text, so the answer is "no": you set the Plot color, the text color will match it.
Comment
-
Your description of what you want was already clear. Unfortunately, some things are impossible in an absolute sense, and the way that the NT framework is written seems to dictate that the color of the marker text is defined by the color of the Plot, with no possibility of separation. As the framework is closed-source, that means that we cannot go in there and change that imperative.Originally posted by edward_bell View PostThanks for your immediate reply. Basically I want the plot values to be there when you click the bars but the plotted line will be hidden. I tried to set the color to transparent but the plot values will not be show on the bar when I click it. I want the plot will show even if the color of the plot is transparent. I want it to show just like the Close, Low, High, Open price but the plot line will be hidden.
You have only the 2 choices that have already been identified:- Make the Plot the same color as the Chart background, thus hiding it, or
- Make the Plot transparent, effectively removing it from display completely.
Of course, you can always suggest that what you want should be developed. NT seems to accept almost all suggestions. Whether they will actually provide the ability described is a different kettle of fish.Last edited by koganam; 01-14-2013, 12:08 PM.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
580 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
336 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