Jump to content

⤴️-Paid Ad- Check advertising disclaimer here. Add your banner here.🔥

@ I need a good divergence indicator... please help! Thanks, Not Repaint! @


Recommended Posts

Posted
I just posted this iticks stoch divergence indi in another thread...I think you may like it

 

http://www.4shared.com/file/paQycbVl/i-sto-div-sig.html

 

Thanks for posting the indi.Do you recommend any particular settings for it on particular time frames.Ive just had a play around with it and it does vary depending on settings.

i e On my m15 chart I have the Stoc MTF div indi set at 8,3,3 and also another normal stoc set at 13.2,1 which of course give different signals.The signal given by the Stoc MTF indi is always too late to get in early on any divergence trade.

Cazador...have you tried it yet and if so what settings?

Posted (edited)

I tried to make an ea with it. That would have been my first time doing anything with mql. The problem i have is to get the indicator calling.

So could some1 please tell me where my mistake is in calling the indicator???

 

 

// indicator calling

double green=iCustom(NULL,0,"i-STO-DIV-SIG",0,2);

double red=iCustom(NULL,0,"i-STO-DIV-SIG",1,2);

 

int signal=0;

if(green!=EMPTY_VALUE)signal=1;

if(red!=EMPTY_VALUE)signal=2;

Edited by starger
Posted

Hi starger,

 

Without setting up an EA myself I can't tell exactly what's wrong.

 

However, the indicator has buffers 0 and 1 allocated the arrows from the Wingdings font as:

 

SetIndexArrow(0, 218);

SetIndexArrow(1, 217);

218 is the Down arrow and 217 is the Up arrow, so for starters it looks as though you have your green and red the wrong way round.

 

I've not watched the indicator in action - does it always plot the arrow on the open of the candle 2 bars back from the current candle ?

 

To see what's going on, I'd define different indicator values as:

 

double red2=iCustom(NULL,0,"i-STO-DIV-SIG",0,2);

double green2=iCustom(NULL,0,"i-STO-DIV-SIG",1,2);

double red1=iCustom(NULL,0,"i-STO-DIV-SIG",0,1);

double green1=iCustom(NULL,0,"i-STO-DIV-SIG",1,1);

double red0=iCustom(NULL,0,"i-STO-DIV-SIG",0,0);

double green0=iCustom(NULL,0,"i-STO-DIV-SIG",1,0);

and then show them on the screen when the EA is running via a Comment statement:

 

Comment("red2 = ", red2,"\n",

"green2 = ", green2, "\n",

"red1 = ", red1,"\n",

"green1 = ", green1, "\n",

"red0 = ", red0,"\n",

"green0 = ", green0);

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


⤴️-Paid Ad- Check advertising disclaimer here. Add your banner here.🔥

×
×
  • Create New...