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 Mon May 13, 2024 5:27 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: MaxNoOfPositions
PostPosted: Fri Feb 22, 2013 2:40 pm 
Offline

Joined: Mon Feb 06, 2012 12:53 pm
Posts: 18
I have MaxNoOfPositions set to "3". Oftentimes, it will trigger two SAME trades at once. I have Execution Mode set to "Completed Bars." Is there something I can do so the EA only triggers one trade per bar?


Top
 Profile  
 
 Post subject: Re: MaxNoOfPositions
PostPosted: Fri Feb 22, 2013 9:28 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Max of 3 means that you won't have 4 positions, just 3. That feature does not control how many trades are executed at the same time. That control is given by your logic, your TAs and TA+ for example. You need to adjust your logic. There is no way to tell the ea execute only one trade per bar, you need to define a trading logic that only executes one trade per bar


Top
 Profile  
 
 Post subject: Re: MaxNoOfPositions
PostPosted: Sun Feb 24, 2013 9:05 am 
Offline

Joined: Mon Feb 06, 2012 12:53 pm
Posts: 18
The logic of my EA is excellent. I do not want to change it because it is profitable.

My question is when you say " There is no way to tell the ea execute only one trade per bar, you need to define a trading logic that only executes one trade per bar" are you saying there is no way to do it with Molanis EA builder? Surely, MQL would accommodate making only one trade per bar. I don't see any options with TA+ that would help me with a solution.


Top
 Profile  
 
 Post subject: Re: MaxNoOfPositions
PostPosted: Sun Feb 24, 2013 7:17 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
I mean if your ea opens more than one position per bar, it means that the logic triggers more than one position per bar. If you do not want to change your logic maybe you could add some custom mql code for that.
The problem is that you trigger more than one order per bar and you want one, how do you select the right position from your many triggers...


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