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 7:25 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Custom indicator
PostPosted: Thu Oct 23, 2014 8:19 am 
Offline

Joined: Wed Oct 22, 2014 11:12 pm
Posts: 2
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 1468 times
BB-Sig-Test.mol [6.71 KiB]
Downloaded 1520 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