Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
INDICATOR on INDICATOR
Collapse
X
-
INDICATOR on INDICATOR
I am trying to get a grip on why some indicators can be applied on another indicators and some are not. For now could not pinpoint obvious differences though I am sure there one. I am enclosing one of the Indicators I am trying to apply to another one that for now can not be applied on other indicators. I am also not quite sure how to expose negative and positive trends in this particular indicator to the strategy builder despite the fact that I can clearly see that positive and negative trends being assigned to different numerical values thus making them in theory exposable to strategy building.Tags: None
-
Hello kazbek966,
For an indicator to be called by a host script and return information, the information needs to be set to a plot value returned with a public Series<double> in the getter.
Below is a link to a support article that provides direction.
Your script has a Trend public series returning the TrendMagic plot which can be used in the Strategy Builder or in a hosting indicator. Is this the plot you are trying to use?Chelsea B.NinjaTrader Customer Service
-
Yes, Chelsea, there are two issues here but lets start with the last one. For now I am using Trend Line value in current and previous bar to get into the position, Long or Short. The only reason I am trying to get to colour switch is in the hope to cut delay, which may not work out but would be nice exercise anyway. Usually in all other indicators one can set-up a Value Plot using following lines in the script
[Browsable(false)]
[XmlIgnore]
public Series<double> UPTREND
{
get { return Values[0]; }
}
But in TrendMagic XMIIgnore and Browsable are separated which creates a bit of confusion
[XmlIgnore()]
[Display(Name = "Bull Color", GroupName="Colors", Order=1)]
public Brush BullBrush
{ get; set; }
[Browsable(false)]
public string BullBrushSerialize
{
get { return Serialize.BrushToString(BullBrush); }
set { BullBrush = Serialize.StringToBrush(value); }
}
I can also see there upTrend and downTrend defined as private double series which should in principle make them exposable to strategy as well.
Comment
-
Hello kazbek966,
What color switch?
Is a BarBrush being assigned?
Is a Drawing object being drawn?
Is a plot changing colors?
A Brush is a color. A BarBrush is the property of the bar that can be assigned a Brush and change the color of the bar. A Drawing object uses a Brush as a parameter the object color will be. A PlotBrushes[plot index][bar index] is a property of the plot that can be assigned a Brush and change the color of a plot for a specific bar.
What is the action on the chart?
One line above that action, also set a plot value that can be used as a signal to host.Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
556 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
324 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 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
545 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
547 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment