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 Sat Apr 27, 2024 11:54 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Trailing take profit
PostPosted: Tue Mar 03, 2015 11:42 am 
Offline

Joined: Sun Mar 01, 2015 6:52 am
Posts: 3
Hi,

I am testing a strategy that needs to trail TP (Take Profit). It is like locking loss when the market goes against you. I know it is very strange.
I need to trail Take profits exactly like Stop Lost. ( Trailing by tick and also completed Bar ). Are there any codes that I should add to my EA MQL4? if so, where and how. Please let me know If you can help me.

Thanks


Top
 Profile  
 
 Post subject: Re: Trailing take profit
PostPosted: Sun Mar 08, 2015 10:11 pm 
Offline
Site Admin

Joined: Fri Oct 16, 2009 3:40 pm
Posts: 451
You could copy the code for trailing stops and change it for tp. Unfortunately you will need to edit the ea manually and add the code since we do not offer that feature of trailing tp.


Top
 Profile  
 
 Post subject: Re: Trailing take profit
PostPosted: Mon Mar 09, 2015 1:20 am 
Offline

Joined: Sun Mar 01, 2015 6:52 am
Posts: 3
Hi,

Is it possible for you instruct me to do that ?

I would appreciate if you help me.

Thanks


Top
 Profile  
 
 Post subject: Re: Trailing take profit
PostPosted: Mon Mar 09, 2015 9:12 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Unfortunately changing that code is a complex task and cannot do it for you
Besides, how is a trailing tp going to work? If the price move on your favor you move the tp up? if you keep doing that when is the position going to close due to hitting the tp?


Top
 Profile  
 
 Post subject: Re: Trailing take profit
PostPosted: Wed Mar 18, 2015 3:38 am 
Offline

Joined: Sun Mar 01, 2015 6:52 am
Posts: 3
|Thanks,

Not the problem. I will figure it out.

Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 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:  
Powered by Molanis © 2009