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

Re: [amibroker] ========================need help======================



PureBytes Links

Trading Reference Links

Ajay --
Look up "if" in index for Help.  Scroll down to "
New if-else problem".  Notice that you cannot test arrays with if() statement.

Also you should only call AddColumn once so it should not be inside a loop. 
See example in Help for AddColumn, "Colorful output.
-- Keith

tummalaajaybabu wrote:

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





SPONSORED LINKS
Investment management software Investment property software Investment software
Investment tracking software Return on investment software

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

__,_._,___