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

RE: [amibroker] AFL x=x+C



PureBytes Links

Trading Reference Links

Yes,
   I also use the Title as a "Diagnostics" tool when writeing my Indicators.
And then in congunction with the Ref() function - Walkback intime to see 
how the internals of my code are functioning.

One thing has me puzzled, How do you get around showing more than can be 
displayed on the chart ? Or, Like me -  you don't ;-)

<MSG>


At 02:32 AM 22/02/2004, you wrote:
>Right DT, you can do even more... I display all my trading parameters, 
>prices, scores, stocks, pos, top-ranked stocks, etc. right on my charts 
>from indicator formulas. Everything is on one single screen and i don't 
>need the AA to trade. I use Param() to display a limited number of bars on 
>the right half of the panes to reserve most of the screen for tables and 
>text on the left. For what i do i don't need to see lots of price history.
>
>I use the AA for development and backtesting and even develop my 
>Indicators (using Equity button to plot them) in the AA because i prefer 
>the formula-file handling there.
>
>herman.
>
>
>-----Original Message-----
>From: DIMITRIS TSOKAKIS [mailto:TSOKAKIS@xxxxxxxxx]
>Sent: Saturday, February 21, 2004 9:23 AM
>To: amibroker@xxxxxxxxxxxxxxx
>Subject: [amibroker] Re: Can anyone help me Sort this out....
>
>Michael, Herman
>We may immitate AA window in IB.
>Example:
>
>Title="Date              Close";
>Title=Title+"\n-----------------------------";
>for(D=1040201;D<LastValue(DateNum());d++)
>{
>D1=ValueWhen(DateNum()==d,DateTime());
>C1=ValueWhen(DateNum()==d,C);
>Title=Title+WriteIf(IsTrue(d1),"\n"+WriteVal(d1,formatDateTime)
>+"    "+WriteVal(C1),"");
>}
>Sometimes it may solve ranking problems.
>Dimitris Tsokakis
>--- In amibroker@xxxxxxxxxxxxxxx, "Herman van den Bergen"
><psytek@xxxx> wrote:
> > Have a look at the DayOfYear(), it might come in handy to create a
> > DayOfDecade() or DayOfCentury() function which you could could use
>instaeda
> > of an arbitrary index.
> >
> > Next you could write a function DaysSince() (TJ?) That would solve
>all
> > problems.
> >
> > have fun,
> > herman
> >   -----Original Message-----
> >   From: Michael.S.G. [mailto:OzFalcon@x...]
> >   Sent: Friday, February 20, 2004 11:05 PM
> >   To: amibroker@xxxxxxxxxxxxxxx
> >   Subject: RE: [amibroker] Can anyone help me Sort this out....
> >
> >
> >   Herman,
> >     Yes - This is one way (Mabie the only) way of  working around
>the
> > problem.
> >   Though a little messy - Im sure I could live with it.
> >   We'll see if anything else comes up.
> >
> >            Thanks,
> >             Michael.
> >
> >
> >
> >   At 01:49 PM 21/02/2004, you wrote:
> >   >You could convert DateNum() to a DateIndex which will be a much
>smaller
> >   >number. You would have to pick a first date for zero, your
>reference, or
> >   >count backwards from today... depend on your application.
> >   >
> >   >The DateIndex would simply be the number of bars before a given
>point.
> > For
> >   >10 years you should have a maximum count of about 10*250=2500
>which is
> >   >much smaller than you datenum.
> >   >
> >   >Interesting problem,
> >   >good luck,
> >   >herman.
> >   >-----Original Message-----
> >   >From: Michael.S.G. [mailto:OzFalcon@x...]
> >   >Sent: Friday, February 20, 2004 8:45 PM
> >   >To: amibroker@xxxxxxxxxxxxxxx
> >   >Subject: [amibroker] Can anyone help me Sort this out....
> >   >
> >   >Has anyone yet got around the DateNum() / 32 bit float
>limitation yet?
> >   >
> >   >This is a real Turd of a problem - And I'd like to know if there
>are any
> >   >workarounds/solutions?
> >   >
> >   >For me - I wish to Transform DateNum() to a Ranking system I can
>sort
> >   >under AA.
> >   >
> >   >But two limitations are stoping me.
> >   >1) The use of Strings in AB appears to be as single variables.
>(Not
> > Arrays).
> >   >2) Transforming the value from DateNum creates a number greater
>than 7
> >   >significant digits. Inducing the 32bit Float limitation.
> >   >
> >   >For those unaware of the above constrictions, Here is a sample
>AFL to
> > show
> >   >you.
> >   >
> >   >// Combined Sort for AA.
> >   >//
> >   >// Filter = "Curent Stock"
> >   >//
> >   >// Range  = "All Quotes"
> >   >
> >   >// Create a Date/Rank to Sort with.
> >   >//
> >   >// Doesn't work (Strings can not be arrays?)
> >   >SortStr  = "" + Year() + "/" + Month() + "/" + Day() + ":" +
>Close;
> >   >//
> >   >// Doesn't work (Larger than 7 digits - 32bit Float)
> >   >SortVar = (DateNum()*100) + Close;
> >   >
> >   >
> >   >AddColumn(Close,"Close",1.2);
> >   >AddTextColumn(SortStr,"SortStr",1.2);
> >   >AddColumn(SortVar,"SortVar",1.2);
> >   >
> >   >//Filter
> >   >Filter = 1;
> >   >
> >   >
> >   >Send BUG REPORTS to bugs@xxxx
> >   >Send SUGGESTIONS to suggest@xxxx
> >   >-----------------------------------------
> >   >Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> >   >(Web page:
> >
> > ><<http://groups.yahoo.com/group/amiquote/messages/)>http://groups.yahoo 
> .com/group/amiquote/messages/)
> >http://groups.yahoo.com/
> > group/amiquote/messages/)
> >   >--------------------------------------------
> >   >Check group FAQ at:
> >
> >
> ><<http://groups.yahoo.com/group/amibroker/files/groupfaq.html>http://grou 
> ps.yahoo.com/group/amibroker/files/groupfaq.html>http://g
>roups.
> > yahoo.com/group/amibroker/files/groupfaq.html
> >   >
> >   >
> >   >
> >   >
> >   >
> >   >Send BUG REPORTS to bugs@xxxx
> >   >Send SUGGESTIONS to suggest@xxxx
> >   >-----------------------------------------
> >   >Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> >   >(Web page:
> >
> > ><<http://groups.yahoo.com/group/amiquote/messages/)>http://groups.yahoo 
> .com/group/amiquote/messages/)
> >http://groups.yahoo.com/
> > group/amiquote/messages/)
> >   >--------------------------------------------
> >   >Check group FAQ at:
> >
> >
> ><<http://groups.yahoo.com/group/amibroker/files/groupfaq.html>http://grou 
> ps.yahoo.com/group/amibroker/files/groupfaq.html>http://g
>roups.
> > yahoo.com/group/amibroker/files/groupfaq.html
> >   >
> >   >
> >   >
> >   >Yahoo! Groups Sponsor
> >   >ADVERTISEMENT
> >
> >
> ><<http://rd.yahoo.com/SIG=12c79jstj/M=274551.4550177.5761904.1261774/D>ht 
> tp://rd.yahoo.com/SIG=12c79jstj/M=274551.4550177.5761904.1261774/D
>=egrou
> >
>pweb/S=1705632198:HM/EXP=1077418184/A=2019528/R=2/*<http://ad.doublecli>http://ad.doublecli
>ck.net
> > /jump/N3349.yahoo1/B1282054.27;abr=!ie4;abr=!
>ie5;sz=300x250;code=18634;dcopt
> > =rcl;ord=1077331784041180?>
> >   >Click Here
> >
> >
> ><<http://rd.yahoo.com/SIG=12c79jstj/M=274551.4550177.5761904.1261774/D>ht 
> tp://rd.yahoo.com/SIG=12c79jstj/M=274551.4550177.5761904.1261774/D
>=egrou
> >
>pweb/S=1705632198:HM/EXP=1077418184/A=2019528/R=2/*<http://ad.doublecli>http://ad.doublecli
>ck.net
> > /jump/N3349.yahoo1/B1282054.27;abr=!ie4;abr=!
>ie5;sz=300x250;code=18634;dcopt
> > =rcl;ord=1077331784041180?>Click
> >   >Here
> >   >[]
> >   >
> >   >
> >   >
> >   >----------
> >   >Yahoo! Groups Links
> >   >    * To visit your group on the web, go to:
> >   >    *
> >   >
> >
><<http://groups.yahoo.com/group/amibroker/>http://groups.yahoo.com/group/amibroker/>http://groups.yahoo.com/grou
>p/amib
> > roker/
> >   >
> >   >    *
> >   >    * To unsubscribe from this group, send an email to:
> >   >    *
> >   >
> > <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?
>subject=Unsubscribe>amibroker-
> > unsubscribe@xxxxxxxxxxxxxxx
> >   >
> >   >    *
> >   >    * Your use of Yahoo! Groups is subject to the
> >   > 
> <<http://docs.yahoo.com/info/terms/>http://docs.yahoo.com/info/terms/>Yahoo! 
> Terms of Service.
> >   >
> >
> >
> >
> >
> >   Send BUG REPORTS to bugs@xxxx
> >   Send SUGGESTIONS to suggest@xxxx
> >   -----------------------------------------
> >   Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> >   (Web page: 
> <http://groups.yahoo.com/group/amiquote/messages/)>http://groups.yahoo.com/group/amiquote/messages/)
> >   --------------------------------------------
> >   Check group FAQ at:
> > 
> <http://groups.yahoo.com/group/amibroker/files/groupfaq.html>http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> >
> >
> >
> > --------------------------------------------------------------------
>--------
> > --
> >   Yahoo! Groups Links
> >
> >     a.. To visit your group on the web, go to:
> > 
> <http://groups.yahoo.com/group/amibroker/>http://groups.yahoo.com/group/amibroker/
> >
> >     b.. To unsubscribe from this group, send an email to:
> >     amibroker-unsubscribe@xxxxxxxxxxxxxxx
> >
> >     c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>Service.
>
>
>
>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/)>http://groups.yahoo.com/group/amiquote/messages/)
>--------------------------------------------
>Check group FAQ at: 
><http://groups.yahoo.com/group/amibroker/files/groupfaq.html>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/)>http://groups.yahoo.com/group/amiquote/messages/)
>--------------------------------------------
>Check group FAQ at: 
><http://groups.yahoo.com/group/amibroker/files/groupfaq.html>http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
>
>
>
>Yahoo! Groups Sponsor
>ADVERTISEMENT
><http://rd.yahoo.com/SIG=12cm38ich/M=274551.4550177.5761904.1261774/D=egroupweb/S=1705632198:HM/EXP=1077463945/A=2019528/R=2/*http://ad.doubleclick.net/jump/N3349.yahoo1/B1282054.27;abr=!ie4;abr=!ie5;sz=300x250;code=18634;dcopt=rcl;ord=1077377545944702?>
>Click Here
><http://rd.yahoo.com/SIG=12cm38ich/M=274551.4550177.5761904.1261774/D=egroupweb/S=1705632198:HM/EXP=1077463945/A=2019528/R=2/*http://ad.doubleclick.net/jump/N3349.yahoo1/B1282054.27;abr=!ie4;abr=!ie5;sz=300x250;code=18634;dcopt=rcl;ord=1077377545944702?>Click 
>Here
>[]
>
>
>
>----------
>Yahoo! Groups Links
>    * To visit your group on the web, go to:
>    * 
> <http://groups.yahoo.com/group/amibroker/>http://groups.yahoo.com/group/amibroker/ 
>
>    *
>    * To unsubscribe from this group, send an email to:
>    * 
> <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>amibroker-unsubscribe@xxxxxxxxxxxxxxx 
>
>    *
>    * Your use of Yahoo! Groups is subject to the 
> <http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service.
>




------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

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:
     http://docs.yahoo.com/info/terms/