Code snippets - page 9

 

Is there a custom RSI (not a built in) function?

 
apprentice coder:
Is there a custom RSI (not a built in) function?

apprentice coder

Check out this post : https://www.mql5.com/en/forum/184052/page5

 
mladen:
apprentice coder Check out this post : https://www.mql5.com/en/forum/184052/page5

Did not check the thread. thanks

 
mladen:
And here is a very simple implementation of iT3() function : _t3.mq4

Updated example that uses new mt4 possibilities : _t3_new_mt4.mq4

Files:
 

Just a warning :

long in mql has 19 significant digits

double in mql has 15 significant digits

you can lose data if you assume that double can hold any value that is contained in a long type variable

 
mladen:
Just a warning :

long in mql has 19 significant digits

double in mql has 15 significant digits

you can lose data if you assume that double can hold any value that is contained in a long type variable

How can we avoid that?

 
apprentice coder:
How can we avoid that?

The answer was right before my eyes Forget the question

 

To help those that want to code - this is as simple as it gets to use filter (made as function) : simple_price_filter.mq4

__________________

The example is using simple price for filtering. When you place the indicator on chart it will not look anything spectacular, but this is an example when you st the filter to any value different than 0 (3\ in this case) :

Files:
 

Hi mladen

I need

1-Put the arrow on the chart

2-Put the crosshairs on the chart

This indicator .

Hellp me .

Thanks

Files:
 
alozard:
Hi mladen

I need

1-Put the arrow on the chart

2-Put the crosshairs on the chart

This indicator .

Hellp me .

Thanks

That indicator recalculates (repaints) - signals like that are more or less misleading at the least

Reason: