Not sure when you are getting the error, but you have type defined as a string:Wobstix wrote:Alright,
I have been away for a few days so, could not do anything.
I have made so many changes that I am in a totally different place from where I left off.
I found and changed a lot, then did a total make-over.
I am not getting multiple trades opening - Good
Comments are telling me what I want to see as far as Entry, SL & TP are concerned - Good
It tries to open a trade at the right price, in the right direction - Good
I am, however, getting an error 4063 - integer parameter expected
Sometimes I think I have it, only to be destroyed with multiple errors & warnings.
Please George, Steve, Point me in the right direction.
Thank you in advance.
Code: Select all
if (Ask < Entry)
{
Pending = "Buy";
string type = "OP_BUY";
}
if (Ask > Entry)
{
Pending = "Sell";
type = "OP_SELL";
}
Code: Select all
if (Ask < Entry)
{
Pending = "Buy";
int type = OP_BUY;
}
if (Ask > Entry)
{
Pending = "Sell";
type = OP_SELL;
}
George