I'm trying to make a script were the Entry signal is when:
After CCI has crosses below -200, the next available GREEN bar (Close > Open) enters the Long signal
Here is the code:
// ENTRY
if (Position.MarketPosition == MarketPosition.Flat)
{
for (int x=1; x <=5 ;x++)
{
if (CrossBelow(CCI(14), -200, x))
{
if (Close[0] > Open[0])
EnterLong(100000,"Long");
}
}
}
Thanks for the help
Comment