lightweight-charts-indicators 0.16.10 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (334) hide show
  1. package/README.md +3 -3
  2. package/dist/community/activity-and-volume-orderflow-profile.d.ts +78 -0
  3. package/dist/community/activity-and-volume-orderflow-profile.d.ts.map +1 -0
  4. package/dist/community/adaptive-support-and-resistance-zones.d.ts +72 -0
  5. package/dist/community/adaptive-support-and-resistance-zones.d.ts.map +1 -0
  6. package/dist/community/adr-average-daily-range-by-mikec.d.ts +41 -0
  7. package/dist/community/adr-average-daily-range-by-mikec.d.ts.map +1 -0
  8. package/dist/community/adx-by-cobra.d.ts +51 -0
  9. package/dist/community/adx-by-cobra.d.ts.map +1 -0
  10. package/dist/community/ai-moving-average.d.ts +92 -0
  11. package/dist/community/ai-moving-average.d.ts.map +1 -0
  12. package/dist/community/algo-market-structure.d.ts +127 -0
  13. package/dist/community/algo-market-structure.d.ts.map +1 -0
  14. package/dist/community/all-in-one-sessions-weekly-monday-previous.d.ts +87 -0
  15. package/dist/community/all-in-one-sessions-weekly-monday-previous.d.ts.map +1 -0
  16. package/dist/community/asiasessionhighlowmidlines.d.ts +67 -0
  17. package/dist/community/asiasessionhighlowmidlines.d.ts.map +1 -0
  18. package/dist/community/atr-fibonacci-trend-envelopes.d.ts +77 -0
  19. package/dist/community/atr-fibonacci-trend-envelopes.d.ts.map +1 -0
  20. package/dist/community/atr-trailing-stoploss.d.ts +53 -0
  21. package/dist/community/atr-trailing-stoploss.d.ts.map +1 -0
  22. package/dist/community/auto-pattern-detector-targets.d.ts +124 -0
  23. package/dist/community/auto-pattern-detector-targets.d.ts.map +1 -0
  24. package/dist/community/backtesting-trading-engine.d.ts +192 -0
  25. package/dist/community/backtesting-trading-engine.d.ts.map +1 -0
  26. package/dist/community/balanced-price-range-flux-charts.d.ts +82 -0
  27. package/dist/community/balanced-price-range-flux-charts.d.ts.map +1 -0
  28. package/dist/community/balanced-price-range.d.ts +63 -0
  29. package/dist/community/balanced-price-range.d.ts.map +1 -0
  30. package/dist/community/best-support-and-resistance-indicator-v1.d.ts +69 -0
  31. package/dist/community/best-support-and-resistance-indicator-v1.d.ts.map +1 -0
  32. package/dist/community/bollinger-bands-flux-charts.d.ts +105 -0
  33. package/dist/community/bollinger-bands-flux-charts.d.ts.map +1 -0
  34. package/dist/community/bos-choch-demand-supply.d.ts +71 -0
  35. package/dist/community/bos-choch-demand-supply.d.ts.map +1 -0
  36. package/dist/community/breakaway-fair-value-gaps.d.ts +67 -0
  37. package/dist/community/breakaway-fair-value-gaps.d.ts.map +1 -0
  38. package/dist/community/breakout-boxes.d.ts +62 -0
  39. package/dist/community/breakout-boxes.d.ts.map +1 -0
  40. package/dist/community/breakout-volume-delta-flux-charts.d.ts +110 -0
  41. package/dist/community/breakout-volume-delta-flux-charts.d.ts.map +1 -0
  42. package/dist/community/bull-market-support-band.d.ts +42 -0
  43. package/dist/community/bull-market-support-band.d.ts.map +1 -0
  44. package/dist/community/buy-sell-signals-with-support-resistance.d.ts +58 -0
  45. package/dist/community/buy-sell-signals-with-support-resistance.d.ts.map +1 -0
  46. package/dist/community/buy-sell-volume-totals-for-period.d.ts +50 -0
  47. package/dist/community/buy-sell-volume-totals-for-period.d.ts.map +1 -0
  48. package/dist/community/candlesticks-patterns-identified.d.ts +48 -0
  49. package/dist/community/candlesticks-patterns-identified.d.ts.map +1 -0
  50. package/dist/community/cdc-actionzone-v3-2020.d.ts +95 -0
  51. package/dist/community/cdc-actionzone-v3-2020.d.ts.map +1 -0
  52. package/dist/community/change-in-state-of-delivery.d.ts +73 -0
  53. package/dist/community/change-in-state-of-delivery.d.ts.map +1 -0
  54. package/dist/community/cisd-with-alerts.d.ts +76 -0
  55. package/dist/community/cisd-with-alerts.d.ts.map +1 -0
  56. package/dist/community/cm-oldschool-projected-high-low.d.ts +59 -0
  57. package/dist/community/cm-oldschool-projected-high-low.d.ts.map +1 -0
  58. package/dist/community/cm-pivot-points-custom.d.ts +60 -0
  59. package/dist/community/cm-pivot-points-custom.d.ts.map +1 -0
  60. package/dist/community/code-for-all-4-forex-sessions-w-background.d.ts +75 -0
  61. package/dist/community/code-for-all-4-forex-sessions-w-background.d.ts.map +1 -0
  62. package/dist/community/code-plots-high-low-open-close-daily-weekly.d.ts +60 -0
  63. package/dist/community/code-plots-high-low-open-close-daily-weekly.d.ts.map +1 -0
  64. package/dist/community/delta-ladder.d.ts +91 -0
  65. package/dist/community/delta-ladder.d.ts.map +1 -0
  66. package/dist/community/delta-volume-candles.d.ts +151 -0
  67. package/dist/community/delta-volume-candles.d.ts.map +1 -0
  68. package/dist/community/demand-supply-zones.d.ts +96 -0
  69. package/dist/community/demand-supply-zones.d.ts.map +1 -0
  70. package/dist/community/double-ema-with-pullback-buy-sell-signal.d.ts +72 -0
  71. package/dist/community/double-ema-with-pullback-buy-sell-signal.d.ts.map +1 -0
  72. package/dist/community/double-top-bottom-ultimate.d.ts +74 -0
  73. package/dist/community/double-top-bottom-ultimate.d.ts.map +1 -0
  74. package/dist/community/dynamic-support-resistance-zones.d.ts +91 -0
  75. package/dist/community/dynamic-support-resistance-zones.d.ts.map +1 -0
  76. package/dist/community/elliot-wave-impulse.d.ts +66 -0
  77. package/dist/community/elliot-wave-impulse.d.ts.map +1 -0
  78. package/dist/community/elliott-impulse-engine.d.ts +136 -0
  79. package/dist/community/elliott-impulse-engine.d.ts.map +1 -0
  80. package/dist/community/evasive-supertrend.d.ts +62 -0
  81. package/dist/community/evasive-supertrend.d.ts.map +1 -0
  82. package/dist/community/extrapolated-pivot-connector-lets-make.d.ts +50 -0
  83. package/dist/community/extrapolated-pivot-connector-lets-make.d.ts.map +1 -0
  84. package/dist/community/extreme-trend-reversal-points.d.ts +75 -0
  85. package/dist/community/extreme-trend-reversal-points.d.ts.map +1 -0
  86. package/dist/community/fair-value-bands-flowly-indicators.d.ts +106 -0
  87. package/dist/community/fair-value-bands-flowly-indicators.d.ts.map +1 -0
  88. package/dist/community/fair-value-gaps-by-dgt.d.ts +88 -0
  89. package/dist/community/fair-value-gaps-by-dgt.d.ts.map +1 -0
  90. package/dist/community/fibonacci-entry-bands.d.ts +79 -0
  91. package/dist/community/fibonacci-entry-bands.d.ts.map +1 -0
  92. package/dist/community/fibonacci-levels-mtf.d.ts +81 -0
  93. package/dist/community/fibonacci-levels-mtf.d.ts.map +1 -0
  94. package/dist/community/fibonacci-optimal-entry-zone.d.ts +78 -0
  95. package/dist/community/fibonacci-optimal-entry-zone.d.ts.map +1 -0
  96. package/dist/community/fibonacci-support-resistant-trendline.d.ts +77 -0
  97. package/dist/community/fibonacci-support-resistant-trendline.d.ts.map +1 -0
  98. package/dist/community/footprint-iq-pro.d.ts +109 -0
  99. package/dist/community/footprint-iq-pro.d.ts.map +1 -0
  100. package/dist/community/fx-sniper-t3-cci-copy-strategy.d.ts +52 -0
  101. package/dist/community/fx-sniper-t3-cci-copy-strategy.d.ts.map +1 -0
  102. package/dist/community/gann-box.d.ts +129 -0
  103. package/dist/community/gann-box.d.ts.map +1 -0
  104. package/dist/community/gmma-daisuke-gewinn.d.ts +58 -0
  105. package/dist/community/gmma-daisuke-gewinn.d.ts.map +1 -0
  106. package/dist/community/grid-bot-simulator.d.ts +62 -0
  107. package/dist/community/grid-bot-simulator.d.ts.map +1 -0
  108. package/dist/community/heiken-ashi-candles.d.ts +48 -0
  109. package/dist/community/heiken-ashi-candles.d.ts.map +1 -0
  110. package/dist/community/high-probability-order-blocks.d.ts +77 -0
  111. package/dist/community/high-probability-order-blocks.d.ts.map +1 -0
  112. package/dist/community/higher-timeframe-high-low.d.ts +65 -0
  113. package/dist/community/higher-timeframe-high-low.d.ts.map +1 -0
  114. package/dist/community/horns-pattern-identifier.d.ts +51 -0
  115. package/dist/community/horns-pattern-identifier.d.ts.map +1 -0
  116. package/dist/community/htf-candle-profile.d.ts +69 -0
  117. package/dist/community/htf-candle-profile.d.ts.map +1 -0
  118. package/dist/community/htf-liquidity-levels.d.ts +85 -0
  119. package/dist/community/htf-liquidity-levels.d.ts.map +1 -0
  120. package/dist/community/ict-htf-candles.d.ts +119 -0
  121. package/dist/community/ict-htf-candles.d.ts.map +1 -0
  122. package/dist/community/ict-sessions.d.ts +65 -0
  123. package/dist/community/ict-sessions.d.ts.map +1 -0
  124. package/dist/community/ict-setup-04-sfp-sweep-liquidity-fake-choch.d.ts +74 -0
  125. package/dist/community/ict-setup-04-sfp-sweep-liquidity-fake-choch.d.ts.map +1 -0
  126. package/dist/community/ict-unicorn-flux-charts.d.ts +113 -0
  127. package/dist/community/ict-unicorn-flux-charts.d.ts.map +1 -0
  128. package/dist/community/ict-venom-trading-model-smc-ny-session.d.ts +101 -0
  129. package/dist/community/ict-venom-trading-model-smc-ny-session.d.ts.map +1 -0
  130. package/dist/community/ifvg-sniper-entry-engine.d.ts +86 -0
  131. package/dist/community/ifvg-sniper-entry-engine.d.ts.map +1 -0
  132. package/dist/community/indicator-hawkeye-volume-indicator.d.ts +43 -0
  133. package/dist/community/indicator-hawkeye-volume-indicator.d.ts.map +1 -0
  134. package/dist/community/indicators-traders-dynamic-index-hlctrends.d.ts +43 -0
  135. package/dist/community/indicators-traders-dynamic-index-hlctrends.d.ts.map +1 -0
  136. package/dist/community/institutional-order-flow-strength-classifier.d.ts +76 -0
  137. package/dist/community/institutional-order-flow-strength-classifier.d.ts.map +1 -0
  138. package/dist/community/internal-candle-strength.d.ts +66 -0
  139. package/dist/community/internal-candle-strength.d.ts.map +1 -0
  140. package/dist/community/inverse-fvg-with-rejections.d.ts +81 -0
  141. package/dist/community/inverse-fvg-with-rejections.d.ts.map +1 -0
  142. package/dist/community/kdj-indicator-iamaltcoin.d.ts +46 -0
  143. package/dist/community/kdj-indicator-iamaltcoin.d.ts.map +1 -0
  144. package/dist/community/knn-market-architecture.d.ts +96 -0
  145. package/dist/community/knn-market-architecture.d.ts.map +1 -0
  146. package/dist/community/lance-algo.d.ts +102 -0
  147. package/dist/community/lance-algo.d.ts.map +1 -0
  148. package/dist/community/liqudation-heatmap.d.ts +53 -0
  149. package/dist/community/liqudation-heatmap.d.ts.map +1 -0
  150. package/dist/community/liquidation-levels.d.ts +84 -0
  151. package/dist/community/liquidation-levels.d.ts.map +1 -0
  152. package/dist/community/liquidity-entry-zones.d.ts +103 -0
  153. package/dist/community/liquidity-entry-zones.d.ts.map +1 -0
  154. package/dist/community/liquidity-grab-zones-flux-charts.d.ts +83 -0
  155. package/dist/community/liquidity-grab-zones-flux-charts.d.ts.map +1 -0
  156. package/dist/community/liquidity-heatmap-ltf.d.ts +63 -0
  157. package/dist/community/liquidity-heatmap-ltf.d.ts.map +1 -0
  158. package/dist/community/liquidity-sniper-pro.d.ts +66 -0
  159. package/dist/community/liquidity-sniper-pro.d.ts.map +1 -0
  160. package/dist/community/liquidity-spectrum-visualizer.d.ts +71 -0
  161. package/dist/community/liquidity-spectrum-visualizer.d.ts.map +1 -0
  162. package/dist/community/liquidity-structure-order-flow.d.ts +94 -0
  163. package/dist/community/liquidity-structure-order-flow.d.ts.map +1 -0
  164. package/dist/community/liquidity-sweep-hunter-algo.d.ts +82 -0
  165. package/dist/community/liquidity-sweep-hunter-algo.d.ts.map +1 -0
  166. package/dist/community/logarithmic-regression-channel-trend.d.ts +66 -0
  167. package/dist/community/logarithmic-regression-channel-trend.d.ts.map +1 -0
  168. package/dist/community/luxy-super-duper-supertrend-predictor-engine.d.ts +171 -0
  169. package/dist/community/luxy-super-duper-supertrend-predictor-engine.d.ts.map +1 -0
  170. package/dist/community/macd-x-more-than-macd-by-dgt.d.ts +121 -0
  171. package/dist/community/macd-x-more-than-macd-by-dgt.d.ts.map +1 -0
  172. package/dist/community/machine-learning-gaussian-process-regression.d.ts +59 -0
  173. package/dist/community/machine-learning-gaussian-process-regression.d.ts.map +1 -0
  174. package/dist/community/machine-learning-logistic-regression.d.ts +97 -0
  175. package/dist/community/machine-learning-logistic-regression.d.ts.map +1 -0
  176. package/dist/community/machine-learning-price-target-prediction.d.ts +90 -0
  177. package/dist/community/machine-learning-price-target-prediction.d.ts.map +1 -0
  178. package/dist/community/machine-learning-supertrend.d.ts +124 -0
  179. package/dist/community/machine-learning-supertrend.d.ts.map +1 -0
  180. package/dist/community/madrid-ma-ribbon-bar-v2.d.ts +40 -0
  181. package/dist/community/madrid-ma-ribbon-bar-v2.d.ts.map +1 -0
  182. package/dist/community/market-structure-confluence.d.ts +66 -0
  183. package/dist/community/market-structure-confluence.d.ts.map +1 -0
  184. package/dist/community/market-structure-inducements-ict-choch-bos.d.ts +65 -0
  185. package/dist/community/market-structure-inducements-ict-choch-bos.d.ts.map +1 -0
  186. package/dist/community/market-structure-trend-targets.d.ts +68 -0
  187. package/dist/community/market-structure-trend-targets.d.ts.map +1 -0
  188. package/dist/community/market-structure-zigzag-break-of-structure.d.ts +133 -0
  189. package/dist/community/market-structure-zigzag-break-of-structure.d.ts.map +1 -0
  190. package/dist/community/market-trend-levels-detector.d.ts +62 -0
  191. package/dist/community/market-trend-levels-detector.d.ts.map +1 -0
  192. package/dist/community/master-pattern.d.ts +65 -0
  193. package/dist/community/master-pattern.d.ts.map +1 -0
  194. package/dist/community/momentum-acceleration-by-dgt.d.ts +118 -0
  195. package/dist/community/momentum-acceleration-by-dgt.d.ts.map +1 -0
  196. package/dist/community/momentum-ghost-machine.d.ts +98 -0
  197. package/dist/community/momentum-ghost-machine.d.ts.map +1 -0
  198. package/dist/community/moving-average-exponential-x-4.d.ts +40 -0
  199. package/dist/community/moving-average-exponential-x-4.d.ts.map +1 -0
  200. package/dist/community/moving-average-shaded-fill-area-crossover-ema.d.ts +40 -0
  201. package/dist/community/moving-average-shaded-fill-area-crossover-ema.d.ts.map +1 -0
  202. package/dist/community/moving-averages-as-support-resistance-mtf.d.ts +76 -0
  203. package/dist/community/moving-averages-as-support-resistance-mtf.d.ts.map +1 -0
  204. package/dist/community/multi-zigzag-harmonic-patterns.d.ts +91 -0
  205. package/dist/community/multi-zigzag-harmonic-patterns.d.ts.map +1 -0
  206. package/dist/community/nadaraya-watson-regression-liquidity-sweeps.d.ts +100 -0
  207. package/dist/community/nadaraya-watson-regression-liquidity-sweeps.d.ts.map +1 -0
  208. package/dist/community/next-pivot-projection.d.ts +71 -0
  209. package/dist/community/next-pivot-projection.d.ts.map +1 -0
  210. package/dist/community/order-flow-vwap-deviation.d.ts +81 -0
  211. package/dist/community/order-flow-vwap-deviation.d.ts.map +1 -0
  212. package/dist/community/orderblocks-open-source.d.ts +73 -0
  213. package/dist/community/orderblocks-open-source.d.ts.map +1 -0
  214. package/dist/community/pivot-high-low-analysis-forecast.d.ts +53 -0
  215. package/dist/community/pivot-high-low-analysis-forecast.d.ts.map +1 -0
  216. package/dist/community/pivot-levels.d.ts +79 -0
  217. package/dist/community/pivot-levels.d.ts.map +1 -0
  218. package/dist/community/pocs-and-vahs-vals-all-and-non-broken.d.ts +69 -0
  219. package/dist/community/pocs-and-vahs-vals-all-and-non-broken.d.ts.map +1 -0
  220. package/dist/community/poor-man-s-volume-clusters.d.ts +73 -0
  221. package/dist/community/poor-man-s-volume-clusters.d.ts.map +1 -0
  222. package/dist/community/position-size-calculator.d.ts +70 -0
  223. package/dist/community/position-size-calculator.d.ts.map +1 -0
  224. package/dist/community/previous-highs-lows.d.ts +65 -0
  225. package/dist/community/previous-highs-lows.d.ts.map +1 -0
  226. package/dist/community/pro-scalper-ai.d.ts +111 -0
  227. package/dist/community/pro-scalper-ai.d.ts.map +1 -0
  228. package/dist/community/pullback-candles-guaranteed-winners.d.ts +54 -0
  229. package/dist/community/pullback-candles-guaranteed-winners.d.ts.map +1 -0
  230. package/dist/community/r-r-trading-system-framework.d.ts +133 -0
  231. package/dist/community/r-r-trading-system-framework.d.ts.map +1 -0
  232. package/dist/community/range-analysis-by-leviathan.d.ts +151 -0
  233. package/dist/community/range-analysis-by-leviathan.d.ts.map +1 -0
  234. package/dist/community/range-sentiment-profile.d.ts +77 -0
  235. package/dist/community/range-sentiment-profile.d.ts.map +1 -0
  236. package/dist/community/relative-strength-of-a-stock.d.ts +78 -0
  237. package/dist/community/relative-strength-of-a-stock.d.ts.map +1 -0
  238. package/dist/community/reversal.d.ts +56 -0
  239. package/dist/community/reversal.d.ts.map +1 -0
  240. package/dist/community/risk-management-tool.d.ts +79 -0
  241. package/dist/community/risk-management-tool.d.ts.map +1 -0
  242. package/dist/community/rolling-vwap.d.ts +66 -0
  243. package/dist/community/rolling-vwap.d.ts.map +1 -0
  244. package/dist/community/rsi-core-levels-heatmap.d.ts +73 -0
  245. package/dist/community/rsi-core-levels-heatmap.d.ts.map +1 -0
  246. package/dist/community/rsi-trendlines-with-breakouts.d.ts +79 -0
  247. package/dist/community/rsi-trendlines-with-breakouts.d.ts.map +1 -0
  248. package/dist/community/rvol-relative-volume-intraday.d.ts +57 -0
  249. package/dist/community/rvol-relative-volume-intraday.d.ts.map +1 -0
  250. package/dist/community/saty-pivot-ribbon.d.ts +95 -0
  251. package/dist/community/saty-pivot-ribbon.d.ts.map +1 -0
  252. package/dist/community/session-liquidity.d.ts +104 -0
  253. package/dist/community/session-liquidity.d.ts.map +1 -0
  254. package/dist/community/session-tpo-market-profile.d.ts +82 -0
  255. package/dist/community/session-tpo-market-profile.d.ts.map +1 -0
  256. package/dist/community/smart-money-setup-01-double-order-blocks-proof.d.ts +52 -0
  257. package/dist/community/smart-money-setup-01-double-order-blocks-proof.d.ts.map +1 -0
  258. package/dist/community/smart-trader-episode-03-by-ata-sabanci.d.ts +110 -0
  259. package/dist/community/smart-trader-episode-03-by-ata-sabanci.d.ts.map +1 -0
  260. package/dist/community/smart-trader-episode-06-isotropic-trend-lines.d.ts +101 -0
  261. package/dist/community/smart-trader-episode-06-isotropic-trend-lines.d.ts.map +1 -0
  262. package/dist/community/smt-divergence-ict-01-smart-money-technique.d.ts +73 -0
  263. package/dist/community/smt-divergence-ict-01-smart-money-technique.d.ts.map +1 -0
  264. package/dist/community/stochastic-z-score.d.ts +67 -0
  265. package/dist/community/stochastic-z-score.d.ts.map +1 -0
  266. package/dist/community/strat-assistant.d.ts +79 -0
  267. package/dist/community/strat-assistant.d.ts.map +1 -0
  268. package/dist/community/strength-of-divergence-across-multiple.d.ts +107 -0
  269. package/dist/community/strength-of-divergence-across-multiple.d.ts.map +1 -0
  270. package/dist/community/super-trend-v.d.ts +63 -0
  271. package/dist/community/super-trend-v.d.ts.map +1 -0
  272. package/dist/community/supply-demand-zones-pro.d.ts +78 -0
  273. package/dist/community/supply-demand-zones-pro.d.ts.map +1 -0
  274. package/dist/community/support-resistance-ai.d.ts +58 -0
  275. package/dist/community/support-resistance-ai.d.ts.map +1 -0
  276. package/dist/community/sweep-institutional.d.ts +68 -0
  277. package/dist/community/sweep-institutional.d.ts.map +1 -0
  278. package/dist/community/swing-anchored-vwap.d.ts +55 -0
  279. package/dist/community/swing-anchored-vwap.d.ts.map +1 -0
  280. package/dist/community/swing-high-low.d.ts +65 -0
  281. package/dist/community/swing-high-low.d.ts.map +1 -0
  282. package/dist/community/tdi-traders-dynamic-index-rsi-divergences-buy.d.ts +76 -0
  283. package/dist/community/tdi-traders-dynamic-index-rsi-divergences-buy.d.ts.map +1 -0
  284. package/dist/community/three-drive-pattern-detector.d.ts +68 -0
  285. package/dist/community/three-drive-pattern-detector.d.ts.map +1 -0
  286. package/dist/community/traders-dynamic-index-indicator-alert-v0-1-by.d.ts +89 -0
  287. package/dist/community/traders-dynamic-index-indicator-alert-v0-1-by.d.ts.map +1 -0
  288. package/dist/community/trendlines-2x.d.ts +118 -0
  289. package/dist/community/trendlines-2x.d.ts.map +1 -0
  290. package/dist/community/triangular-hull-moving-average-volatility.d.ts +66 -0
  291. package/dist/community/triangular-hull-moving-average-volatility.d.ts.map +1 -0
  292. package/dist/community/two-pole-oscillator.d.ts +57 -0
  293. package/dist/community/two-pole-oscillator.d.ts.map +1 -0
  294. package/dist/community/volume-analysis-heatmap-and-volume-profile.d.ts +101 -0
  295. package/dist/community/volume-analysis-heatmap-and-volume-profile.d.ts.map +1 -0
  296. package/dist/community/volume-bubbles-liquidity-heatmap.d.ts +84 -0
  297. package/dist/community/volume-bubbles-liquidity-heatmap.d.ts.map +1 -0
  298. package/dist/community/volume-footprint-measuring-by-math-geometry.d.ts +134 -0
  299. package/dist/community/volume-footprint-measuring-by-math-geometry.d.ts.map +1 -0
  300. package/dist/community/volume-heatmap-divergence.d.ts +75 -0
  301. package/dist/community/volume-heatmap-divergence.d.ts.map +1 -0
  302. package/dist/community/volume-profile-auto.d.ts +77 -0
  303. package/dist/community/volume-profile-auto.d.ts.map +1 -0
  304. package/dist/community/volume-profile-plus.d.ts +86 -0
  305. package/dist/community/volume-profile-plus.d.ts.map +1 -0
  306. package/dist/community/volume-weighted-macd-v2-vwmacdv2-by-kivan.d.ts +41 -0
  307. package/dist/community/volume-weighted-macd-v2-vwmacdv2-by-kivan.d.ts.map +1 -0
  308. package/dist/community/volume-weighted-order-block-zones.d.ts +69 -0
  309. package/dist/community/volume-weighted-order-block-zones.d.ts.map +1 -0
  310. package/dist/community/volumetric-order-flow-structure.d.ts +60 -0
  311. package/dist/community/volumetric-order-flow-structure.d.ts.map +1 -0
  312. package/dist/community/vwap-mtf.d.ts +54 -0
  313. package/dist/community/vwap-mtf.d.ts.map +1 -0
  314. package/dist/community/vwap-supply-demand-zones-pro.d.ts +88 -0
  315. package/dist/community/vwap-supply-demand-zones-pro.d.ts.map +1 -0
  316. package/dist/community/waindrops.d.ts +81 -0
  317. package/dist/community/waindrops.d.ts.map +1 -0
  318. package/dist/community/whale-liquidity-and-absorption-profile.d.ts +108 -0
  319. package/dist/community/whale-liquidity-and-absorption-profile.d.ts.map +1 -0
  320. package/dist/community/wolfe-scanner.d.ts +75 -0
  321. package/dist/community/wolfe-scanner.d.ts.map +1 -0
  322. package/dist/community/zero-lag-liquidity.d.ts +101 -0
  323. package/dist/community/zero-lag-liquidity.d.ts.map +1 -0
  324. package/dist/community/zone-shift.d.ts +66 -0
  325. package/dist/community/zone-shift.d.ts.map +1 -0
  326. package/dist/index.cjs +79045 -17770
  327. package/dist/index.d.ts +325 -1
  328. package/dist/index.d.ts.map +1 -1
  329. package/dist/index.mjs +80498 -17770
  330. package/dist/render/primitives.d.ts +16 -5
  331. package/dist/render/primitives.d.ts.map +1 -1
  332. package/dist/render/renderer.d.ts.map +1 -1
  333. package/dist/render.mjs +35 -4
  334. package/package.json +2 -2
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  **[Live Demo](https://deepentropy.github.io/lightweight-charts-indicators/)**
4
4
 
5
- 1713 technical analysis indicators for the lightweight-charts library — 117 standard indicators, 1551 community indicators, and 45 candlestick patterns. PineScript v6 compatible with full drawing primitive support (lines, boxes, labels, tables).
5
+ 1869 technical analysis indicators for the lightweight-charts library — 117 standard indicators, 1707 community indicators, and 45 candlestick patterns. PineScript v6 compatible with full drawing primitive support (lines, boxes, labels, tables).
6
6
 
7
7
  ## Installation
8
8
 
@@ -231,7 +231,7 @@ chart.timeScale().subscribeVisibleLogicalRangeChange(range => {
231
231
  });
232
232
  ```
233
233
 
234
- ## Available Indicators (1,713)
234
+ ## Available Indicators (1,869)
235
235
 
236
236
  ### Moving Averages
237
237
 
@@ -391,7 +391,7 @@ chart.timeScale().subscribeVisibleLogicalRangeChange(range => {
391
391
 
392
392
  ### Community Indicators (1,551)
393
393
 
394
- 1551 community indicators ported from PineScript sources, covering trend systems, divergence detectors, multi-MA strategies, volume analysis, market structure, and more. Full list in [docs/INDICATOR_INVENTORY_COMMUNITY.md](docs/INDICATOR_INVENTORY_COMMUNITY.md).
394
+ 1707 community indicators ported from PineScript sources, covering trend systems, divergence detectors, multi-MA strategies, volume analysis, market structure, and more. Full list in [docs/INDICATOR_INVENTORY_COMMUNITY.md](docs/INDICATOR_INVENTORY_COMMUNITY.md).
395
395
 
396
396
  Categories include: Hyper Trend, AlphaTrend, HalfTrend, QQE MOD, Hull Suite, SuperTrend variants, Market Structure Trailing Stop, Liquidity Levels, Order Blocks, ZigZag Fibonacci, Trendlines with Breaks, and many more.
397
397
 
@@ -0,0 +1,78 @@
1
+ /**
2
+ * Activity and Volume Orderflow Profile [AlgoAlpha]
3
+ *
4
+ * A volume profile of the last `Profile Lookback` + 1 bars, drawn on the last bar. The price range of those bars
5
+ * (highest high to lowest low) is cut into `Profile Resolution` rows. A bar adds its volume to every row that its
6
+ * high-low range touches: to the buy volume of the row when it closed above its open, to the sell volume when it
7
+ * closed below. Bars with no lookback history count as na (they add nothing).
8
+ *
9
+ * "Comparison": buy rows grow to the left and sell rows to the right of a vertical axis `Profile Horizontal Offset`
10
+ * + `Profile Horizontal Scale` bars after the last bar; a row is `round(volume) / round(largest row) * scale` bars
11
+ * long (the box x is truncated to a bar). The largest row has the chart foreground colour. "Net Order Flow": one
12
+ * row of `round(sell - buy) / max(round(largest sell), round(largest buy)) * scale` bars from the axis (to the
13
+ * right when sell > buy, else to the left), in the colour of the larger side. Row texts are volumes
14
+ * (`format.volume`).
15
+ *
16
+ * The lookback box spans the lookback bars (highest high to lowest low of `Profile Lookback` bars) and the heatmap
17
+ * paints each row over the lookback with a transparency of 100 - average(buy share, sell share) * 100 + `Minimum
18
+ * Transaprency` (shares of the largest rows; above 100: transparent).
19
+ *
20
+ * The original deletes and draws all boxes again on each bar: only the boxes of the last bar are alive at the end,
21
+ * so the port draws them on the last bar.
22
+ *
23
+ * Chart context: `chart.fg_color` (largest rows, texts, lookback box, heatmap; #DBDBDB, the dark theme value,
24
+ * without a context).
25
+ *
26
+ * Reference: "Activity and Volume Orderflow Profile [AlgoAlpha]" by AlgoAlpha
27
+ * Licence: Mozilla Public License 2.0, as the original Pine script (https://mozilla.org/MPL/2.0/).
28
+ */
29
+ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs';
30
+ import type { StudyDrawingKind } from '../style-outputs';
31
+ import { type ChartContext } from '../chart-context';
32
+ export interface ActivityAndVolumeOrderflowProfileInputs {
33
+ /** Profile Type */
34
+ ptype: 'Comparison' | 'Net Order Flow';
35
+ /** Profile Lookback */
36
+ plook: number;
37
+ /** Profile Resolution */
38
+ res: number;
39
+ /** Profile Horizontal Scale */
40
+ scale: number;
41
+ /** Profile Horizontal Offset */
42
+ off: number;
43
+ /** Show Profile */
44
+ h: boolean;
45
+ /** Show VIsualisation of Lookback Period */
46
+ b: boolean;
47
+ /** Show Heatmap */
48
+ hm: boolean;
49
+ /** Minimum Transaprency */
50
+ mint: number;
51
+ /** Up Color */
52
+ green: string;
53
+ /** Down Color */
54
+ red: string;
55
+ }
56
+ export declare const defaultInputs: ActivityAndVolumeOrderflowProfileInputs;
57
+ export declare const inputConfig: InputConfig[];
58
+ export declare const plotConfig: PlotConfig[];
59
+ export declare const drawingKinds: StudyDrawingKind[];
60
+ export declare const metadata: {
61
+ title: string;
62
+ shortTitle: string;
63
+ overlay: boolean;
64
+ };
65
+ export declare function calculate(bars: Bar[], inputs?: Partial<ActivityAndVolumeOrderflowProfileInputs>, chart?: ChartContext): IndicatorResult;
66
+ export declare const ActivityAndVolumeOrderflowProfile: {
67
+ calculate: typeof calculate;
68
+ metadata: {
69
+ title: string;
70
+ shortTitle: string;
71
+ overlay: boolean;
72
+ };
73
+ defaultInputs: ActivityAndVolumeOrderflowProfileInputs;
74
+ inputConfig: InputConfig[];
75
+ plotConfig: PlotConfig[];
76
+ drawingKinds: StudyDrawingKind[];
77
+ };
78
+ //# sourceMappingURL=activity-and-volume-orderflow-profile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activity-and-volume-orderflow-profile.d.ts","sourceRoot":"","sources":["../../src/community/activity-and-volume-orderflow-profile.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAEL,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,GAAG,EAClE,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAqB,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAExE,MAAM,WAAW,uCAAuC;IACtD,mBAAmB;IACnB,KAAK,EAAE,YAAY,GAAG,gBAAgB,CAAC;IACvC,uBAAuB;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,yBAAyB;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,+BAA+B;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,gCAAgC;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,mBAAmB;IACnB,CAAC,EAAE,OAAO,CAAC;IACX,4CAA4C;IAC5C,CAAC,EAAE,OAAO,CAAC;IACX,mBAAmB;IACnB,EAAE,EAAE,OAAO,CAAC;IACZ,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,eAAe;IACf,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB;IACjB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,aAAa,EAAE,uCAY3B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAAW,EAepC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAAU,EAAO,CAAC;AAE3C,eAAO,MAAM,YAAY,EAAE,gBAAgB,EAAY,CAAC;AAExD,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AAYF,wBAAgB,SAAS,CACvB,IAAI,EAAE,GAAG,EAAE,EACX,MAAM,GAAE,OAAO,CAAC,uCAAuC,CAAM,EAC7D,KAAK,CAAC,EAAE,YAAY,GACnB,eAAe,CA4GjB;AAED,eAAO,MAAM,iCAAiC;;;;;;;;;;;CAE7C,CAAC"}
@@ -0,0 +1,72 @@
1
+ /**
2
+ * Adaptive S/R Zones [BigBeluga]
3
+ *
4
+ * Support and resistance levels from pivots. A pivot high (low) with "Pivot Length" bars on each side becomes a
5
+ * resistance (support) level when it stands at least "Min ATR Strength" x ATR(14) above (below) its two neighbour
6
+ * bars, when no active level of the same type is closer than "Merge Threshold" x ATR, and while fewer than "Max Active
7
+ * Levels Each" levels of that type are active. A level draws a line extended to the right, a zone box of "Zone Width"
8
+ * x ATR around it and a price label. A level older than "Max Level Age" bars is removed. When a close goes beyond the
9
+ * level by "Break Sensitivity" x ATR the level is broken: its line becomes a grey dotted segment up to the break bar,
10
+ * its zone a grey box of the break buffer, a "< Break" label marks the bar, and the last "Max Broken Levels Shown"
11
+ * broken levels stay on the chart. With "Enable Longevity Width" the line of an active level gets thicker with its
12
+ * age (1 to "Max Longevity Width"). A dashboard shows the nearest resistance above and support below the close, the
13
+ * direction of the last break and the number of active levels.
14
+ *
15
+ * Chart context (optional third argument): the symbol tick (`syminfo.mintick`: price texts, and the ATR fallback of
16
+ * 10 ticks on the first bars; without it 0.01) and the chart background colour of the price labels (without it the
17
+ * dark theme colour #0F0F0F).
18
+ *
19
+ * Reference: "Adaptive S/R Zones [BigBeluga]" by BigBeluga
20
+ * Licence: Mozilla Public License 2.0, as the original Pine script (https://mozilla.org/MPL/2.0/).
21
+ * Original notice: © BigBeluga
22
+ */
23
+ import { type Bar, type IndicatorResult, type InputConfig, type PlotConfig } from 'oakscriptjs';
24
+ import type { StudyDrawingKind } from '../style-outputs';
25
+ import { type ChartContext } from '../chart-context';
26
+ export interface AdaptiveSupportAndResistanceZonesInputs {
27
+ pivotLen: number;
28
+ minStrength: number;
29
+ maxAgeBars: number;
30
+ showSupport: boolean;
31
+ showResist: boolean;
32
+ maxLevels: number;
33
+ mergeThresh: number;
34
+ showZones: boolean;
35
+ zoneWidth: number;
36
+ showBroken: boolean;
37
+ breakSens: number;
38
+ showBreakLbl: boolean;
39
+ maxBroken: number;
40
+ supColor: string;
41
+ resColor: string;
42
+ brokenColor: string;
43
+ lineWidth: number;
44
+ useDynamicWidth: boolean;
45
+ maxLineWidth: number;
46
+ showDash: boolean;
47
+ showPriceLbl: boolean;
48
+ dashPos: 'Top Right' | 'Bottom Right' | 'Top Left' | 'Bottom Left';
49
+ }
50
+ export declare const defaultInputs: AdaptiveSupportAndResistanceZonesInputs;
51
+ export declare const inputConfig: InputConfig[];
52
+ export declare const plotConfig: PlotConfig[];
53
+ export declare const drawingKinds: StudyDrawingKind[];
54
+ export declare const metadata: {
55
+ title: string;
56
+ shortTitle: string;
57
+ overlay: boolean;
58
+ };
59
+ export declare function calculate(bars: Bar[], inputs?: Partial<AdaptiveSupportAndResistanceZonesInputs>, chart?: ChartContext): IndicatorResult;
60
+ export declare const AdaptiveSupportAndResistanceZones: {
61
+ calculate: typeof calculate;
62
+ metadata: {
63
+ title: string;
64
+ shortTitle: string;
65
+ overlay: boolean;
66
+ };
67
+ defaultInputs: AdaptiveSupportAndResistanceZonesInputs;
68
+ inputConfig: InputConfig[];
69
+ plotConfig: PlotConfig[];
70
+ drawingKinds: StudyDrawingKind[];
71
+ };
72
+ //# sourceMappingURL=adaptive-support-and-resistance-zones.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adaptive-support-and-resistance-zones.d.ts","sourceRoot":"","sources":["../../src/community/adaptive-support-and-resistance-zones.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAEL,KAAK,GAAG,EAA+C,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAC/G,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAgC,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEnF,MAAM,WAAW,uCAAuC;IACtD,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,WAAW,GAAG,cAAc,GAAG,UAAU,GAAG,aAAa,CAAC;CACpE;AAED,eAAO,MAAM,aAAa,EAAE,uCAuB3B,CAAC;AAOF,eAAO,MAAM,WAAW,EAAE,WAAW,EA4CpC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAAU,EAAO,CAAC;AAE3C,eAAO,MAAM,YAAY,EAAE,gBAAgB,EAAsC,CAAC;AAElF,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AAuBF,wBAAgB,SAAS,CACvB,IAAI,EAAE,GAAG,EAAE,EACX,MAAM,GAAE,OAAO,CAAC,uCAAuC,CAAM,EAC7D,KAAK,CAAC,EAAE,YAAY,GACnB,eAAe,CAmMjB;AAED,eAAO,MAAM,iCAAiC;;;;;;;;;;;CAO7C,CAAC"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * ADR% - Average Daily Range %
3
+ *
4
+ * Average daily range in percent: 100 * (sma(dailyHigh / dailyLow, length) - 1), where the daily high and low come
5
+ * from the daily bars of the chart symbol (security(tickerid, 'D', ...) without lookahead: an intraday bar shows the
6
+ * high and low of the latest completed day, and the sma runs on the chart bars). On a daily chart the daily bars are
7
+ * the chart bars. The daily periods follow the exchange calendar of the chart context (time zone and session, see
8
+ * src/anchor-period.ts); without it the UTC calendar of the bars. A chart timeframe above one day is not ported (the
9
+ * bars do not carry the lower-timeframe data): the port throws an Error.
10
+ *
11
+ * Reference: "ADR% - Average Daily Range % by MikeC (AKA TheScrutiniser)" by TheScrutiniser
12
+ * Licence: Mozilla Public License 2.0, as the original Pine script (https://mozilla.org/MPL/2.0/).
13
+ * Original notice: Original: alpine_trader. Amended 08/12/20 by TheScrutiniser, MikeC on advise from GlinckEastwoot
14
+ */
15
+ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs';
16
+ import type { ChartContext } from '../chart-context';
17
+ export interface AdrAverageDailyRangeByMikecInputs {
18
+ /** sma length */
19
+ length: number;
20
+ }
21
+ export declare const defaultInputs: AdrAverageDailyRangeByMikecInputs;
22
+ export declare const inputConfig: InputConfig[];
23
+ export declare const plotConfig: PlotConfig[];
24
+ export declare const metadata: {
25
+ title: string;
26
+ shortTitle: string;
27
+ overlay: boolean;
28
+ };
29
+ export declare function calculate(bars: Bar[], inputs?: Partial<AdrAverageDailyRangeByMikecInputs>, chart?: ChartContext): IndicatorResult;
30
+ export declare const AdrAverageDailyRangeByMikec: {
31
+ calculate: typeof calculate;
32
+ metadata: {
33
+ title: string;
34
+ shortTitle: string;
35
+ overlay: boolean;
36
+ };
37
+ defaultInputs: AdrAverageDailyRangeByMikecInputs;
38
+ inputConfig: InputConfig[];
39
+ plotConfig: PlotConfig[];
40
+ };
41
+ //# sourceMappingURL=adr-average-daily-range-by-mikec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adr-average-daily-range-by-mikec.d.ts","sourceRoot":"","sources":["../../src/community/adr-average-daily-range-by-mikec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAqC,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,GAAG,EAAE,MAAM,aAAa,CAAC;AAEnI,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,MAAM,WAAW,iCAAiC;IAChD,iBAAiB;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,aAAa,EAAE,iCAE3B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAAW,EAEpC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAAU,EAElC,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AAkBF,wBAAgB,SAAS,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,MAAM,GAAE,OAAO,CAAC,iCAAiC,CAAM,EAAE,KAAK,CAAC,EAAE,YAAY,GAAG,eAAe,CAarI;AAED,eAAO,MAAM,2BAA2B;;;;;;;;;;CAAkE,CAAC"}
@@ -0,0 +1,51 @@
1
+ /**
2
+ * ADX by cobra
3
+ *
4
+ * Directional movement with Wilder sums: the true range, the plus and the minus directional movement are summed
5
+ * with `s = nz(s[1]) - nz(s[1]) / len + x` (the first bar uses 0 for the missing previous close, high and low).
6
+ * DI+ = 100 * smoothed DM+ / smoothed TR, DI- = 100 * smoothed DM- / smoothed TR,
7
+ * DX = 100 * |DI+ - DI-| / (DI+ + DI-) and ADX = sma(DX, len). A dashed horizontal line marks the threshold.
8
+ * Four background layers: lime when DI- > 60, orange when DI+ > 60, green when sma(DI+ > DI-, len1) is not 0 and
9
+ * red when sma(DI- > DI+, len1) is not 0.
10
+ *
11
+ * Colours are those of Pine version 1; version 1 plots have a default transparency of 35.
12
+ *
13
+ * Reference: "ADX by cobra" by binary_trader66
14
+ * Licence: Mozilla Public License 2.0, as the original Pine script (https://mozilla.org/MPL/2.0/).
15
+ */
16
+ import { type BarColorConfig, type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs';
17
+ import type { BgColorData } from '../types';
18
+ export interface AdxByCobraInputs {
19
+ /** Length of the Wilder sums and of the ADX average */
20
+ len: number;
21
+ /** Length of the averages of the DI+ > DI- and DI- > DI+ flags */
22
+ len1: number;
23
+ /** Level of the horizontal line */
24
+ th: number;
25
+ }
26
+ export declare const defaultInputs: AdxByCobraInputs;
27
+ export declare const inputConfig: InputConfig[];
28
+ export declare const plotConfig: PlotConfig[];
29
+ /** The four bgcolor() calls, in declaration order */
30
+ export declare const barColorConfig: BarColorConfig[];
31
+ export declare const metadata: {
32
+ title: string;
33
+ shortTitle: string;
34
+ overlay: boolean;
35
+ };
36
+ export declare function calculate(bars: Bar[], inputs?: Partial<AdxByCobraInputs>): IndicatorResult & {
37
+ bgColors: BgColorData[];
38
+ };
39
+ export declare const AdxByCobra: {
40
+ calculate: typeof calculate;
41
+ metadata: {
42
+ title: string;
43
+ shortTitle: string;
44
+ overlay: boolean;
45
+ };
46
+ defaultInputs: AdxByCobraInputs;
47
+ inputConfig: InputConfig[];
48
+ plotConfig: PlotConfig[];
49
+ barColorConfig: BarColorConfig[];
50
+ };
51
+ //# sourceMappingURL=adx-by-cobra.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adx-by-cobra.d.ts","sourceRoot":"","sources":["../../src/community/adx-by-cobra.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,GAAG,EACvF,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,WAAW,gBAAgB;IAC/B,uDAAuD;IACvD,GAAG,EAAE,MAAM,CAAC;IACZ,kEAAkE;IAClE,IAAI,EAAE,MAAM,CAAC;IACb,mCAAmC;IACnC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,eAAO,MAAM,aAAa,EAAE,gBAI3B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAAW,EAIpC,CAAC;AAQF,eAAO,MAAM,UAAU,EAAE,UAAU,EAIlC,CAAC;AAEF,qDAAqD;AACrD,eAAO,MAAM,cAAc,EAAE,cAAc,EAExC,CAAC;AAEJ,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AAYF,wBAAgB,SAAS,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,MAAM,GAAE,OAAO,CAAC,gBAAgB,CAAM,GAAG,eAAe,GAAG;IAAE,QAAQ,EAAE,WAAW,EAAE,CAAA;CAAE,CAyD5H;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;CAOtB,CAAC"}
@@ -0,0 +1,92 @@
1
+ /**
2
+ * AI Moving Average (Expo)
3
+ *
4
+ * Two k-nearest-neighbours (KNN) moving averages.
5
+ * - AI(1): a moving average 'Select MA' of 'Data For Moving Average'. Its last 'DataPoints' values (at least
6
+ * 'Neighbors') are labelled 1 when the classified source is above the average and the average rises, else 0. The
7
+ * current average is classified by the labels of its 'Neighbors' nearest past values (weights 1 / (distance +
8
+ * 1e-6)): 1 bullish (lime), 0 bearish (red), between them neutral (blue). Three plots of the average, one per
9
+ * class colour.
10
+ * - Box slope: a least squares line of the average since the last switch to bullish or bearish, drawn on each bar
11
+ * (lime when its slope is positive, else red).
12
+ * - On each switch to bullish or bearish a box (high / low range of the switch bar and the 20 bars before it, then
13
+ * extended with each bar) and a dotted mid line. 'Remove All Boxes' / 'Remove All Line' (on by default) delete
14
+ * them on every bar, 'Remove Historical Boxes' deletes the box before when a new one starts.
15
+ * - AI(2): sma(close, 'Smoothing Period'); mean of the 'Number of Closest Values' values, among the last 30 or more
16
+ * bars (current bar not included), nearest to that average: of the close (Moving Average 1) and of the average
17
+ * itself (Moving Average 2), smoothed by wma(5). While the average is na the mean is 0, as the original.
18
+ *
19
+ * The 'Line Width' input is the width of the mid lines.
20
+ *
21
+ * Reference: "AI Moving Average (Expo)" by Zeiierman
22
+ * Licence: Mozilla Public License 2.0, as the original Pine script (https://mozilla.org/MPL/2.0/).
23
+ */
24
+ import { type Bar, type IndicatorResult, type InputConfig, type PlotConfig, type SourceType } from 'oakscriptjs';
25
+ import type { BoxData, LineDrawingData } from '../types';
26
+ import type { StudyDrawingKind } from '../style-outputs';
27
+ export interface AiMovingAverageInputs {
28
+ /** Show AI(1) Moving Average */
29
+ aiMa: boolean;
30
+ /** Show AI(1) Slope */
31
+ aiSlope: boolean;
32
+ /** Select MA */
33
+ maType: 'SMA' | 'EMA' | 'WMA' | 'RMA' | 'HMA' | 'VWMA';
34
+ /** Moving average length */
35
+ length: number;
36
+ /** Neighbors */
37
+ k: number;
38
+ /** DataPoints */
39
+ n: number;
40
+ /** Show AI(2) Moving Average 1 */
41
+ aiMa2: boolean;
42
+ /** Show AI(2) Moving Average 2 */
43
+ aiMa3: boolean;
44
+ /** Number of Closest Values */
45
+ numberOfClosestValues: number;
46
+ /** Smoothing Period */
47
+ smoothingPeriod: number;
48
+ /** Data To Classify */
49
+ dataToClassify: SourceType;
50
+ /** Data For Moving Average (DataForComparison) */
51
+ dataForMovingAverage: SourceType;
52
+ /** Bearish box colour */
53
+ negBoxCol: string;
54
+ /** Bullish box colour */
55
+ posBoxCol: string;
56
+ /** Mid line colour */
57
+ lineCol: string;
58
+ /** Mid line width */
59
+ lineWidth: number;
60
+ /** Remove Historical Boxes */
61
+ del: boolean;
62
+ /** Remove All Boxes */
63
+ delBoxes: boolean;
64
+ /** Remove All Line */
65
+ delLine: boolean;
66
+ }
67
+ export declare const defaultInputs: AiMovingAverageInputs;
68
+ export declare const inputConfig: InputConfig[];
69
+ export declare const plotConfig: PlotConfig[];
70
+ export declare const drawingKinds: StudyDrawingKind[];
71
+ export declare const metadata: {
72
+ title: string;
73
+ shortTitle: string;
74
+ overlay: boolean;
75
+ };
76
+ export declare function calculate(bars: Bar[], inputs?: Partial<AiMovingAverageInputs>): IndicatorResult & {
77
+ boxes: BoxData[];
78
+ lines: LineDrawingData[];
79
+ };
80
+ export declare const AiMovingAverage: {
81
+ calculate: typeof calculate;
82
+ metadata: {
83
+ title: string;
84
+ shortTitle: string;
85
+ overlay: boolean;
86
+ };
87
+ defaultInputs: AiMovingAverageInputs;
88
+ inputConfig: InputConfig[];
89
+ plotConfig: PlotConfig[];
90
+ drawingKinds: StudyDrawingKind[];
91
+ };
92
+ //# sourceMappingURL=ai-moving-average.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"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AAE,OAAO,CAAC;IAClB,sBAAsB;IACtB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,aAAa,EAAE,qBAoB3B,CAAC;AAcF,eAAO,MAAM,WAAW,EAAE,WAAW,EAwBpC,CAAC;AAQF,eAAO,MAAM,UAAU,EAAE,UAAU,EAOlC,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,gBAAgB,EAAoB,CAAC;AAEhE,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AAWF,wBAAgB,SAAS,CACvB,IAAI,EAAE,GAAG,EAAE,EACX,MAAM,GAAE,OAAO,CAAC,qBAAqB,CAAM,GAC1C,eAAe,GAAG;IAAE,KAAK,EAAE,OAAO,EAAE,CAAC;IAAC,KAAK,EAAE,eAAe,EAAE,CAAA;CAAE,CAwMlE;AAED,eAAO,MAAM,eAAe;;;;;;;;;;;CAO3B,CAAC"}
@@ -0,0 +1,127 @@
1
+ /**
2
+ * Algo Market Structure (Nephew_Sam_)
3
+ *
4
+ * Market structure of the chart timeframe (or of a higher "Timeframe 1", read with lookahead as the original does).
5
+ * On each new bar of that timeframe, the count of bars since its last bullish (bearish) candle drives the structure:
6
+ * the highest high (lowest low) between the last structure point and the last candle of the other colour becomes a
7
+ * new structure high (low) when it passes the previous one, or replaces the last one while the move goes on. Each
8
+ * point gets a circle label and an "HH" / "LH" / "HL" / "LL" label; a new high also adds the lowest low between the
9
+ * two last highs as a structure low (and the reverse). A valid higher high (lower low) draws:
10
+ * - ILQ: a line at the last structure low (high), deleted when the price passes it
11
+ * - TLQ: a line at the lower of the two last lows (higher of the two last highs); when the price breaks it the
12
+ * structure turns bearish (bullish) and a "BOS" line and label stay at the break; a close beyond a TLQ line also
13
+ * sets the structure direction
14
+ * - EPA: a dashed line at the previous high (low); price efficiency is reached when the price comes back to it
15
+ * - Extreme: a box from the body to the wick of the candle of the TLQ point, deleted when the price passes it
16
+ * All of these reach 7 bars after the current bar. Valid trading range boxes (VTA) appear when the close leaves the
17
+ * range of the last high and low after a HH-LL-HH (LL-HH-LL) sequence (Strict: four points) and are deleted when the
18
+ * timeframe close passes them. MSU arrows (bottom of the pane) mark a bar that reaches back into the last swing, the
19
+ * candles take the colours of the structure direction, a table (last bar) shows the timeframe, the direction, the
20
+ * efficiency, the MSU and the VTA state. The x crosses of the 3-swing patterns are drawn only when the last separator
21
+ * switch of the "Timeframe 1" group ("Change bar colors" line) is on, as in the original.
22
+ *
23
+ * Chart values (optional third argument of calculate): the chart timeframe (table text, bar duration of the 7-bar
24
+ * projection) and, for a higher Timeframe 1, the exchange time zone and session (its periods). A Timeframe 1 below
25
+ * the chart timeframe turns the structure off, as in the original.
26
+ *
27
+ * Reference: "Algo Market Structure (Nephew_Sam_)" by nephew_sam_
28
+ * Licence: Mozilla Public License 2.0, as the original Pine script (https://mozilla.org/MPL/2.0/).
29
+ */
30
+ import { type Bar, type IndicatorResult, type InputConfig, type PlotConfig, type ShapeConfig } from 'oakscriptjs';
31
+ import type { MarkerData, PlotCandleData } from '../types';
32
+ import type { ChartContext } from '../chart-context';
33
+ import type { StudyDrawingKind } from '../style-outputs';
34
+ export interface AlgoMarketStructureInputs {
35
+ tf1_useStructure: boolean;
36
+ tf1_timeframe: string;
37
+ tf1_min: string;
38
+ tf1_div1: boolean;
39
+ tf1_structureTopColor: string;
40
+ tf1_structureBottomColor: string;
41
+ tf1_structurelabelSize: string;
42
+ tf1_showHhll: boolean;
43
+ tf1_hhllBullColor: string;
44
+ tf1_hhllBearColor: string;
45
+ tf1_hhllLabelSize: string;
46
+ tf1_div2: boolean;
47
+ tf1_showIlq: boolean;
48
+ tf1_ilqText: string;
49
+ tf1_ilqStyle: string;
50
+ tf1_ilqWidth: number;
51
+ tf1_ilqCol: string;
52
+ tf1_div3: boolean;
53
+ tf1_showTlq: boolean;
54
+ tf1_tlqText: string;
55
+ tf1_showBos: boolean;
56
+ tf1_tlqStyle: string;
57
+ tf1_tlqWidth: number;
58
+ tf1_tlqCol: string;
59
+ tf1_div4: boolean;
60
+ tf1_showEpa: boolean;
61
+ tf1_epaText: string;
62
+ tf1_epaDelete: boolean;
63
+ tf1_epaStyle: string;
64
+ tf1_epaWidth: number;
65
+ tf1_epaCol: string;
66
+ tf1_div5: boolean;
67
+ tf1_showMsu: boolean;
68
+ tf1_div6: boolean;
69
+ tf1_showExtreme: boolean;
70
+ tf1_extremeText: string;
71
+ tf1_extremeCol: string;
72
+ tf1_div7: boolean;
73
+ tf1_showVta: boolean;
74
+ tf1_strictVta: boolean;
75
+ tf1_vtaText: string;
76
+ tf1_vtaTopCol: string;
77
+ tf1_vtaBottomCol: string;
78
+ tf1_deleteVta: boolean;
79
+ /** Separator switch; also turns on the pattern crosses (as in the original) */
80
+ tf1_div8: boolean;
81
+ tf1_changeBarCol: boolean;
82
+ tf1_bullishBullBarCol: string;
83
+ tf1_bullishBearBarCol: string;
84
+ tf1_bearishBullBarCol: string;
85
+ tf1_bearishBearBarCol: string;
86
+ structure_show_table: boolean;
87
+ structure_table_vertical: string;
88
+ structure_table_horizontal: string;
89
+ /** Indicator Start Date (UNIX ms) */
90
+ indicator_start_time: number;
91
+ }
92
+ export declare const defaultInputs: AlgoMarketStructureInputs;
93
+ export declare const inputConfig: InputConfig[];
94
+ export declare const plotConfig: PlotConfig[];
95
+ export declare const shapeConfig: ShapeConfig[];
96
+ export declare const plotCandleConfig: {
97
+ id: string;
98
+ title: string;
99
+ }[];
100
+ export declare const drawingKinds: StudyDrawingKind[];
101
+ export declare const metadata: {
102
+ title: string;
103
+ shortTitle: string;
104
+ overlay: boolean;
105
+ };
106
+ export declare function calculate(bars: Bar[], inputs?: Partial<AlgoMarketStructureInputs>, chart?: ChartContext): IndicatorResult & {
107
+ markers: MarkerData[];
108
+ plotCandles: Record<string, PlotCandleData[]>;
109
+ };
110
+ export declare const AlgoMarketStructure: {
111
+ calculate: typeof calculate;
112
+ metadata: {
113
+ title: string;
114
+ shortTitle: string;
115
+ overlay: boolean;
116
+ };
117
+ defaultInputs: AlgoMarketStructureInputs;
118
+ inputConfig: InputConfig[];
119
+ plotConfig: PlotConfig[];
120
+ shapeConfig: ShapeConfig[];
121
+ plotCandleConfig: {
122
+ id: string;
123
+ title: string;
124
+ }[];
125
+ drawingKinds: StudyDrawingKind[];
126
+ };
127
+ //# sourceMappingURL=algo-market-structure.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"algo-market-structure.d.ts","sourceRoot":"","sources":["../../src/community/algo-market-structure.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EAEL,KAAK,GAAG,EAAY,KAAK,eAAe,EAAE,KAAK,WAAW,EAAyB,KAAK,UAAU,EAAE,KAAK,WAAW,EACrH,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,MAAM,WAAW,yBAAyB;IACxC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,wBAAwB,EAAE,MAAM,CAAC;IACjC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,YAAY,EAAE,OAAO,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,QAA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AO,MAAM,WAAW,EAAE,WAAW,EA6DpC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAAU,EAAO,CAAC;AAS3C,eAAO,MAAM,WAAW,EAAE,WAAW,EAKpC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;GAAsC,CAAC;AAEpE,eAAO,MAAM,YAAY,EAAE,gBAAgB,EAAsC,CAAC;AAElF,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AA6BF,wBAAgB,SAAS,CACvB,IAAI,EAAE,GAAG,EAAE,EACX,MAAM,GAAE,OAAO,CAAC,yBAAyB,CAAM,EAC/C,KAAK,CAAC,EAAE,YAAY,GACnB,eAAe,GAAG;IAAE,OAAO,EAAE,UAAU,EAAE,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,EAAE,CAAC,CAAA;CAAE,CA6lB5F;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;CAE/B,CAAC"}
@@ -0,0 +1,87 @@
1
+ /**
2
+ * All-In-One Sessions, Weekly, Monday, Previous Highs/Lows
3
+ *
4
+ * Key levels drawn on the last bar, from `request.security` of the chart symbol (lookahead off):
5
+ * - Monday high / low: each Monday among the last 7 daily bars (day of the week in the exchange time zone), from the
6
+ * Monday to the Monday plus (day of the week of the current time - 1) days;
7
+ * - previous day high / low (daily bar [1], two days long), current and previous week high / low (weekly bars [0] /
8
+ * [1]), current and previous month high / low (monthly bars [0] / [1]), current week and month open;
9
+ * each with an optional 50 % line, a label (abbreviated or full text, 0.01 % above the level, right aligned), an
10
+ * offset of the end in chart bars, a width, a style and an "Extend?" option. The lines use bar times.
11
+ * Sessions (Asia 22:00-07:00, London 08:00-17:00, New York 13:00-21:00 in the "Timezone" input): a box from the
12
+ * session start that follows the session high / low (`ta.highest` / `ta.lowest` back to the bar before the last
13
+ * session start), as long as the previous session, cut at the session end; with "Show Open?" a line and an "O"
14
+ * label at the session open. Without "History?" each new session deletes the boxes of the one before. Six custom
15
+ * levels (high / low / open of a time range on chosen week days) draw a line and a label the same way.
16
+ * The crossing alerts are `ta.cross` calls inside the last-bar block: they run once and are never true.
17
+ *
18
+ * Notes on the port:
19
+ * - The higher timeframe bars are built from the chart bars with the exchange calendar of the chart context. On a
20
+ * live last bar (`lastBarConfirmed` false) they include the developing bar, else the last completed one, as the
21
+ * original. A weekly or monthly chart (daily values from a lower timeframe) throws an Error.
22
+ * - `syminfo.timezone` and `timenow` come from the chart context (UTC and the computer clock without it).
23
+ * - The original also requests 97 bars of 15-minute highs / lows and never uses them: not ported.
24
+ *
25
+ * Reference: "All-In-One Sessions, Weekly, Monday, Previous Highs/Lows" by Texmoonbeam
26
+ * Licence: Mozilla Public License 2.0, as the original Pine script (https://mozilla.org/MPL/2.0/).
27
+ * Original notice: © Texmoonbeam
28
+ */
29
+ import { type Bar, type IndicatorResult, type InputConfig, type PlotConfig } from 'oakscriptjs';
30
+ import { type ChartContext } from '../chart-context';
31
+ import { type AlertConditionDecl, type AlertConditionState } from '../alert-states';
32
+ import type { StudyDrawingKind } from '../style-outputs';
33
+ type LineStyleOption = 'sol' | 'dot' | 'dsh';
34
+ type SizeOption = 'tiny' | 'small' | 'normal' | 'large' | 'huge';
35
+ type LevelType = 'high' | 'low' | 'open';
36
+ /** Inputs of one high / low level group (Show, Extend, Label, 50 %, colours, width, offset, style) */
37
+ type LevelInputs<S extends string, C extends string> = Record<`Show${S}` | `Extend${S}` | `Label${S}` | `Mid${S}`, boolean> & Record<`${C}HighCol` | `${C}LowCol` | `${C}MidCol`, string> & Record<`${C}Width` | `${C}Off`, number> & Record<`${C}Style`, LineStyleOption>;
38
+ /** Inputs of one open level (week or month) */
39
+ type OpenInputs<S extends string> = Record<`Show${S}` | `Extend${S}` | `Label${S}`, boolean> & Record<`${S}Col`, string> & Record<`${S}Width`, number> & Record<`${S}Style`, LineStyleOption>;
40
+ /** Inputs of one session */
41
+ type SessionInputs<S extends string> = Record<`Show${S}` | `Extend${S}` | `${S}Open`, boolean> & Record<`${S}OpenCol` | `${S}Session` | `${S}Col`, string>;
42
+ /** Inputs of one custom level */
43
+ type CustomInputs<K extends number> = Record<`Custom${K}` | `ExtendCustom${K}` | `Custom${K}History`, boolean> & Record<`Custom${K}Label` | `Custom${K}Time` | `Custom${K}Days` | `Custom${K}Col`, string> & Record<`Custom${K}Type`, LevelType> & Record<`Custom${K}Style`, LineStyleOption>;
44
+ export interface AllInOneSessionsInputs extends LevelInputs<'Monday', 'Mon'>, LevelInputs<'PrevDay', 'PrevDay'>, LevelInputs<'CurWeek', 'CurWeek'>, LevelInputs<'PrevWeek', 'PrevWeek'>, LevelInputs<'CurMth', 'CurMth'>, LevelInputs<'PrevMth', 'PrevMth'>, OpenInputs<'WeekOpen'>, OpenInputs<'MthOpen'>, SessionInputs<'Asia'>, SessionInputs<'Lon'>, SessionInputs<'NY'>, CustomInputs<1>, CustomInputs<2>, CustomInputs<3>, CustomInputs<4>, CustomInputs<5>, CustomInputs<6> {
45
+ /** Abbreviate the label texts */
46
+ abr: boolean;
47
+ /** Label size */
48
+ labelsz: SizeOption;
49
+ /** Time zone of the sessions and custom levels */
50
+ zone: string;
51
+ /** Keep the boxes of earlier sessions */
52
+ i_show_history: boolean;
53
+ /** Line style of the session boxes and lines */
54
+ i_sess_border_style: LineStyleOption;
55
+ /** Line width of the session boxes and lines */
56
+ i_sess_border_width: number;
57
+ /** Transparency of the session backgrounds */
58
+ i_sess_bgopacity: number;
59
+ }
60
+ export declare const defaultInputs: AllInOneSessionsInputs;
61
+ export declare const inputConfig: InputConfig[];
62
+ export declare const plotConfig: PlotConfig[];
63
+ export declare const drawingKinds: StudyDrawingKind[];
64
+ export declare const alertConditions: AlertConditionDecl[];
65
+ export declare const metadata: {
66
+ title: string;
67
+ shortTitle: string;
68
+ overlay: boolean;
69
+ };
70
+ export declare function calculate(bars: Bar[], inputs?: Partial<AllInOneSessionsInputs>, chart?: ChartContext): IndicatorResult & {
71
+ alerts: AlertConditionState[];
72
+ };
73
+ export declare const AllInOneSessions: {
74
+ calculate: typeof calculate;
75
+ metadata: {
76
+ title: string;
77
+ shortTitle: string;
78
+ overlay: boolean;
79
+ };
80
+ defaultInputs: AllInOneSessionsInputs;
81
+ inputConfig: InputConfig[];
82
+ plotConfig: PlotConfig[];
83
+ drawingKinds: StudyDrawingKind[];
84
+ alertConditions: AlertConditionDecl[];
85
+ };
86
+ export {};
87
+ //# sourceMappingURL=all-in-one-sessions-weekly-monday-previous.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"all-in-one-sessions-weekly-monday-previous.d.ts","sourceRoot":"","sources":["../../src/community/all-in-one-sessions-weekly-monday-previous.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAGL,KAAK,GAAG,EAAY,KAAK,eAAe,EAAE,KAAK,WAAW,EAAyB,KAAK,UAAU,EACnG,MAAM,aAAa,CAAC;AACrB,OAAO,EAAyC,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAE5F,OAAO,EAAe,KAAK,kBAAkB,EAAE,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACjG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,KAAK,eAAe,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AAC7C,KAAK,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AACjE,KAAK,SAAS,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;AAEzC,sGAAsG;AACtG,KAAK,WAAW,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,IACjD,MAAM,CAAC,OAAO,CAAC,EAAE,GAAG,SAAS,CAAC,EAAE,GAAG,QAAQ,CAAC,EAAE,GAAG,MAAM,CAAC,EAAE,EAAE,OAAO,CAAC,GAClE,MAAM,CAAC,GAAG,CAAC,SAAS,GAAG,GAAG,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