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

[amibroker] ========================need help======================



PureBytes Links

Trading Reference Links

Hi

I have this idea to use this code in exploration with the help of if
option. With each if function i have put a addcolumn statement. May be
that is not correct one so, i'm getting syntax error. Can anybody help
me to correct this formula. Is this correct or any fine tuning
suggestions from your side.

very much thank you....


Ajay
================

alert = MACD() > Ref(MACD(), -1);
Buy = MACD() > Signal();
Confirm = MACD() > 0;

alert = MACD() < Ref(MACD(), -1);
Sell = MACD() < Signal();
Confirm = MACD() < 0;

Filter = C;

if (MACD() > Ref(MACD(), -1)
AddColumn( 32, "alert", formatChar, colorDefault,
IIf(Filter && alert,colorPaleGreen,colorDefault) );
else
if (MACD() > Signal())
AddColumn( 32, "check 1hr. & buy", formatChar, colorDefault,
IIf(Filter && Buy,colorGreen,colorDefault) );
else
if (MACD() > 0)
AddColumn( 32, "confirm", formatChar, colorDefault,
IIf(Filter && confirm,colorDarkGreen,colorDefault) );
else
if (MACD() < Ref(MACD(), -1)
AddColumn( 32, "alert", formatChar, colorDefault,
IIf(Filter && alert,colorLightOrange,colorDefault) );
else
if (MACD() < Signal())
AddColumn( 32, "check 1 hr & sell", formatChar, colorDefault,
IIf(Filter && Sell,colorDarkRed,colorDefault) );
else
if (MACD() < 0);
AddColumn( 32, "confirm", formatChar, colorDefault,
IIf(Filter && confirm,colorDarkRed,colorDefault) );

//end



Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

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

For other support material please check also:
http://www.amibroker.com/support.html
 
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/