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

[amibroker] please advise on these two issues ???



PureBytes Links

Trading Reference Links

Hi all,,,

       here's part of something i'm playing with,,,,

cond_color = IIf( cond0, colorGreen, IIf( cond3, colorOrange, IIf( cond1, 
colorBlue,colorRed)));

WriteIf(cond0,"cond0","");

WriteIf(cond1,"cond1","");

WriteIf(cond2,"cond2","");

WriteIf(cond3,"cond3","");

Filter=1;

cond_status = WriteIf( cond0, "cond0", WriteIf( cond1, "cond1", WriteIf 
(cond2, "cond2", "cond3")));

AddTextColumn(cond_status, "daily conditions", 1, colorBlack, cond_color);



Plot(C,"close",Cond_color,styleCandle);


i'm running this over one stock for the last 12 months and my exploration 
result does give me all 4 colors and i've checked the conditions to be 
correct,,,,

however ,,,,if today is "cond1" my results column writes "cond1" on all 
returns,,,,,and if today is "cond2" my results write "cond2" on all 
results,,,,

Q1),,,,is it possible for me to change the code so that what ever condition 
on the day is written in the result,,,,,,ie
21/1/08   cond0 (green background)
20/1/08  cond3  (orange background)
19/1/08  cond1   (blue background)

the background colors are filling the result box ok over the exploration 
period no problems there
the only problem is that what ever todays condition number is ,,,,,is filled 
in all boxes regardless of color and i'd like to have buy/sell/hold/buy2 or 
what ever my conditions are for that color

Q2) when plotting the chart the candles only have the outside border of the 
candles as the "cond_color" ,,,,i'd like to have the candles filled with the 
"cond_color" and black borders ,,,

please help,,,,,
regards
Paul




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
 
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/