ScrewTurn

Active Trader Strategies API Community ChartStyles Community Commissions Community Components Community Indicators Community Providers Community Visualizers Knowledge Base Misc Optimizers PosSizers Standard Indicators TASC Traders Tips TASCIndicators Tutorial Videos
RSS

Navigation







Quick Search
»
Advanced Search »

PoweredBy

Syntax


public AlligatorJaw(DataSeries ds, int period, int delay, string description)
public static AlligatorJaw Series(DataSeries ds, int period, int delay)

public AlligatorTeeth(DataSeries ds, int period, int delay, string description) public static AlligatorTeeth Series(DataSeries ds, int period, int delay)

public AlligatorLips(DataSeries ds, int period, int delay, string description) public static AlligatorLips Series(DataSeries ds, int period, int delay)

Parameter Description

ds The source DataSeries
period Moving average period
delay Delay to offset the MA, bars/td>

Description

The Alligator by Bill Williams is a combination of the 3 indicators that helps to determine a trend:

Alligator's Jaw (the blue line) - 13-period moving average at the mid price (High+Low)/2, which is offset 8 bars into the future;

Alligator's Teeth (the red line) - 8-period moving average at the mid price (High+Low)/2, which is offset 5 bars into the future;

Alligator's Lips (the green line) - 5-period moving average at the mid price (High+Low)/2, which is offset 2 bars into the future.

Interpretation


Example

The following example will plot the Alligator:


using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using WealthLab;
using WealthLab.Indicators;
using Community.Indicators;

namespace WealthLab.Strategies { public class AlligatorDemo : WealthScript { protected override void Execute() { AveragePrice ds = AveragePrice.Series(Bars); AlligatorJaw aj = AlligatorJaw.Series(ds, 13, 8); AlligatorTeeth at = AlligatorTeeth.Series(ds, 8, 5); AlligatorLips al = AlligatorLips.Series(ds, 5, 2);

HideVolume(); PlotSeries( PricePane, aj, Color.Blue, LineStyle.Solid, 1 ); PlotSeries( PricePane, at, Color.Red, LineStyle.Solid, 1 ); PlotSeries( PricePane, al, Color.Green, LineStyle.Solid, 1 ); } } }

Important Disclaimer: The information provided by Wealth-Lab is strictly for informational purposes and is not to be construed as advice or solicitation to buy or sell any security.  The owner of Wealth-Lab.com assumes no liability resulting from the use of the material contained herein for investment purposes.

Used under license from FMR Corp. Copyright 2008 FMR Corp. All rights reserved.


ScrewTurn Wiki version 3.0.2.509. Some of the icons created by FamFamFam.