molanis.com/forum - Tools for MetaTrader : The place to ask about the best expert advisor builder, expert advisor downloads, and expert advisor programming
http://www.molanis.com/forum/

EA with Includs (TP issue)
http://www.molanis.com/forum/viewtopic.php?f=14&t=5532
Page 1 of 1

Author:  surubabs [ Tue Jan 22, 2013 10:44 am ]
Post subject:  EA with Includs (TP issue)

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 731 times

Author:  molanisfx [ Wed Jan 23, 2013 4:33 pm ]
Post subject:  Re: EA with Includs (TP issue)

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

Author:  surubabs [ Fri Jan 25, 2013 11:32 pm ]
Post subject:  Re: EA with Includs (TP issue)

Ok, sir, can i code manualy in the Mt5 Ea which created by mol file ?

Author:  molanisfx [ Sat Jan 26, 2013 7:17 pm ]
Post subject:  Re: EA with Includs (TP issue)

You can add your own code or build more complex conditions. Unfortunately we do not have the code to post here.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/