PureBytes Links
Trading Reference Links
|
SPAM: -------------------- Start SpamAssassin results ----------------------
SPAM: This mail is probably spam. The original message has been altered
SPAM: so you can recognise or block similar unwanted mail in future.
SPAM: See http://spamassassin.org/tag/ for more details.
SPAM:
SPAM: Content analysis details: (5.40 hits, 5 required)
SPAM: USER_AGENT (-0.5 points) Found a User-Agent header
SPAM: TO_BE_REMOVED_REPLY (0.4 points) BODY: Says: "to be removed, reply via email" or similar
SPAM: SPAM_PHRASE_03_05 (1.1 points) BODY: Spam phrases score is 03 to 05 (medium)
SPAM: [score: 4]
SPAM: LINES_OF_YELLING_3 (0.3 points) BODY: 3 WHOLE LINES OF YELLING DETECTED
SPAM: LINES_OF_YELLING_2 (0.2 points) BODY: 2 WHOLE LINES OF YELLING DETECTED
SPAM: LINES_OF_YELLING (0.2 points) BODY: A WHOLE LINE OF YELLING DETECTED
SPAM: FORGED_YAHOO_RCVD (1.4 points) 'From' yahoo.com does not match 'Received' headers
SPAM: DATE_IN_PAST_24_48 (1.0 points) Date: is 24 to 48 hours before Received: date
SPAM: UPPERCASE_25_50 (1.3 points) message body is 25-50% uppercase
SPAM:
SPAM: -------------------- End of SpamAssassin results ---------------------
Hi Friends,
I've been trying to assign colors to bars based on Bill Williams'
assignments to bar structures (CLIMBERS, DRIFTERS AND NEUTARAL BARS)
without success. The colors do not come out at all. With the AFL
coding below, the only result is Green Bars.
I have limited knowledge of the AFL and definitely need help. The
logic seems in place but my expertise with AFL is wanting. I would
appreciate any assistance with the coding.
R=(H-L);//RANGE;
FR=(H-L)/3;//THIRD OF RANGE;
S1=H-FR;//SEGMENT ONE;
S2=H-2*FR;//SEGMENT TWO;
S3=L;//SEGMENT THREE;
/*POSITION OF OPEN AND CLOSE RELATIVE TO BAR*/
P=IIf(OPEN>S1,1,IIf(S1>OPEN<S2,2,IIf(S2>OPEN<L,3,0)));// POSITION OF
OPENING PRICE ;
CL=IIf(CLOSE>S1,1,IIf(S1>CLOSE<S2,2,IIf(S2>CLOSE<L,3,0)));// POSITION
OF CLOSING PRICE;
/*CONDITIONAL STATEMENTS */
COND_C=(((P=2 OR 3) AND CL=1)) OR (P=3 AND (C=1 OR 2)); //CLIMBERS
COND_D=(P=1 AND (CL=2 OR 3) ) OR (P=2 AND (CL=2 OR 3));//DRIFTERS
COND_N=(P=CL=1 OR 2 OR 3); // NEUTRAL BARS
DYNAMIC_COLOR=IIf(COND_C,colorGreen,IIf(COND_D,col orRed,IIf
(COND_N,colorBlue,colorWhite)));
PlotOHLC( Open, High, Low, Close, "Price chart ",DYNAMIC_COLOR,
styleBar );
Thank you,
Pat Tobin
------------------------------------
**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
*********************
TO GET TECHNICAL 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
*********************************
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|