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 Apr 28, 2024 5:04 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: EA with Includs (TP issue)
PostPosted: Tue Jan 22, 2013 10:44 am 
Offline

Joined: Wed Jan 16, 2013 2:33 am
Posts: 6
Hi, all

I created a new Ea which works with Two Custom Indicator, i am so comfertable on the strategy i have,
the problem is with the take profit part, what should i do to avoid the EA making the same trade in the same diraction
after taking profit,

I know about the the strategy which i assigind to my EA it only works like that,

What i am asking is there any option to solve the issue ?

Thanks In advance

Suresh


Attachments:
Rocktrader1.mol5 [15.3 KiB]
Downloaded 715 times

_________________
The Art Of Trading
Top
 Profile  
 
 Post subject: Re: EA with Includs (TP issue)
PostPosted: Wed Jan 23, 2013 4:33 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
For the mt5 version you need to build more complex conditions. The ea is trading as per your logic so it trades once and tp is activated, then the logic to trade is still true so it enters the market again.
More complex conditions are crossover types not simple comparisons. In your case you may want to see if a crossover fits the Heiken_Ashi_Smoothed logic to trade.The manual for the mt4 version shows how to create crossover - also take a look at the examples at http://www.molanis.com/products/expert- ... visors-mt5


Top
 Profile  
 
 Post subject: Re: EA with Includs (TP issue)
PostPosted: Fri Jan 25, 2013 11:32 pm 
Offline

Joined: Wed Jan 16, 2013 2:33 am
Posts: 6
Ok, sir, can i code manualy in the Mt5 Ea which created by mol file ?

_________________
The Art Of Trading


Top
 Profile  
 
 Post subject: Re: EA with Includs (TP issue)
PostPosted: Sat Jan 26, 2013 7:17 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
You can add your own code or build more complex conditions. Unfortunately we do not have the code to post here.


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