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/

How to get the signal to create an EA
http://www.molanis.com/forum/viewtopic.php?f=2&t=93
Page 1 of 2

Author:  kwng [ Fri Aug 20, 2010 7:42 am ]
Post subject:  How to get the signal to create an EA

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 699 times

Author:  molanisfx [ Fri Aug 20, 2010 10:21 am ]
Post subject:  Re: How to get the signal to create an EA

Please post your molanis strategy file as well. Thanks.

Author:  kwng [ Fri Aug 20, 2010 8:39 pm ]
Post subject:  Re: How to get the signal to create an EA

Thank you for your reply.

I attached the molanis strategy file now.

Attachments:
FX_FISH_2MA EA.mol [5.4 KiB]
Downloaded 748 times

Author:  molanisfx [ Wed Aug 25, 2010 12:46 pm ]
Post subject:  Re: How to get the signal to create an EA

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 708 times

Author:  kwng [ Fri Aug 27, 2010 8:35 am ]
Post subject:  Re: How to get the signal to create an EA

Hi Molanis,

Thank you for your reply.

My problems already solved.

Thank you.

Author:  akojuru [ Wed Feb 23, 2011 2:25 pm ]
Post subject:  Re: How to get the signal to create an EA

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

Author:  molanisfx [ Wed Feb 23, 2011 4:45 pm ]
Post subject:  Re: How to get the signal to create an EA

Try this viewtopic.php?f=3&t=162

Author:  hitman045 [ Sun Nov 20, 2011 4:04 pm ]
Post subject:  Re: How to get the signal to create an EA

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 :) )

Author:  molanisfx [ Sun Nov 20, 2011 5:21 pm ]
Post subject:  Re: How to get the signal to create an EA

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

Author:  hitman045 [ Sun Nov 20, 2011 5:49 pm ]
Post subject:  Re: How to get the signal to create an EA

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 10549 times ]

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