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

Re: [amibroker] Amibroker help



PureBytes Links

Trading Reference Links

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. <vgakkhar@xxxxxxxxxxx>
To: Amibroker <amibroker@xxxxxxxxxxxxxxx>
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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/




__._,_.___


**** 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/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___