Sidus v.2

 

it seems fantastic indicator working on ( RSI + MONVING AVR. ) , but it needs to be refresh after every bar and sometimes it repaints.
Can any one help me to improve it ?

Files:
sidus_v.2.mq4  5 kb
 

I don't understand the code.

SetIndexStyle(2,DRAW_ARROW,1,5);

SetIndexArrow(2,233);

SetIndexBuffer(2,ExtMapBuffer3);

SetIndexEmptyValue(2,0.0);

SetIndexStyle(3,DRAW_ARROW,1,5);

SetIndexArrow(3,234);

SetIndexBuffer(3,ExtMapBuffer4);

SetIndexEmptyValue(3,0.0);

so Buffer3 is crossup and buffer4 is crossdown, is that right?

But:

if (sigCurrent==1 && sigPrevious==2)

{

ExtMapBuffer4[i-1] = High[i-1]-5*Point;

//ExtMapBuffer3 = Ask;
entry=true;
entry_point=Ask;
}
else if (sigCurrent==2 && sigPrevious==1)
{
ExtMapBuffer3[i-1] = Low[i-1]-5*Point;
//ExtMapBuffer4 = Bid;
entry=true;
entry_point=Bid;
}

So from the above agorithm, from crossdown to crossup short sell and from crossup to crossdown buy, seems strange.

any explanations?

Reason: