Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

Alligator for Amibroker (AFL)

Rating:
5 / 5 (Votes 1)
Tags:
amibroker

Alligator These three line for the Alligator’s mouth: green – lips; red – teeth; blue –
jaws
Alligator Formula
The Alligator indicator’s calculation formula sequence involves the following
steps:
1. The Alligator’s Jaw, the “Blue” line, is a 13-period Smoothed
Moving Average of Median line , moved into the future by 8 bars;
2. The Alligator’s Teeth, the “Red” line, is an 8-period Smoothed
Moving Average of Median line, moved by 5 bars into the future;
3. The Alligator’s Lips, the “Green” line, is a 5-period Smoothed
Moving Average of Median line, moved by 3 bars into the future.
How to Calculate
MEDIAN PRICE = (HIGH + LOW) / 2
ALLIGATORS JAW = SMMA (MEDIAN PRICE, 13, 8)
ALLIGATORS TEETH = SMMA (MEDIAN PRICE, 8, 5)
ALLIGATORS LIPS = SMMA (MEDIAN PRICE, 5, 3)
SMMA (Smoothed Moving Average)
The first value for the Smoothed Moving Average is calculated as a
Simple Moving Average (SMA):

Screenshots

Indicator / Formula

Copy & Paste Friendly

Apply to price chart

// Alligator
MidPrice=(H+L)/2;
iPeriod=5;
Lips = MA(MidPrice, 5);
for(i=5+1; i<BarCount; i++)
{
   iSum = Lips[i-1]*(5-1)+MidPrice[i];
   Lips[i] = iSum/5;
}
Plot(Lips, "Lips", colorGreen, styleLine, Null, Null, 3, 0, 1);

iPeriod=8;
Teeth = MA(MidPrice, 8);
for(i=8+1; i<BarCount; i++)
{
   iSum = Teeth[i-1]*(8-1)+MidPrice[i];
   Teeth[i] = iSum/8;
}
Plot(Teeth, "Teeth", colorRed, styleLine, Null, Null, 5, 0, 1);

iPeriod=13;
Jaw = MA(MidPrice, 13);
for(i=13+1; i<BarCount; i++)
{
   iSum = Jaw[i-1]*(13-1)+MidPrice[i];
   Jaw[i] = iSum/13;
}
Plot(Jaw, "Jaw", colorBlue, styleLine, Null, Null, 8, 0, 1);

0 comments

Leave Comment

Please login here to leave a comment.

Back