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

[amibroker] Re: Solve the problem



PureBytes Links

Trading Reference Links

Why are you testing the result of the Cross function for being less
than or equal to three? Cross returns an array containing only zeroes
and ones, so I think the whole Buy array will be full of ones (ie.
every bar will have a buy signal).

Also, I'm not sure how the formula is supposed to work, but are you
sure your operator precedence is correct for the OR and AND operators?

Regards,
GP


--- In amibroker@xxxxxxxxxxxxxxx, "power.stocks" <power.stocks@xxx> wrote:
>
> I wrote a program if macd signal line cross over only overbought/sold 
> zone. Buy it could not work proper. Kindly solve the problem.
> 
> Buy=Cross( MACD( 12, 26 ), Signal( 12, 26, 9 ) ) <=3 OR MACD( 12, 26
>  ) > 0.5 AND ( MACD( 12, 26 )>Signal( 12, 26, 9 ) ) ;
>



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

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

*********************
TO GET TECHNICAL 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/