Category Trend  Published on 30/08/2012

Trend Indicator

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
Comments
Log in to add a comment.
LE
Lebenskünstler · 9 years ago

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));
}

DA
davidp13 · 9 years ago

Hi. How would one reference this indicator in a robot?

odomike's avatar
odomike · 12 years ago
This seems like a promising trend indicator. I am gonna give it a try.