molanis.com/forum - Tools for MetaTrader : The place to ask about the best expert advisor builder, expert advisor downloads, and expert advisor programming

AFTER YOU REGISTER SEND US AN EMAIL TO ACTIVATE YOUR ACCOUNT - Before posting:-1- Please read the user guide -2- Try the examples -3- Search in the forum
It is currently Sat Jun 15, 2024 8:09 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: TIME icon confusion
PostPosted: Fri Aug 26, 2011 3:24 pm 
Offline

Joined: Thu Jun 23, 2011 5:06 pm
Posts: 54
I have the START icon time filter set to "off"
and "close all positions after hours" set to "true"
and the TIME icon set to stop trading at 1600 hours.

So why has my trader not closed its currency pair? :roll:


Top
 Profile  
 
 Post subject: Re: TIME icon confusion
PostPosted: Fri Aug 26, 2011 7:50 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
The options in the START icon apply to the expert advisor. If in the START icon says OFF, the time filter options in the START icon won't work so no position will be closed. The START icon should be used to give a general trading filter for the ea, like trade from x hour to y hour and if you are out of that range close the open positions. Since it lacks of the day option we created the TIME icon.
The TIME icon should be used to add time filters joining it with TA icons (using an AND) so they work at the condition level. So you get things like open position if the TA condition is true and it's Monday between 9 and 11.
You can use both filters at the same time. The expert advisor will use the condition in the START icon first and then will check the TIME icons.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by Molanis © 2009