PureBytes Links
Trading Reference Links
|
Hello,
If you want to detect n-day trend in MACD() and Stoch
you might try something like this:
n = 10; // you may change this as you want
buy = roc( macd(), n ) > 0 AND roc( stochd(), n ) > 0;
sell = roc( macd(), n ) < 0 AND roc( stochd(), n ) < 0;
(for simplicity it is long only, for short add
cover = buy;
short = sell;
)
Best regards,
Tomasz Janeczko
===============
AmiBroker - the comprehensive share manager.
http://www.amibroker.com
----- Original Message -----
From: "Bryan Johnson" <bryan1@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Sunday, September 30, 2001 5:17 AM
Subject: [amibroker] Newbie
> Hi
>
> I'm new to Amibroker and have the demo version. I'd like to know if
> there is a shortcut to testing out the scenario:
>
> When both the daily Macd and daily slow stochastic are going in the
> same direction, to trade in that direction.
>
> I'm not at all familiar with AFL. Any response is welcome.
>
> Bryan
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
|