PureBytes Links
Trading Reference Links
|
Greetings All
When I use the code below with the Range set to the
last day, I can output text to the columns in
Exploration.
But when I set the Range to last 5 days only the last
trading day has text output to the column.
How do I get to use the Addtextcolumn feature to write
text to the columns if I set the Range to last 5 days?
Can I have this all in the same column or do I need a
separate column for each day past?
*********
// exploration for bullish candles
// Apply to All; from 5 days ago to today
Cond1 = Ref(C,-1) < Ref(O,-1);
Cond2= O < Ref(C,-1);
Halfbear = Ref(C,-1) + ((Ref(O,-1) - Ref(C,-1))/2);
Cond3 = C > Halfbear;
Cond4 = Close > Ref(O,-1);
Cond5 = O > Halfbear AND O < Ref(O,-1);
BullEng = Cond1 AND Cond2 AND Cond4;
InvPiercing = Cond1 AND Cond5 AND Cond4;
Piercing = Cond1 AND Cond2 AND Cond3;
VolUP = Volume > Ref(Volume,-1);
Filter = (BullEng OR InvPiercing OR Piercing)
AND VolUp AND Close < 5.00 AND Close > 0.4 AND Close *
MA(Volume,15) > 100000;
AddColumn(Ref(O,-1),"Yest open",1.3);
AddColumn(Ref(C,-1), "yest close",1.3);
AddColumn(Ref(O,-1) - Ref(C,-1), " difference",1.3);
AddColumn((Ref(O,-1) - Ref(C,-1))/2,"half diff",1.3);
AddColumn(Halfbear,"halfbear",1.3);
text = WriteIf(BullEng, "BullEngul",
WriteIf(InvPiercing,"InvPiercing",WriteIf(Piercing,
"Piercing", "" )));
AddTextColumn(text, "caption", 1.2,colorGreen);
*******
Regards
ChrisB
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
------------------------ Yahoo! Groups Sponsor --------------------~-->
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> 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/
|