protected override void OnBarUpdate()
{
// Condition set 1
if (CrossAbove(Spread(-20, 2, "^CAC40", true), Bollinger(Spread(-20, 2, "^CAC40", true), SD1, KT).Upper, 1))
{
if (BarsInProgress==0)
{ EnterLong(0,Aantal1, "");}
if (BarsInProgress==1)
{EnterShort(1,Aantal2, "");}
}
}
Comment