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

Re: [amibroker] Intraday display



PureBytes Links

Trading Reference Links




Bill,
 
Use interval and writeif, per the example ,in a 
title stmt. In addition, you can set up the title in an include file, then tack 
onto it as necessary during each "included" use.
 
SYNTAX  interval()  RETURNS 
NUMBER  FUNCTION  Interval() function returns bar interval in 
secondstick bars = 05 sec bars = 51 min bars = 60hourly bars = 
3600daily bars = 86400weekly bars = 430000 (43e4)monthly bars = 
2160000 (216e4)  EXAMPLE "Interval in seconds " + WriteIf( Interval() 
);  SEE ALSO    
Something like:
 
//ChartTitle.afl
BarInt = Interval();
 
Header=Name()+"-"+  WriteIf(BarInt == 
0, "Tick",   WriteIf(BarInt == 60, "1 
Min",    WriteIf(BarInt == 3600, 
"Hourly",     WriteIf(BarInt == 86400, 
"Daily",      WriteIf(BarInt == 432000, 
"Weekly",       WriteIf(BarInt == 
2160000, 
"Monthly",        WriteIf(BarInt 
< 60, WriteVal(BarInt,1.0)+" 
Sec",         WriteVal(BarInt/60,1.0)+" 
Min"))))))) + 
        
    ...//end of ChartTitle.afl
 
// in each afl, use
#include <ChartTitle.afl>
title = header + otherstuff;
 
- Joe
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  wavemechanic 
  
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">AmiBroker 
  Sent: Sunday, June 08, 2003 3:26 PM
  Subject: [amibroker] Intraday 
  display
  
  When using a "built-in" intraday price chart the 
  time frame is automatically displayed in the title.  Does anyone know 
  if there is a way to sense AmiBroker's knowledge of the time frame and 
  then display it using the Title function in a custom formula for both intraday 
  and daily, weekly, and monthly charts?  An awkward round-about way, I 
  guess, is to calculate the difference between Timenum for two successive 
  bars.  But, if possible, sensing AmiBroker's time frame would be a 
  simpler, cleaner way to go.
  <FONT 
  size=2> 
  Thanks.
   
  BillSend 
  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 
  Your use of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor


  ADVERTISEMENT 









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



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.