Quote:
Originally Posted by bearfoot090
thanks michel for the reply.
I`ll try. but what should i put in the comment?anything i like?
|
Put the time you want to close the order. The Comment field must be a string, that's why there is ""+ in front of the value. for example:
PHP Code:
""+(Time[0] + Period()*60) // begin of the next bar on the current timeframe
""+(TimeCurrent() + 2*360 + 30*60) // 2 hours 30 minutes after the openning
""+(iTime(NULL,PERIOD_D1,0) + 23*360 + 45*60) // today at 23:45 (server time)
""+(iTime(NULL,PERIOD_W1,0) + (PERIOD_W1 - 10)*60) // next friday at 23:50