Problems with random Signals on Non Repainting indicators and non Recalculating indicators

 
Hello Guys,

i hope someone can help me here to understand my problem or to solve it :).

i have some indicators which i'm using for my trading no matter which one,
but i have notified that they all shows sometimes signals which they would never show.

I will try to explain that a little bit more cleary, at first they are all no repainting
or no recalculating.

Ok here we go

Example

I open a chart 5 Minute timeframe
i insert a indicator
after 5-12 hours trading with no closing the chart with no changing the timeframe
the indicator begins with showing signals on the chart
which he would not show
After changing the timeframe from 5 to 15 minutes and back again to 5 minute
this signals disappear again and only the real signals are still on the chart
which the indicator really gives

when i programm a expert advisor with this indicators the expert advisor
reacts the same way and trades also the signals which are not really given by
the indicator

Again this problem happens only when i stay on a chart for a long time maybe as
example 5-12 hours with no changing the time frame or the pair which i trade and
this problem happens on my manually trading and also on my automatic trading, and
i'm 100 % sure the indicators are not repainting or recalculating

why is this happening and how can i solve this problem?

I hope i was able to describe the problem and u guys can help me with this.

Warm Regards

c0101b
 

I don't know whether you problem is the same as my "Spooky Spots" which seems to have gone with the new b765.

But to understand what you mean you should post the code and some snapshots!

 
gooly:

I don't know whether you problem is the same as my "Spooky Spots" which seems to have gone with the new b765.

But to understand what you mean you should post the code and some snapshots!

Hi Sir,

 at first thx for ur answer, here are screenshots which explains exactly the problem and the code of the indicator which can be found anywhere at the internet for free.

 i hope this helpsbeforeafter 

Files:
zwuktma.mq4  7 kb
 

Without testing(!) but I would 1) skip this:

    if ( bConditionUp )
       CrossUp[i] = Low[i] - Range * 0.5;
    else if ( bConditionDown )
       CrossDown[i] = High[i] + Range * 0.5;may

2) I would place the arrow-signals here:

    if ( !bBuy && bConditionUp ) {
      CrossUp[i] = Low[i] - Range * 0.5; // <= placed here
...
    else if ( !bSell && bConditionDown ) {
      CrossDown[i] = High[i] + Range * 0.5; // <= placed here

3) finally I would replace the NormalizeDouble(..)-lines by:

NormalizeAccuracy = fmax(NormalizeAccuracy, 0.0001*Point);
...
if( fabs(FastMA[i-1]- FastMA[i+1])> NormalizeAccuracy);


Hint: To see better the quality of the signals (as you count from shift=1 up you shouldn't get into troubles):

    if ( !bBuy && bConditionUp ) {
      CrossUp[i] = Open[i-1]; //Low[i] - Range * 0.5; // <= placed here
...
    else if ( !bSell && bConditionDown ) {
      CrossDown[i] = Open[i-1]; //High[i] + Range * 0.5; // <= placed here

(you should use a different arrow in this case!)

Reason: