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 10:36 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 15 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: How to get the signal to create an EA
PostPosted: Fri Aug 20, 2010 7:42 am 
Offline

Joined: Thu Aug 12, 2010 7:49 am
Posts: 81
Hi Molanis,

I am facing a problem of getting buy and sell signals from this Custom indicator, May I know can I use this indicator to create an EA?

I want the EA to open buy when Fish Signal above 0 level, at the same time MA1 cross above MA2. open sell when Fish signal below 0 level and MA1 cross below MA2. Kindly let me know how to get the signal.

I am attached the indicator file for your reference.

Thank you so much in advance.

Best regards


Attachments:
FX_FISH_2MA.mq4 [5.88 KiB]
Downloaded 694 times
Top
 Profile  
 
 Post subject: Re: How to get the signal to create an EA
PostPosted: Fri Aug 20, 2010 10:21 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Please post your molanis strategy file as well. Thanks.


Top
 Profile  
 
 Post subject: Re: How to get the signal to create an EA
PostPosted: Fri Aug 20, 2010 8:39 pm 
Offline

Joined: Thu Aug 12, 2010 7:49 am
Posts: 81
Thank you for your reply.

I attached the molanis strategy file now.


Attachments:
FX_FISH_2MA EA.mol [5.4 KiB]
Downloaded 744 times
Top
 Profile  
 
 Post subject: Re: How to get the signal to create an EA
PostPosted: Wed Aug 25, 2010 12:46 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
The indicator was not well written, it uses a variable to put the help and this prevent the import function to work. To make it work I commented out the following variables definition:
//extern string TypeHelp="SMA- 0, EMA - 1, SMMA - 2, LWMA- 3";
//extern string TypeHelp2="John Hyden settings TypeMA1=0, TypeMA2=3";

Please explain your strategy - which one is the Fish Signal? The indicator has 4 signals.


Attachments:
File comment: Corrected indicator
FX_FISH_2MA.mq4 [5.87 KiB]
Downloaded 704 times
Top
 Profile  
 
 Post subject: Re: How to get the signal to create an EA
PostPosted: Fri Aug 27, 2010 8:35 am 
Offline

Joined: Thu Aug 12, 2010 7:49 am
Posts: 81
Hi Molanis,

Thank you for your reply.

My problems already solved.

Thank you.


Top
 Profile  
 
 Post subject: Re: How to get the signal to create an EA
PostPosted: Wed Feb 23, 2011 2:25 pm 
Offline

Joined: Fri Sep 24, 2010 4:35 pm
Posts: 8
hello,
i have also been trying to build an ea with a custom indicator and have been having great headache dealing with similar problems (how to locate the corresponding mode index for a custom indicator that has up to 4 or 5 indicator parameters) and (also how to know the values a 2 color line custom indicator returns when its buying/selling) .
I will appreciate if anyone could link me to where i can get detial explanation with examples either within or outside this forum. Pls pls

_________________
forex no be moi-moi o!


Top
 Profile  
 
 Post subject: Re: How to get the signal to create an EA
PostPosted: Wed Feb 23, 2011 4:45 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Try this viewtopic.php?f=3&t=162


Top
 Profile  
 
 Post subject: Re: How to get the signal to create an EA
PostPosted: Sun Nov 20, 2011 4:04 pm 
Offline

Joined: Wed Jun 29, 2011 3:10 am
Posts: 9
Hi

I'm looking for solving a trouble with the same kind of indicator than "FX_FISH_2MA.mq4" join in this thread.

For the crossing of the MA ok no problem i know how to get the signal. (i've done a post on an indi RSIOMAV2)

But for the histogramme i don't know how to get buy/sell signal.

I've made a copy from a part of the code :
int init()
{
SetIndexStyle(0,DRAW_HISTOGRAM,STYLE_SOLID,3,Lime);
SetIndexBuffer(0,buffer1);
SetIndexStyle(1,DRAW_HISTOGRAM,STYLE_SOLID,3,Red);
SetIndexBuffer(1,buffer2);
SetIndexStyle(2,DRAW_LINE);
SetIndexLabel(2,"line");
SetIndexBuffer(2,buffer3);
SetIndexStyle(3,DRAW_LINE);
SetIndexLabel(3,"MA1 "+MA1period);
SetIndexStyle(4,DRAW_LINE);
SetIndexLabel(4,"MA2 "+MA2period);
SetIndexBuffer(3,MA1buffer);
SetIndexBuffer(4,MA2buffer);

I think that i should use the mode 0 for buy et 1 for sell but with what should i compare them??

Thanks for your help.

(i've ever read viewtopic.php?f=3&t=162 :) )


Top
 Profile  
 
 Post subject: Re: How to get the signal to create an EA
PostPosted: Sun Nov 20, 2011 5:21 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Please post the whole code to take a look. It seems that mode is 0 and 1 but need to see the whole code and a description of when to buy/sell


Top
 Profile  
 
 Post subject: Re: How to get the signal to create an EA
PostPosted: Sun Nov 20, 2011 5:49 pm 
Offline

Joined: Wed Jun 29, 2011 3:10 am
Posts: 9
i'm talking about "FX_fish_2MA" the complet code is upper in the this thread.

My aim is to buy when the histgram came green and sell when the histo came red. close on opposit signal

here is a capture of the indi.
Attachment:
capture indic.png
capture indic.png [ 198.67 KiB | Viewed 10500 times ]


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

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