Is it possible for a sp500 strategy to refer to Bond trend?

 

Is it possible in mql5 to program a strategy for SP500 to only take a trade if Bonds are in an a uptrend? Can an expert advisor refer to another instrument than the one traded? (Could be Bonds, #tick,  other indices?)

Best regards

//P

 
mqlpharao:

Is it possible in mql5 to program a strategy for SP500 to only take a trade if Bonds are in an a uptrend? Can an expert advisor refer to another instrument than the one traded? (Could be Bonds, #tick,  other indices?)

Best regards

//P

Yes of course.