TA.Alligator
The TA.Alligator() function is used to calculate the Alligator Indicator.
TA.Alligator(inReal)
TA.Alligator(inReal, jawLength, teethLength, lipsLength)Examples
javascript
function main(){
var records = exchange.GetRecords()
var alligator = TA.Alligator(records)
Log("jawLine:", alligator[0])
Log("teethLine:", alligator[1])
Log("lipsLine:", alligator[2])
}
python
def main():
records = exchange.GetRecords()
alligator = TA.Alligator(records)
Log("jawLine:", alligator[0])
Log("teethLine:", alligator[1])
Log("lipsLine:", alligator[2])
c++
void main() {
auto records = exchange.GetRecords();
auto alligator = TA.Alligator(records);
Log("jawLine:", alligator[0]);
Log("teethLine:", alligator[1]);
Log("lipsLine:", alligator[2]);
}Returns
| Type | Description |
array | The |
Arguments
| Name | Type | Required | Description |
inReal |
| Yes | The |
jawLength | number | No | The |
teethLength | number | No | The |
lipsLength | number | No | The |
See Also
Remarks
The default values for the jawLength, teethLength, and lipsLength parameters of the TA.Alligator() function are: 13, 8, and 5 respectively.