Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Custom indicator
Collapse
X
-
Hi mballagan,
Thank you for your post.
If you create the custom indicator and it is available within NinjaTrader then you can add that indicator in the Indicator column of Market Analyzer.
Then once added to the Market Analyzer you can create alert conditions based on that indicator.Ryan O.NinjaTrader Customer Service
-
I have created a custom indicator that checks for two conditions the logic for condition 1 is as follows:
if(ReverseCandleLong())
{
Plot1.Set(1);
counter++;
string tag = "RCLE" + counter.ToString();
Print("Reverse Candle LE: date = " + Time[0].Date.ToString() + " time = " + Time[0].ToShortTimeString());
DrawText(tag,"RCLE ",0,Open[0],Color.Blue);
Print("Current time = " + Time[0].ToString() + " pivotlevels[0] = " + pivotlevels[0].ToString());
}
else
{
Plot1.Set(0);
}
where ReverseCandleLong() checks for a particular bar formation.
When I try and add this indicator to market analyzer I get an error message saying that NinjaTrader has encountered an error and needs to close. The indicator compiles fine, what I am trying to do is set up an alert so that a cell in market analyzer changes color when a condition is true.
Originally posted by NinjaTrader_RyanOlson View PostHi mballagan,
Thank you for your post.
If you create the custom indicator and it is available within NinjaTrader then you can add that indicator in the Indicator column of Market Analyzer.
Then once added to the Market Analyzer you can create alert conditions based on that indicator.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by helpwanted, Today, 03:06 AM
|
0 responses
3 views
0 likes
|
Last Post
by helpwanted
Today, 03:06 AM
|
||
Started by Brevo, Today, 01:45 AM
|
0 responses
6 views
0 likes
|
Last Post
by Brevo
Today, 01:45 AM
|
||
Started by aussugardefender, Today, 01:07 AM
|
0 responses
5 views
0 likes
|
Last Post Today, 01:07 AM | ||
Started by pvincent, 06-23-2022, 12:53 PM
|
14 responses
242 views
0 likes
|
Last Post
by Nyman
Today, 12:47 AM
|
||
Started by TraderG23, 12-08-2023, 07:56 AM
|
9 responses
384 views
1 like
|
Last Post
by Gavini
Today, 12:29 AM
|
Comment