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

Re: [AmiBroker] Array Problem



PureBytes Links

Trading Reference Links

Yes, they do.
Try with different symbol maybe for the symbol you are checking the angle is in fact zero.
 

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: Mr. Valley
Sent: Thursday, November 22, 2007 7:45 AM
Subject: RE: [AmiBroker] Array Problem

TJ,
Yes and indeed both "work", but the subtle difference is that that in the title line on the CCI(20) it will display the angle and degrees whereas the other does not and displays 0 on my end...
Do they both display the values on your end?
Thanks for the reply and Happy Thanksgiving to you and yours.
Mr. Valley
 
-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]On Behalf Of Tomasz Janeczko
Sent: Wednesday, November 21, 2007 11:41 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Array Problem

Both work OK on my end. Do you have at least 54 bars in your data set ?

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: Mr. Valley
Sent: Thursday, November 22, 2007 7:25 AM
Subject: [amibroker] Array Problem

resend with subject line
 
-----Original Message-----
From: Mr. Valley [mailto:valleymj@comcast.net]
Sent: Wednesday, November 21, 2007 11:23 PM
To: amibroker@xxxxxxxxxps.com
Subject:

What am I doing wrong?

/* Angle Test v2 */

// I don't understand why the array created by "Var" cannot be used as CCI(20) built-in works ???
// Comment out the Var below and use the other to see what I mean.
// Angle and Degrees don't read in the Title Line like they do with CCI(20)

Var = CCI(20); // Comment out this line
//Var = MA(C,20);Plot(Var,"",1,128);  // Uncomment and try this line instead

START=34;END=1;
ARRAY= Var ;
L1=LastValue(Cum(1));
X0=L1-START;
X1=L1-END;
Y0=ARRAY[X0];
Y1=ARRAY[X1];
ANGLE=atan((Y1-Y0)/(X1-X0));
Color = IIf(Y1 > Y0,5,4); // Green = Positive    Red = Negative
Title1="ANGLE="+WriteVal(ANGLE)+" RADS"+", ["+WriteVal(45*ANGLE/atan(1),1.0)+" DEGS]";
Plot(ARRAY,"",12,1);
Plot(LineArray(X0,Y0,X1,Y1),Title1 + "\nLine to Last Value of End Point Value",Color ,1);
Plot(LineArray(X0,Y0,X1,Y0),"Horizontal",2,1);
Plot(LastValue(Y0),"\nBegin at This point in the Array",10,1);

Thanks,

Mr. Valley

__._,_.___

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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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




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

__,_._,___