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
http://www.molanis.com/forum/viewtopic.php?f=9&t=6095
Page 1 of 1

Author:  alf377 [ Thu Oct 23, 2014 8:19 am ]
Post subject:  Custom indicator

Hi, attached is a custom indicator that I would like to use to build a simple EA. It seems that there are 6 indicator signals and I am not sure which one to use. I can see from the indicator codes the following:

#property indicator_buffers 6
#property indicator_color1 RoyalBlue
#property indicator_color2 Red
#property indicator_color3 RoyalBlue
#property indicator_color4 Red
#property indicator_color5 RoyalBlue
#property indicator_color6 Red

and also:

SetIndexLabel(0, "UpTrend Stop");
SetIndexLabel(1, "DownTrend Stop");
SetIndexLabel(2, "UpTrend Signal");
SetIndexLabel(3, "DownTrend Signal");
SetIndexLabel(4, "UpTrend Line");
SetIndexLabel(5, "DownTrend Line");

Do I use mode 2 = 1 to open a long position (shown as big blue dot in MT4) and mode 3 = 1 to go short (big red dot in MT4)?
The EA I created using Molanis (attached) did not open any trades at all. Obviously I have not got it right. Can you please advise? Thanks.

Attachments:
BB_Sig.mq4 [5.12 KiB]
Downloaded 1530 times
BB-Sig-Test.mol [6.71 KiB]
Downloaded 1581 times

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