I have developed an indicator that I would like to make strategy builder friendly. I have ready through the forum and see that I need to associate the values I want to track with a plot so that I may access them in the strat builder. When I add a plot though I find that I the strat builder still doesn't seem to have access to the values.
How do I set up this plot to be usable in the strategy builder?
In the Strategy Builder:
Condition: MyIndicator = 3
Action: Enter Long
My Code:
[Browsable(false)]
[XmlIgnore]
public Series<double> LegType
{
get { return Value; }
}
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
AddPlot(Brushes.Transparent, "LegType");
}
}
protected override void OnBarUpdate()
{
if (something happens)
Value[0] = 1;
else if (something else happens)
Value[0] = 2;
else
Value[0] = 3;
}
Thanks for all the help!

Comment