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

RE: [amibroker] Charting help please someone



PureBytes Links

Trading Reference Links

Mark,
 
Sorry for the confusion.  My post below was an error.   (I didn't read closely enough.)
 
I think the error comes from "CapIndicator:"  To add explanatory comments, add "//" in front of text.  If you type:
 
CapIndicator:
 
You will get an error.   If you type:
 
//CapIndicator:
 
The text will turn green in the AFL editor indicating that it's a comment.   The AFL interpreter will ignore that and you should not get an error.
 
Regards,
 
Dan.
-------------- Original message --------------

Dan

 

Closer

Still an error though

 

 

 

Mark

 

 

 


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of dan_public@xxxxxxxxxxx
Sent: Tuesday, November 22, 2005 1:20 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Charting help please someone

 

Mark,

 

Change:

 

spread = C / spreadSymbol;

 

To:

 

spread = C // spreadSymbol;

 

It thinks that "spreadSymbol" is a variable.   Using "//" changes it to a comment.

 

 

-------------- Original message --------------

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

 

 

 

 


 

size=2 width="100%" align=center>

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.5/177 - Release Date: 11/21/05