Hi People,
I am having trouble with this line of code. I do not get errors but it doesn't work.
I am new at this so, if I am missing something really obvious, sorry.
What the code is supposed to do is to evaluate the current price and if it is lower than the open of the last 15 minute bar X pricepoint, then not order.
extern double pricepoint3 = 30
if(MayOpenDeferOrder) //can open limit or stop orders.
{
if((type == _OP_BUY) && Bid <= (iOpen(NULL,PERIOD_M15,1)-(pricepoint3*0.0001))) MayOpenDeferOrder = false;
}
If someone could point me to the problem, I would really appreciate it.
cheers A
I am having trouble with this line of code. I do not get errors but it doesn't work.
I am new at this so, if I am missing something really obvious, sorry.
What the code is supposed to do is to evaluate the current price and if it is lower than the open of the last 15 minute bar X pricepoint, then not order.
extern double pricepoint3 = 30
if(MayOpenDeferOrder) //can open limit or stop orders.
{
if((type == _OP_BUY) && Bid <= (iOpen(NULL,PERIOD_M15,1)-(pricepoint3*0.0001))) MayOpenDeferOrder = false;
}
If someone could point me to the problem, I would really appreciate it.
cheers A