Parabolic.SAR and Parabolic.mq4 will give different results

 
Tested at M5 both at (0.02/0.2) Parabolic.SAR and Parabolic.mq4 will give different results when overlaid.
On refresh everything is a OK. As new bars are formed there are different results.
Slawa, which one is correct?
 
Use built-in parabolic.

mq4 is sample only. We know about described problem and we need for additional time to fix it.
 
Use built-in parabolic.

mq4 is sample only. We know about described problem and we need for additional time to fix it.


//----      
   else
      {
      i=         save_lastreverse;
      start=     save_start;
      dirlong=   save_dirlong;
      last_high= save_last_high;
      last_low=  save_last_low;
      ep=        save_ep;
      sar=       save_sar;

//Fix start
//---- If new bar increment index   
      if(Time[0]!=bartime)       
         {
         bartime=Time[0];
         i++;
         }
//Fix end      
      
      }
//----



OK Slawa,
The problem was that the "i" would not advanced with new bar.
So add global variable "bartime" add the above code as shown between "Fix start", "Fix end" and it will work a OK.




 
Insert your comment to the Parabolic.mq4 in the CodeBase.

Add updated parabolic custom indicator to the CodeBase.

We appreciate constructive work. Thanx
 
Insert your comment to the Parabolic.mq4 in the CodeBase.

Add updated parabolic custom indicator to the CodeBase.

We appreciate constructive work. Thanx

Unfortunately Slawa, I have not done this before and am not familiar where the CodeBase is located.
 
Insert your comment to the Parabolic.mq4 in the CodeBase.

Add updated parabolic custom indicator to the CodeBase.

We appreciate constructive work. Thanx

Unfortunately Slawa, I have not done this before and am not familiar where the CodeBase is located.

OK it is done!
 
Your parabolic is in the draft list

Please rename your indicator to Parabolic2 or Parabolic_sub or so on

Please click on the "send for proofreading" - our editor will check your code

Please insert your comment here "MQL4: Parabolic SAR, Parabolic"
 
Your parabolic is in the draft list

Please rename your indicator to Parabolic2 or Parabolic_sub or so on

Please click on the "send for proofreading" - our editor will check your code

Please insert your comment here "MQL4: Parabolic SAR, Parabolic"


OK, I think it is done Slawa
 
Your parabolic is in the draft list

Please rename your indicator to Parabolic2 or Parabolic_sub or so on

Please click on the "send for proofreading" - our editor will check your code

Please insert your comment here "MQL4: Parabolic SAR, Parabolic"


OK, I think it is done Slawa

Slawa,
I do not see nowhere that you have corrected the bug.
Reason: