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
-
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
-
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
-
Originally posted by koganam View PostThe 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
-
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, 11:08 AM.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Timefilter
by smk200
Started by smk200, Today, 10:29 AM
|
1 response
12 views
0 likes
|
Last Post
|
||
Started by Austiner87, Today, 09:44 AM
|
2 responses
21 views
0 likes
|
Last Post
![]()
by Austiner87
Today, 10:19 AM
|
||
Started by TriGuy818, Today, 09:19 AM
|
2 responses
14 views
0 likes
|
Last Post
![]()
by TriGuy818
Today, 09:44 AM
|
||
Started by 7robert, Today, 09:12 AM
|
1 response
11 views
0 likes
|
Last Post
|
||
Started by space_trader, Today, 09:11 AM
|
2 responses
27 views
0 likes
|
Last Post
![]()
by space_trader
Today, 09:46 AM
|
Comment