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

RE: [amibroker] Code help requested



PureBytes Links

Trading Reference Links

Hi,

 

Time frame support doesn’t work this way you would like it.

Checkt out settimeframe in the help.

 

Regards

- - - - - - - - - - - - - - - - - - - -
Thomas
www.tradingbasis.com
support@xxxxxxxxxxxxxxxx
- - - - - - - - - - - - - - - - - - - -


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Rakesh Sahgal
Sent: Thursday, March 16, 2006 4:11 PM
To: Amibroker Yahoogroup
Subject: [amibroker] Code help requested

 

Hi All,

Cant get the following code to generate the correct signals i.e. macd crossing 0 if it is an hourly chart and crossing signal line if it is a daily chart - should ONLY test for these two conditions in the respective time frames. To the best of my limited capabilities it seems error free. Can anyone spot an error in it?


TIA for any help.

Regards



R
======================================
INT_CHK=INTERVAL();


BC=
IIf(int_CHK==inDaily,Cross(MACD(),SIGNAL()),
IIf(int_CHK==3600,Cross(MACD(),0),
0));

buy=bc;

filter=buy;
=======================================





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





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS