Below is just for reference: (only partial solution, I think may need to loop 
thru the array further and remove some unwanted intraday values, so the signal 
will show only once per relevant condition. ) However, I don't know how to 
write: maybe someone will post more complete solution.)  

To calculate AA: 

yestodayClose= TimeFrameGetPrice("C",inDaily,-1);
dayBfYtdClose = TimeFrameGetPrice("C",inDaily,-2);  // day before yesterday's 
close
diffAA = 100 * (yestodayClose - dayBfYtdClose) / dayBfYtdClose;  // the percent 
difference 
AA = diffAA > 0;   
To calculate BB: (the deDateTime plugin is needed) 

todayClose = deValueWhenTime(Close,160000);   // suppose market close at 16:00: 
get the last bar close price 
todayClose1 = deValueWhenTime(Close,155900);  // one bar before last bar's 
close price 
diffBB = 100 * (todayClose - todayClose1) / todayClose1;  // the percent 
difference 
BB = diffBB > 0;  


________________________________
From: Vinay Gakkhar. <[email protected]>
To: Amibroker <[email protected]>
Sent: Friday, March 6, 2009 9:26:06 PM
Subject: [amibroker] Amibroker help

In the following formulae, I want to show in place of 'AA' the percent 
difference between yesterday's close price with that of the day before 
yesterday. And in place of 'BB' I want to show the percent difference between 
close price of today's just previous intraday bar with that of the one just 
before it.

PlotShapes( IIf( AA,  shapeUpArrow, shapeNone ) , colorGreen );
PlotShapes( IIf( BB,  shapeHollowUpArrow, shapeNone ) , colorGreen );

Can anyone please tell me what to write?

Thanks,
Vinay Gakkhar





------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

Yahoo! Groups Links




      

Reply via email to