Quote:
|
Originally Posted by indratime
i have find out the problem. you can see below.
'TimeCurrent' - function is not defined F:\Program Files\MetaTrader - North Finance\experts\Daily range and locking trade.mq4 (78, 7)
|
AFAIK that command was introduced in build 200, so probably you use a bit old version of MT. Try to update it.
Quote:
|
Originally Posted by indratime
Take profit when all order (sell limit and buy limit) have executed. thats why this system call locking trade.
|
You mean close both orders at the moment the second one executed, don't you?
Quote:
|
Originally Posted by indratime
i use MACD for knowing big trend in daily.
If UPTREND Buy limit -10pips from open price and sell limit +20pips from open price.
|
Sorry, but still not clear for me - there are several ways to check up or down trend using MACD. Position of SIGNAL line you mentioned before is one of them.
You know, it's a very complicated problem for EA to answer a very simple question - uptrend or downtrend.