Algorithme Code for distance between 2 MA
Created at 14 Jun 2022, 17:56
E.
Algorithme Code for distance between 2 MA
14 Jun 2022, 17:56
Hello i will need to implement a code to expresse these conditions:
1- « If distance between MA1 et MA2 > to 4pips »
2- the higher highs of an uptrend and lower low of an downtrend
Can you help me please ? Thanks
amusleh
15 Jun 2022, 08:13
Hi,
You can get the distance between two moving averages like this:
Regarding your second point, you have to define what's an higher high and what's a lower low, then you will be able to code it.
@amusleh