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

Re: [amibroker] Charting help please someone



PureBytes Links

Trading Reference Links

If you use //spreadSymbol instead of /spreadSymbol you are no longer working with the ratio IRX / TYX and are only looking at IRX.
----- Original Message -----
Sent: Tuesday, November 22, 2005 4:27 PM
Subject: RE: [amibroker] Charting help please someone

Sure

 

See if this is what you are after -

//open IRX chart

 

spreadSymbol = Foreign("TYX", "Close");

 

spread = C // spreadSymbol;

 

EMA1 = EMA(spread, 21);

 

EMA2 = EMA(MA1, 13);

 

//Plot(spread, "Spread", colorWhite, stylebar);

 

Plot(EMA1, "EMA1", colorRed);

 

Plot(EMA2, "EMA2", colorYellow);

 

 

Mark

 

 

 


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Steve Dugas
Sent: Tuesday, November 22, 2005 4:22 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Charting help please someone

 

OK. Why don't you post the current version of entire code from the editor window.

 

Steve

----- Original Message -----

From: Mark Keitel

Sent: Tuesday, November 22, 2005 4:10 PM

Subject: RE: [amibroker] Charting help please someone

 

“CapIndicator” is not in the AFL

When I bring up the edit formula nothing there

That is the name I gave the AFL  nothing more, so when the error comes up it gives me the name of the afl on the first line

 

 

 

 

Mark

 

 

 


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Steve Dugas
Sent: Tuesday, November 22, 2005 3:07 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Charting help please someone

 

Change colon after CapIndicator to a semi-colon or comment out that line.

 

Steve

----- Original Message -----

From: Mark Keitel

Sent: Tuesday, November 22, 2005 1:27 PM

Subject: RE: [amibroker] Charting help please someone

 

OOPPPPS  yes sorry

 

Here is what I got, changed the “^TYX”  to “TXY”   since I do not need the “^ “  to show the chart

 

 

 

 

 


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of wavemechanic
Sent: Tuesday, November 22, 2005 1:19 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Charting help please someone

 

Did you mistype spreadSymbol as spreadSheet? 

 

----- Original Message -----

From: Mark Keitel

Sent: Tuesday, November 22, 2005 1:11 PM

Subject: RE: [amibroker] Charting help please someone

 

Thank you

Getting a Error 29 when I try and use it

Variable “Spreadsheet ‘ used without having been initialized

 

Do I need to so something other than make this an afl and then put it up as a chart  then insert linked?

 

 

Thank you

 

Mark

 

 

 


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of wavemechanic
Sent: Tuesday, November 22, 2005 12:51 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Charting help please someone

 

See if this is what you are after -

//open ^IRX chart

spreadSymbol = Foreign("^TYX", "Close");

spread = C / spreadSymbol;

EMA1 = EMA(spread, 21);

EMA2 = EMA(EMA1, 13);

//Plot(spread, "Spread", colorWhite, stylebar);

Plot(EMA1, "EMA1", colorRed);

Plot(EMA2, "EMA2", colorYellow);

 

----- Original Message -----

From: Mark Keitel

Sent: Tuesday, November 22, 2005 10:48 AM

Subject: [amibroker] Charting help please someone

 

Have the following that someone did in another charting software package.  Would like to be able to do this in AB if someone can help me out along the way here

 

 

This was originally  constructed in Metastock, using the 13 week treasury yield (IRX) divided by the 30 year treasury yield (TYX) as the base security. A 21 ema is applied, the base security is no longer displayed. Then the other moving average is a 13 ema of the 21 ema.

 

Thank you for any help here

 

 

Mark

 

 

 

 


 

<HR

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





YAHOO! GROUPS LINKS