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 )