//UpTrendRules
if (Close[0] > EMA(EMAPeriod)[0] && ADX(ADXPeriod)[0] > 18)
{
if (CrossAbove(PriceZoneOscillator(PZOPeriod), -40, 1))
EnterLong("Buy1");
if (CrossAbove(PriceZoneOscillator(PZOPeriod), 0, 1))
B2_SU = true;
if (B2_SU && CrossAbove(PriceZoneOscillator(PZOPeriod), 15, 1))
{
EnterLong("Buy2");
}
}
Is there an inherent code in an if statement with bool variables that I haven't learned yet? Please translate if you could be so kind.
Thanks!
Brian

Comment