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

Re: [amibroker] Trend Deviation



PureBytes Links

Trading Reference Links

Try this formula , a bit easier to play around with. If you need any help,
don't hesitate.

Anthony

Russ Ty wrote:

> Hi all,
>
> I would like to use the following indicator in my
> analysis: Divide a 15 month moving average by a 36
> month moving average. I would also like to use a 9
> month moving average as a signal line. Unfortunately,
> I don't know how to program. Please will someone help
> me with this indicator.
>
> Kind regards
> Russ
>
> __________________________________________________
> Do You Yahoo!?
> Find a job, post your resume.
> http://careers.yahoo.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

/* Moving Average Crossover*/
/* Can be used for Daily, Weekly, Monthly*/
/* by changing your chart time frame ( Daily, Weekly, Monthly )*/
/* Simple Moving Averages */
/* If you want an Exponential Moving Average , Place a E in front of MA in all instances*/

MaxGraph=8;

/* You can change these variables to get different results*/
/* They will be automatically changed in the formulas*/
MA1=15;
MA2=36;
MA3=9; /* signal line */

Graph0=MA(C,MA1)/MA(C,MA2); /* Red Line ; Division */
Graph1=MA(Graph0,MA3); /* Blue Line :Signal line, Moving average of Division, when red line crosses above blue ( bullish ) crosses below ( bearish ), */