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 11:32 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Using Tiered Entries and Exits
PostPosted: Fri Jan 25, 2013 1:25 pm 
Offline

Joined: Fri Feb 04, 2011 9:48 pm
Posts: 114
Location: Canada
I have just programmed an ea with two buy conditions each connected to a seperate buy icon and two close trade condtions, each connected to a seperate 'close trade" icon. I have set the number of trades to 2.

I want to be able to enter a trade in steps in terms of the size of my position. Will the expert enter the first trade on one condition being met, and then a second trade when and if the second condition is met? similar for exits.

I have attached the ea here. Thanks.

Attachment:
experimental tier entry exits.mol [11.15 KiB]
Downloaded 382 times

_________________
Building a future with automated trading


Top
 Profile  
 
 Post subject: Re: Using Tiered Entries and Exits
PostPosted: Sat Jan 26, 2013 7:29 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
you are using conditions that may overlap so there is no control about which one enters the market.
Also if only one condition is true it may trigger 2 positions. You need the number of opened positions for your ea, someone in the forum may have posted the code for that. We will have it in the next release for sure.


Top
 Profile  
 
 Post subject: Re: Using Tiered Entries and Exits
PostPosted: Mon Jan 28, 2013 8:05 am 
Offline

Joined: Fri Feb 04, 2011 9:48 pm
Posts: 114
Location: Canada
Yes, and even if the conditions didn't overlap, there would likely be two positions opened based on only the one condition. I will wait until the next release. Thanks

_________________
Building a future with automated trading


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