05-17-2018, 06:57 PM
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:
What it's wrong? Maybe tradingview is not a standard sar indicator?
Thank you in advance.
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.