View Single Post
  #412 (permalink)  
Old 09-30-2008, 04:21 PM
FerruFx FerruFx is offline
Senior Member
 
Join Date: Feb 2007
Posts: 986
FerruFx is on a distinguished road
Quote:
Originally Posted by pipsqueak4x View Post
....into the code of a moving average? I am working with XPMA (which is a MA that changes color from Coder's Guru) and I am trying to have multiple currency lines displayed in a single chart which change color according to their Moving Avg. direction.

I trade triangularly (strength vs weakness and trade the cross) and I use XPMA in different currency charts and compare their direction visually and am trying to get them into a single chart and am having difficulty.

I have added an extern string for a currency but it doesn't pull another currency's data in. I believe I need more instructions in the code.

Can anybody make any suggestions? Thanks.
If you want indicator calculated with another pair than the one youy attached your indy, you must replace the "NULL" by the new pair:

extern string NewSymbol = "USDJPY";

iMA(NewSymbol,0,MA_Period,.....);

Remember to write your symbol EXACTLY like your broker display it.

FerruFx
__________________
FerruFx / www.ervent.net - Professional Coding Services (EAs/Indicators/Alerts)

BBVPS.com - Reliable Windows VPS For MT4 Hosting
Reply With Quote