[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Possible to run a MACD on a foreign symbol?


  • Date: Tue, 1 Dec 2009 07:59:41 -0800
  • From: "Ara Kaloustian" <ara1@xxxxxxxxxx>
  • Subject: Re: [amibroker] Possible to run a MACD on a foreign symbol?

PureBytes Links

Trading Reference Links



yes ... but you have to do it indirectly...  if you want MACD(12,26,9)
 
Issue     = Foreign("symbol","C");
EMA1   = EMA(Issue,12);
EMA2   = EMA(Issue,26);
 
MACD1= EMA1 - EMA2;
MACDsig = EMA(MACD1,9);
 
----- Original Message -----
Sent: Tuesday, December 01, 2009 7:44 AM
Subject: RE: [amibroker] Possible to run a MACD on a foreign symbol?

//Easy to do using SetForeign and RestorePriceArrays.

//Remove the a param line and writeval sections after verification that it indeed works.

 

//Current symbol

a=Param("MACD Mult",1,1,1000,1);// only necessary when using Forex symbols or small stock values to verify

//that indicator values are identical; also compare last values at RHS.

Plot(a*MACD(), WriteVal(a,1.0)+"*MACD", colorGreen);// Current symbol

Plot(a*Signal(), WriteVal(a,1.0)+"*Signal", colorRed);

 

//Foreign Symbol

Symbol1="EUR.USD-IDEALPRO-CASH";

SetForeign(Symbol1);//redirects to Foreign symbol

Plot(a*MACD(), WriteVal(a,1.0)+"*Other MACD", colorBlue);

Plot(a*Signal(), WriteVal(a,1.0)+"*Other Signal", colorGold);

RestorePriceArrays();// Back to normal

 

From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of potatosoupz
Sent: Monday, November 30, 2009 9:25 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Possible to run a MACD on a foreign symbol?

 

 

I have a chart with a Price series and a Price (foreign) series. I also have MACD within the primary symbol's pane, but when I place a MACD within the foreign symbol's pane, it's identical to the primary symbol on the chart.

Is there a way to show a MACD (foreign) for the foreign symbol?



__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___