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 Thu May 16, 2024 10:15 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 15 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: How to get the signal to create an EA
PostPosted: Sun Nov 20, 2011 7:38 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Again, please post the indicator's code. There are many indicators on the internet..even different versions with the same name. Looking at a chart won't tell you which mode to use.


Top
 Profile  
 
 Post subject: Re: How to get the signal to create an EA
PostPosted: Mon Nov 21, 2011 12:38 am 
Offline

Joined: Wed Jun 29, 2011 3:10 am
Posts: 9
ok here's the code:
Attachment:
FX_FISH_2MA.mq4 [5.88 KiB]
Downloaded 350 times


like i show in my prevous post, i would like enter in buy when histogramme came green and sell when histo came red.


Top
 Profile  
 
 Post subject: Re: How to get the signal to create an EA
PostPosted: Mon Nov 21, 2011 4:10 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Try using mode 0 for lime and mode 1 for red as show here:

SetIndexStyle(0,DRAW_HISTOGRAM,STYLE_SOLID,3,Lime);
SetIndexStyle(1,DRAW_HISTOGRAM,STYLE_SOLID,3,Red);


Top
 Profile  
 
 Post subject: Re: How to get the signal to create an EA
PostPosted: Tue Nov 22, 2011 11:37 am 
Offline

Joined: Wed Jun 29, 2011 3:10 am
Posts: 9
ok , i've guessed that i should use the 0 mode and the 1 mode .

But my real question is : In strategy builder i should compare the mode 0/1 to "something"... (if mode1<0 =>buy by exemple)
What are this "something", the price, an user number, the mode 1, or something other??

Excuse me for my bad english....


Top
 Profile  
 
 Post subject: Re: How to get the signal to create an EA
PostPosted: Tue Nov 22, 2011 12:54 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Just look at the chart and you will get the answer.
Lime is higher than 0, red is lower than zero (Compare them to zero as a user defined price or number of 0)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ]  Go to page Previous  1, 2

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