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
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?
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, 12:08 PM.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by halgo_boulder, Today, 08:44 AM
|
0 responses
1 view
0 likes
|
Last Post Today, 08:44 AM | ||
Started by drewski1980, Today, 08:24 AM
|
0 responses
3 views
0 likes
|
Last Post
by drewski1980
Today, 08:24 AM
|
||
Started by rdtdale, Yesterday, 01:02 PM
|
2 responses
17 views
0 likes
|
Last Post
by rdtdale
Today, 07:54 AM
|
||
Started by TradeSaber, Today, 07:18 AM
|
0 responses
7 views
0 likes
|
Last Post
by TradeSaber
Today, 07:18 AM
|
||
Started by PaulMohn, Today, 05:00 AM
|
0 responses
10 views
0 likes
|
Last Post
by PaulMohn
Today, 05:00 AM
|
Comment