I hope my message find you well. I would like to ask you some clarification on the use of the MRO condition.
I understood what it does and I was able to use it correctly.
However, I am having problems on using the values generated by it to do something.
I created an MRO that checks for a red bar, of which I saved the doubles High and Low. Now I would like to use these variables to create further conditions, but it does not seem to work.
I provide the code below.
As can be seen from the picture, Ninja does not recognize the if function (Close[0] > BearBarHigh) .
I really thank you for your hel.
//RED BAR MRO
int bearishBarsAgo = MRO(() => _bearishPA, 1, 10);
if (bearishBarsAgo > -1)
{
Draw.Dot(this, @"Entry Dot_1 " + Convert.ToString(CurrentBars[bearishBarsAgo]), true, 0, (Low[0] + (-10 * TickSize)), Brushes.BlueViolet);
double BearBarLow = Low[bearishBarsAgo];
double BearBarHigh = High[bearishBarsAgo];
Print(Time[0] + " RedBar: " + "Low: " + BearBarLow + " High: " + BearBarHigh);
if (Close[0] > BearBarHigh)
BackBrush = Brushes.Gray;
}

Comment