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 Sun May 12, 2024 4:40 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Clarification of use of "AND" "OR" LOGIC in same strategy
PostPosted: Thu Jun 13, 2013 11:06 pm 
Offline

Joined: Mon Apr 02, 2012 7:17 am
Posts: 6
I need to create the following

Strategy with 3 conditions that MUST be met. I would use the "and" logic for this and that works fine by itself.

Then I need some "OR" logic

There are three conditions that can be met in this part and 1 must be met which I understand the "or" logic covers. However how do I put the 2 together. Ie have both and and or in the same strategy. I have played around with this and I can't seem to get it to work. Both logics are attached to the same buy icon but it seems to just choose 1 path or the other. Either the 3 and conditions are met or one of the or conditions only it met.

Is it possible to create a strategy which uses both "and" icons and "or" icons?

Thanks in advance


Top
 Profile  
 
 Post subject: Re: Clarification of use of "AND" "OR" LOGIC in same strategy
PostPosted: Fri Jun 14, 2013 10:52 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
If you want something like
If (A AND B AND D) or C then Buy, connect a 3 TAs icon (A and B and D) to AND and then to Buy; then just one TA (C) to Buy


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