Different Pair MA on current chart

 

Guys kindly check this code and let me know why it is not working on a GJ chart

sma3.mq4

my idea which i am working on is to compare uptrend of sma3

of GBPUSD and uptrend of sma3 of another pair

Guide

Files:
sma3.mq4  2 kb
 
junglelion:
Guys kindly check this code and let me know why it is not working on a GJ chart

sma3.mq4

my idea which i am working on is to compare uptrend of sma3

of GBPUSD and uptrend of sma3 of another pair

Guide

Junglelion, this version seems to be working on all pairs.

Files:
sma-3.01.mq4  2 kb