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 Apr 29, 2024 5:28 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: custom indicator - Donchian
PostPosted: Fri Feb 26, 2010 11:43 am 
Offline

Joined: Mon Feb 08, 2010 10:13 am
Posts: 26
is it possible to work with the Donchian indicator.

I'd like to use it i.e. for closing a Short position if close > Donchian High (20).

Nick


Top
 Profile  
 
 Post subject: Re: custom indicator - Donchian
PostPosted: Fri Feb 26, 2010 12:26 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
We can work with any indicator - you just need to understand the indicator's signals to select the Mode option.
In a TA block, you can use Custom Indicator to use any indicator. On Monday we will release the import custom indicator feature so it will be easier.

Can you upload your indicator to take a look?


Top
 Profile  
 
 Post subject: Re: custom indicator - Donchian
PostPosted: Fri Feb 26, 2010 1:33 pm 
Offline

Joined: Mon Feb 08, 2010 10:13 am
Posts: 26
here you are :D


Attachments:
Donchian.mq4 [1.88 KiB]
Downloaded 746 times
Top
 Profile  
 
 Post subject: Re: custom indicator - Donchian
PostPosted: Fri Feb 26, 2010 5:50 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
This one has 2 modes = 2 indicator lines.
//---- indicator buffers mapping
SetIndexBuffer(0,upper);
SetIndexBuffer(1,lower);

When adding it using the custom indicator in a TA block, use this:
"Donchian",20

20 is the period.
To get the upper signal set the Mode option to 0
To get the lower signal set the Mode option to 1


Top
 Profile  
 
 Post subject: Re: custom indicator - Donchian
PostPosted: Sat Feb 27, 2010 8:30 am 
Offline

Joined: Mon Feb 08, 2010 10:13 am
Posts: 26
Thanks a lot :idea:


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:  
cron
Powered by Molanis © 2009