In my main indicator conditions I want to include the output of the 2nd indicator. How can I do this?
Let's say the 2nd indicator is called JonasMACD, its output is 1 or 0 and comes via such code:
if (blablablaX) { Plot0.Set(1); } if (blablablaY) { Plot0.Set(0); }
if (JonasMACD.Plot0=1)
{
Plot0.Set(1);
}
if (JonasMACD.Plot0=0)
{
Plot0.Set(0);
}
Comment