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 11:02 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: new Time icon
PostPosted: Thu Jun 09, 2011 4:28 pm 
Offline

Joined: Thu Jun 09, 2011 4:18 pm
Posts: 3
hello,

I am trying to use the new time icon but apparently I am doing something wrong because the EA doesn't work.

I would like to assign at least two trading time slots for each day, because I would like the EA to trade during a certain time in the morning and then stop and start again later in the day and I only want it to affect the opening conditions and not the closing condition.. so I used two time icons for the opening condition


I connected the first time icon in the following way:

start-->time icon-->and-->TA (buy condition)

the second time icon was connected in the same way.

don't really know what I am doing wrong? Is it not possible to use two time icons simultaneously??

thanks for the help


Top
 Profile  
 
 Post subject: Re: new Time icon
PostPosted: Thu Jun 09, 2011 6:42 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Yes you can use 2 time icons. Each time icon should join a TA logic using an AND
Please post your strategy to take a look. It seems that you are doing the right things.


Top
 Profile  
 
 Post subject: Re: new Time icon
PostPosted: Fri Jun 10, 2011 2:48 am 
Offline

Joined: Thu Jun 09, 2011 4:18 pm
Posts: 3
find enclosed a screenshot. let me know if you also need the code.


Attachments:
molanis test.png
molanis test.png [ 163.69 KiB | Viewed 3857 times ]
Top
 Profile  
 
 Post subject: Re: new Time icon
PostPosted: Fri Jun 10, 2011 8:22 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
An AND is used to join conditions (All inputs that connect to the AND must be true to execute BUY)
You have something like TA AND TA AND TIME CONDITION1 AND TIME CONDITION2 which may not work (you are joining your 2 time filters).
You need to break it down to TA AND TA AND TIME CONDITION1 and TA AND TA AND TIME CONDITION2


Top
 Profile  
 
 Post subject: Re: new Time icon
PostPosted: Fri Jun 10, 2011 8:29 am 
Offline

Joined: Thu Jun 09, 2011 4:18 pm
Posts: 3
so I just need to need to copy paste the two TAs and the AND and connect the with the second time icon right??

the two time icons are probably blocking each other at the moment, right??


Top
 Profile  
 
 Post subject: Re: new Time icon
PostPosted: Fri Jun 10, 2011 2:42 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Yes, they are blocking each other


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 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