cinar / indicatorts

IndicatorTS - Stock technical indicators and strategies in TypeScript for browser and server programs.
MIT License
280 stars 48 forks source link

ichimokuCloudStrategy is not a function #492

Open mikkeldanielsen opened 2 months ago

mikkeldanielsen commented 2 months ago

Hi I'm having some issues with using the strategy methods.

For instance using the ichimokuCloudStrategy method returns this error: Error: (0 , indicatorts__WEBPACK_IMPORTED_MODULE_3__.ichimokuCloudStrategy) is not a function

My code is somewhat like this:

import { ichimokuCloudStrategy } from "indicatorts"

  const asset = {
    dates: dates,
    highs: highs,
    lows: lows,
    closings: closings
  }

 const defaultConfig = { short: 9, medium: 26, long: 52, close: 26 };
 const test = ichimokuCloudStrategy(asset, defaultConfig);