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

RE: [amibroker] Questions about Indicators



PureBytes Links

Trading Reference Links




<FONT face=Arial color=#0000ff 
size=2>Marty,
you 
can string the writeif's together. here is an example......
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial 
color=#0000ff> 
Buy<FONT 
color=#0000ff>=C<FONT 
size=2>>Ref(<FONT 
size=2>C,-1<FONT 
color=#282828 size=2>);<FONT 
size=2>
Sell<FONT 
color=#0000ff>=C<FONT 
size=2><Ref(<FONT 
size=2>C,-1<FONT 
color=#282828 size=2>);
awhile=<FONT face=Arial 
color=#0000ff size=2>2<FONT face=Arial 
color=#0000ff>;
WriteIf<FONT color=#282828 
size=2>(Sum<FONT color=#282828 
size=2>(Buy<FONT 
color=#282828 size=2>,awhile)>=<FONT 
color=#282828 size=2>awhile,"Buy for a 
while",<FONT color=#0000ff 
size=2>WriteIf(<FONT color=#0000ff 
size=2>Sum(<FONT 
size=2>Sell<FONT color=#282828 
size=2>,awhile)>=<FONT color=#282828 
size=2>awhile,"Sell for awhile"<FONT 
color=#282828 size=2>,WriteIf<FONT 
color=#282828 size=2>(Buy<FONT 
face=Arial>,<FONT color=#ff00ff 
size=2>"Buy!!",<FONT color=#0000ff 
size=2>WriteIf(<FONT 
size=2>Sell<FONT color=#282828 
size=2>,"Sell!!"<FONT color=#282828 
size=2>,""<FONT 
color=#282828>))));

<SPAN 
class=592563705-29032004>Here I assigned "A while" a value of 2 
bars.
Regards, 
Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: prog200 
[mailto:prog200@xxxxxxxxx]Sent: Sunday, March 28, 2004 3:05 
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Help 
with Commentary Buy , Sell , Wait or Hold outputI'm 
trying to set up a commentary with Buy and Sell to show if it Buy =1 will 
produce "BUY!!" and if Sell == 1 will produce "SELL!!" and if a buy has 
already been on for awhile produce "HOLD" and if a Sell been on for a while 
then "WAIT" I tried to use the writeIf but it only returns a true false. 
Thanks Marty Send BUG REPORTS 
to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
suggest@xxxxxxxxxxxxx-----------------------------------------Post 
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
group FAQ at: <A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 



Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
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 the Yahoo! Terms of Service.