PureBytes Links
Trading Reference Links
|
Hello,
It is simple - for example to check if MACD is rising for two days in a row
just check if today MACD is greater than yesterday's and yesterday's MACD is greater
then MACD the day before yesterday. And do the same for stochastic. Then
to check if both conditions are met just join them using 'AND' operator.
The whole formula for buy signal is as follows:
macdisrising = macd() > ref( macd(), -1 ) and ref( macd(), -1 ) > ref( macd(), -2 );
stochisrising = stochd() > ref( stochd(), -1 ) and ref( stochd(),-1 ) > ref( stochd() , -2 );
buy = macdisrising AND stochisrising;
Best regards,
Tomasz Janeczko
===============
AmiBroker - the comprehensive share manager.
http://www.amibroker.com
----- Original Message -----
From: David <dtholz@xxxx>
To: <amibroker@xxxxxxxxxxx>
Sent: Thursday, December 28, 2000 10:51 AM
Subject: [amibroker] indicators
> Tomasz and others
> hope post xmas leave you all well not to much food and drink .....now
> thats hard.....
>
> I want to build an indicator that will
> tell me when the macd is rising and if it is, is the Stochastic Slow
> also rising
> both indicator are in ami afl folder but i was hoping to build
> something that will do multi searches ...
>
> thanks David
>
>
>
>
>
>
|