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/

Moving Average Strategy using a custom indicator
http://www.molanis.com/forum/viewtopic.php?f=3&t=14
Page 1 of 1

Author:  molanisfx [ Thu Jan 14, 2010 4:58 pm ]
Post subject:  Moving Average Strategy using a custom indicator

We have been having lots of questions about custom indicators. Here you can find an example. We know it's a bit difficult to include custom indicators but we are working to make it easier.

Moving Average Strategy using a custom indicator
Two moving averages can be used to create a forex strategy with these rules:

•Buy when the short period (9) moving average is above the long period (18) moving average
•Sell when the long period (18) moving average is above the short period moving (9) average

Just note, that the TA on the right connected to a SELL block does not use the standard Moving Average indicator. Instead, it uses a custom indicator.

Custom indicators must be located in the indicators directory (C:\Program Files\MetaTrader 4\experts\indicators for standard installations of MT4) and must be compiled - a .ex4 file must exist. This strategy uses Moving Averages.ex4 which is provided with the MetaTrader installation.

When entering the information for the custom fields remember to use the right format. As explained here viewtopic.php?f=2&t=10

How do I find out the variables of my custom indicator?
The variables of your custom indicator are visible in MetaTrader when you add the indicator to a graph. See the image below.

Molanis Team

Attachments:
File comment: MA strategy using a custom indicator
MA_CustomInd.mol [6.62 KiB]
Downloaded 2956 times
File comment: How to find out the variables of a custom indicator
MA CustomInd.png
MA CustomInd.png [ 28.35 KiB | Viewed 14208 times ]

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