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 20, 2024 1:03 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Moving Average Strategy using a custom indicator
PostPosted: Thu Jan 14, 2010 4:58 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
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 2922 times
File comment: How to find out the variables of a custom indicator
MA CustomInd.png
MA CustomInd.png [ 28.35 KiB | Viewed 14181 times ]
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

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