assigning fixed minimum and maximum in ea (imacd)
fx1.net:
you can export to excel via fx1.net/excellink.php and compare there.
you can export to excel via fx1.net/excellink.php and compare there.
Thanks for your reply FX1.net,
But what I mean, is in an "EA", a way to take a decision comparing both scales.
OR
what i tought, is a way to convert each/both scales to 0-100 % scale, and then take a decision based on that value.
RSI is (approx) 25 to 70,
while MACD is -0.0002 to 0.0002
what I"m looking for is a way to compare when one crosses the other.
I'm sure there is a way to Mathematically put them in the same value scale and this is what I would like to find out.
Thanks
Micky
#define MACD.MIN -0.0002 #define MACD.MAX +0.0002 #define RSI.MIN +25 #define RSI.MAX +75 MACD.adj = (MACD-MACD.MIN)/(MACD.MAX-MACD.MIN); // 0-1 RSI.adj = (RSI -RSI.MIN) /(RSI.MAX -RSI.MIN); // 0-1
Anyone know if it is possible to assign "fixed minimum and fixed maximum" in the EA for indicators that use those? ex: iMACD...
The reason, is I would like to compare certain indicators and there scale is of different values.
Or is there any other way of doing this?
ex:
if (rsi>macd) buy; (cant do this because scales are of different ranges)
Thanks
Micky