parabolic indicator

 

Hello,


my ea works with 4 indocators and one of them is the isar parabolic indicator, but it is not working!


when i include the parabolic indicator in my chart and watch 20 bars, then i restart mt4 and the points are on different positions, there are huge differences !!!

If i refresh my chart then nothing happen, what can i do that the points are on the right position ?


Mo1k


edit:

ok i found the fixed version but how can i include this version in my ea? at the moment i include the indicator: iSAR(NULL,0,0.02,0.2,0)

i copied the fixed indicator ( Parabolic Sub ) into the indicator folder, what code must i use to include the fixed version ?

 
can someone help me pls ?
 
Mo1k:
[...]

ok i found the fixed version but how can i include this version in my ea? at the moment i include the indicator: iSAR(NULL,0,0.02,0.2,0)

i copied the fixed indicator ( Parabolic Sub ) into the indicator folder, what code must i use to include the fixed version ?

Parabolic Sar is a standard indicator that ships with MT4. iSar will reference this standard indicator. If you have an additional Custom indicator you will have to refer to it with iCustom().

https://book.mql4.com/samples/shared

 

ok thx but it is still not working this is my code with icustom:


iCustom(NULL,0,"Parabolic Sub",NULL,0,0.02,0.2,0);


is this code correct ?


Mo1k


 

Without seeing the indicator, it''s difficult to tell but after the file name you need to input the extern variables in order, set the mode to the indicator buffer number and then the shift..


I'm guessing it would be something like

iCustom(NULL,0,"Parabolic Sub",0.02,0.2,0,0);


https://docs.mql4.com/indicators/iCustom


That's based on the inputs for the standard sar so if you have different inputs, it will be different code

V

 
i use this indicator : https://www.mql5.com/en/code/7892
 
Then I think what I posted should work OK but I havent tested it.
Reason: