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 Fri May 03, 2024 2:14 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Show Trailing Stop in Chart
PostPosted: Tue Oct 23, 2012 8:10 am 
Offline

Joined: Thu Oct 18, 2012 3:37 am
Posts: 4
MT4 has the possibility to use a trailing stop.
As you can only see the actual trailing stop in the chart,
i'm searching a possibility to show the trailing stop in the chart, since the order is started.

Any ideas how to create something like this?

Alternative:
Connect the highs of a certain period.
With the indicator builder i can connect all highs, e.g.
but how can i manage to select the highs of a certain period only?
for example:
show me the absolut high of the last 10 candles only (result should be one point) and connect it with another high from 10 candles by drawing a line


Top
 Profile  
 
 Post subject: Re: Show Trailing Stop in Chart
PostPosted: Tue Oct 23, 2012 9:54 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
In the indicator builder you can use the advanced option to create the highest (or lowest) of a formula with a period=n
You can use it to create the highest of the last n bars
That indicator is pretty common so you may find it at mql4.com


Top
 Profile  
 
 Post subject: Re: Show Trailing Stop in Chart
PostPosted: Tue Oct 23, 2012 10:06 am 
Offline

Joined: Sun Jun 19, 2011 9:38 pm
Posts: 270
Yeah, that's how I do it for horizontal high/low lines. Just set the "Advanced Period" to 10. If you want angled lines, use a Zigzag indi.

Regarding printing your previous trailing stop levels... Rather than trying to call the TS data from your dealer's server (if that's even possible), I would use SB Pro to build an EA to manage TS's, and then harcode ObjectCreate to draw lines on the chart right from the EA.

_________________
I'm not a programmer, but I play one on TV.


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