Custom indicator not working properly

To add comments, please log in or register
mypreciousd
11
mypreciousd  
i need help with this custom indicator, it works well for pairs with value greater than 1 but flops for pairs with values less than 1.
Keith Watford
Moderator
23341
Keith Watford  
mypreciousd:
i need help with this custom indicator, it works well for pairs with value greater than 1 but flops for pairs with values less than 1.

Please edit your post and paste the code using the code button (Alt+S)

In future please post in the correct section

I will move this topic to the MQL4 and Metatrader 4 section.

lippmaje
1186
lippmaje  
The custom indicator looks ok. Maybe it's your installation, no idea.
Alain Verleyen
40306
Alain Verleyen  
lippmaje:
The custom indicator looks ok. Maybe it's your installation, no idea.

Really ?

if(slowest>slow>normal>fast>fastest)
lippmaje
1186
lippmaje  

Thanks Alain, I'm sorry I overlooked that.

There was an other issue that caused the buffer values to be dropped.

I've attached the fixed version.


Files:
William Roeder
21769
William Roeder  
if(slowest>slow>normal>fast>fastest)
True = non-zero and false = zero so you get:
if( 3 < 2 < 1 )
if( false < 1 )
if(     0 < 1 )
if(     true  )
if( 3 > 2 > 1 )
iftrue > 1 )
if(     1 > 1 )
if(     false )
To add comments, please log in or register