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

Re: [amibroker] Re: Minimum Holding Period in Days



PureBytes Links

Trading Reference Links









That’s really cool Anthony. I am
learning all the time! 

 

If I wanted to add another column next to “DateOFflip”
which gives the calendar date of this occurrence i.e. 07/14/2004 do you know if
this can be done and how to code?

 

Thanks,

 



<span
 >Gordon Sutherland



 

<span
>-----Original Message-----
From: Anthony Faragasso
[mailto:ajf1111@xxxxxxxx] 
Sent: Sunday, 25 July 2004 9:55
a.m.
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Help
needed

<font size=3
face="Times New Roman"> 

<font size=2
face="Courier New">CondBull=SAR()<C;//bull<font
size=2 face="Courier New">

condbear=SAR()>C;//bear

switch=Flip(Condbull,Condbear);

price=ValueWhen(Flip(Condbull,Condbear),C);

DateNumb=ValueWhen(switch,DateNum());

Filter=1;;

Buy=0;

text=WriteIf(Condbull,"Bull",WriteIf(Condbear,"Bear",""));

AddColumn(DateNumb,"DateOFflip",1);

AddColumn(Condbull,"Bull");

AddColumn(Condbear,"Bear");

AddColumn(switch,"switch");

AddColumn(price,"close");AddTextColumn(text,"SAR()");




Check
AmiBroker web page at:<span
>
http://www.amibroker.com/

Check group FAQ at: <a
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html










Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html








Yahoo! Groups Sponsor


  ADVERTISEMENT 












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.