Disliked100 SMA of which time frame? iMA(NULL,0,100,0,MODE_SMA,PRICE_CLOSE,0) (the 0 means the current time frame) It is much more complex to open a position than you would think. Can't do it in one line. i.e. if (buy[0]>0 ) { open_price = NormalizeDouble(Close[1]+1.1*pacing,4); stop_loss_price = NormalizeDouble(open_price - pacing , 6); take_profit_price = NormalizeDouble(open_price + 3*pacing , 6); for (i = OrdersTotal() - 1; i >= 0; i--) if (OrderSelect(i, SELECT_BY_POS)) if (OrderMagicNumber() == magic_number) { order_type = OrderType(); if (order_type...Ignored
Please click on the mq4 file if you haven't seen it yet. Then afterwards, could you please tell me why orders are not opening? Because orders should be able to open.
Attached File(s)
Retrace_sma100_2.mq4
3 KB
|
404 downloads
Join our skype group.