View Single Post
  #13 (permalink)  
Old 06-14-2007, 05:12 AM
MrPip MrPip is offline
Senior Member
 
Join Date: Mar 2006
Location: La Verne,CA
Posts: 552
MrPip is on a distinguished road
New version

Quote:
Originally Posted by jack2
I am sorry, I do not know which line to delete.

Even I set the profit target > 10, and when the time comes, the robot can't open any positions.

Anything wrong?
I commented out the lines that check for TakeProfit.

It does check for the exact time to the minute so if there is no tick for the minute entered it will not place the trade.

Time must be entered as an integer.

For example 13:30 would be entered as 1330.

If there is no tick until 1331 the trade will not be entered.
I would be useful to have a time range begin and end for the trade to be placed so I added that as well. The default is a two minute window for trade to be entered.

Robert
Attached Files
File Type: mq4 TimeBasedEA.mq4 (3.1 KB, 144 views)
Reply With Quote