Inserted Code
int init(){}
int deinit(){}
int BarsCount=0;
bool openlong()
{//Write open LONG TRADE conditions here.
}
bool openshort()
{//Write open SHORT TRADE conditions here.
}
bool closelong()
{//Write close LONG TRADE conditions here.
}
bool closeshort()
{//Write close SHORT TRADE conditions here.
}
bool xopenlong()
{// Actual order execution here for OPEN LONG TRADE.
}
bool xopenshort()
{//Actual order execution here for OPEN SHORT TRADE.
}
bool xcloselong()
{//Actual order execution for CLOSE LONG TRADE.
}
bool xcloseshort()
{//Actual order execution for CLOSE SHORT TRADE.
}
int start()
{
if (Bars > BarsCount)
{
BarsCount=Bars;
{//All indicators go in here...
}
if (openlong(true)) xopenlong();
if (openshort(true)) xopenshort();
if (closelong(true)) xcloselong();
if (closeshort(true)) xcloseshort();
}
} Can anyone please point out the error ? It says wrong parameters count error.