Gekko Forum
params for Talib sarext indicator - Printable Version

+- Gekko Forum (https://forum.gekko.wizb.it)
+-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html)
+--- Forum: Strategy Development (https://forum.gekko.wizb.it/forum-12.html)
+--- Thread: params for Talib sarext indicator (/thread-57179.html)



params for Talib sarext indicator - isaac.marco - 05-17-2018

Anybody using sar indicators? I'm triying to config talib or Tulip sar indicators to get the same values I get in https://www.tradingview.com/ with the sar indicator with default config SAR (0.02, 0.02, 0.2) but no way to get the same values in gekko.

These are my params:


Code:
  //SAR
  customSARSettings = {
    optInAcceleration : 0.02,
    optInMaximum : 0.2,
  }
  this.addTalibIndicator ('mysar', 'sar', customSARSettings);
  
  customSAREXTSettings = {
    optInStartValue : 0,
    optInOffsetOnReverse : 0,
    optInAccelerationInitLong : 0.02,
    optInAccelerationLong: 0.02,
    optInAccelerationMaxLong: 0.2,
    optInAccelerationInitShort: 0.02,
    optInAccelerationShort: 0.02,
    optInAccelerationMaxShort: 0.2,
  }
  this.addTalibIndicator ('mysarext', 'sarext', customSAREXTSettings);
  
  customTulipSARSettings = {
    optInAcceleration : 0.02,
    optInMaximum : 0.2,
  }
  this.addTulipIndicator ('mytulipsar', 'psar', customTulipSARSettings);

What it's wrong? Maybe tradingview is not a standard sar indicator?

Thank you in advance.