Description
Based on Instantaneous Trend from John Ehlers book "Cybernetic Analysis for Stocks and Futures".
u
DA
daemon
Joined on 30.08.2012
- Distribution: Free
- Language: C#
- Trading platform: cTrader Automate
- File name: TrendIndicator.algo
- Rating: 5
- Installs: 5238
- Modified: 13/10/2021 09:55
Note that publishing copyrighted material is strictly prohibited. If you believe there is copyrighted material in this section, please use the Copyright Infringement Notification form to submit a claim.
Hi davip13
To use this indicator in your bot just ad the following code.
Please also add a reference to the indicator clicking on "Manage References" next to "Save" and "Build".
-----
private TrendIndicator trnd;
protected override void OnStart()
{
trnd = Indicators.GetIndicator<TrendIndicator>(MarketSeries.Close, 0.07);
}
protected override void OnTick()
{
Print("Result " + trnd.Result.Last(0));
Print("Lag " + trnd.Lag.Last(0));
}