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/

custom indicator - Donchian
http://www.molanis.com/forum/viewtopic.php?f=2&t=71
Page 1 of 1

Author:  nick_berlin [ Fri Feb 26, 2010 11:43 am ]
Post subject:  custom indicator - Donchian

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

Author:  molanisfx [ Fri Feb 26, 2010 12:26 pm ]
Post subject:  Re: custom indicator - Donchian

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?

Author:  nick_berlin [ Fri Feb 26, 2010 1:33 pm ]
Post subject:  Re: custom indicator - Donchian

here you are :D

Attachments:
Donchian.mq4 [1.88 KiB]
Downloaded 754 times

Author:  molanisfx [ Fri Feb 26, 2010 5:50 pm ]
Post subject:  Re: custom indicator - Donchian

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

Author:  nick_berlin [ Sat Feb 27, 2010 8:30 am ]
Post subject:  Re: custom indicator - Donchian

Thanks a lot :idea:

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