also u may wanna put the debug code in
if(ticket<0)
{
Print("OrderSend failed with error #",GetLastError());
return(0);
}
u may could work something like this into the code i believe
pricevar=Ask;
if (Ask>=pricevar+30Point)
but stoporder may be more efficient
If I use OP_BUYSTOP the Expert do nothing.
martin80:
If I use OP_BUYSTOP the Expert do nothing.
If I use OP_BUYSTOP the Expert do nothing.
Your trade expiration time is wrong. It is set at 18 seconds after Jan1, 1970. You will have to make adjustments to that.
I think you may have other problems with your EA. Did youcheck the logs and the journals to see if there are any comments that MT4 is generating?

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register