Thank you for taking time to consider this,
double E= (EMA(Close, 100)[0]);
double W= (WMA(Close,100)[0]);
double Eu =(E +(W*0.25));
double El =(E -(W*0.25));
Now as I defined the values of E, Eu, and El,
I want simply to plot the values on the chart as new lines to consider in my trading.
I tried this below but it didn't work.
if (CurrentBars[0] > 1)
{
DrawLine("tag1", false, 0, 0, E ,0, Color.LimeGreen, DashStyle.Dot, 2);
}
I tried several other alternative didn't work also as to add to initialize.
protected override void Initialize()
{
Add(new Plot(Color.Blue, "E"));
Add(new Plot(Color.Red, "Eu"));
Add(new Plot(Color.Green, "El"));
}
Can you help me with the subject to understand how to so.
Thank you in advance.
Yassine.
Comment