lightweight-charts-indicators 0.16.2 → 0.16.4
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.
- package/dist/alert-states.d.ts +24 -0
- package/dist/alert-states.d.ts.map +1 -0
- package/dist/community/actually-engulfing-candlesticks.d.ts +7 -1
- package/dist/community/actually-engulfing-candlesticks.d.ts.map +1 -1
- package/dist/community/al-brooks-ii-ioi-oo.d.ts +9 -0
- package/dist/community/al-brooks-ii-ioi-oo.d.ts.map +1 -1
- package/dist/community/auto-avwap-with-breakout-screener.d.ts +9 -1
- package/dist/community/auto-avwap-with-breakout-screener.d.ts.map +1 -1
- package/dist/community/auto-fib-channels-by-dgt.d.ts +12 -3
- package/dist/community/auto-fib-channels-by-dgt.d.ts.map +1 -1
- package/dist/community/auto-fib-speed-resistance-fans-by-dgt.d.ts +10 -3
- package/dist/community/auto-fib-speed-resistance-fans-by-dgt.d.ts.map +1 -1
- package/dist/community/auto-pitchfan-fib-extension-retracement-and.d.ts +11 -2
- package/dist/community/auto-pitchfan-fib-extension-retracement-and.d.ts.map +1 -1
- package/dist/community/auto-pitchfork-fib-retracement-zig-zag.d.ts +13 -2
- package/dist/community/auto-pitchfork-fib-retracement-zig-zag.d.ts.map +1 -1
- package/dist/community/bjorgum-key-levels.d.ts +19 -4
- package/dist/community/bjorgum-key-levels.d.ts.map +1 -1
- package/dist/community/buy-sell-accurate-signals.d.ts +12 -2
- package/dist/community/buy-sell-accurate-signals.d.ts.map +1 -1
- package/dist/community/dead-simple-reversal.d.ts +7 -0
- package/dist/community/dead-simple-reversal.d.ts.map +1 -1
- package/dist/community/dynamic-fractal-flow.d.ts +10 -1
- package/dist/community/dynamic-fractal-flow.d.ts.map +1 -1
- package/dist/community/erema-signals.d.ts +9 -2
- package/dist/community/erema-signals.d.ts.map +1 -1
- package/dist/community/fibonacci-extension-retracement-pivot-points.d.ts +20 -2
- package/dist/community/fibonacci-extension-retracement-pivot-points.d.ts.map +1 -1
- package/dist/community/heikin-ashi-doji-with-high-volume.d.ts +8 -1
- package/dist/community/heikin-ashi-doji-with-high-volume.d.ts.map +1 -1
- package/dist/community/inside-bar-coloring-w-alerts.d.ts +9 -2
- package/dist/community/inside-bar-coloring-w-alerts.d.ts.map +1 -1
- package/dist/community/inside-bar-ind-alert.d.ts +9 -0
- package/dist/community/inside-bar-ind-alert.d.ts.map +1 -1
- package/dist/community/john-wick-doji-indicator.d.ts +13 -1
- package/dist/community/john-wick-doji-indicator.d.ts.map +1 -1
- package/dist/community/jopa-channel-v1.d.ts +11 -1
- package/dist/community/jopa-channel-v1.d.ts.map +1 -1
- package/dist/community/linear-regression-channel-curve-slope-by-dgt.d.ts +19 -2
- package/dist/community/linear-regression-channel-curve-slope-by-dgt.d.ts.map +1 -1
- package/dist/community/order-blocks-w-realtime-fibs.d.ts +10 -2
- package/dist/community/order-blocks-w-realtime-fibs.d.ts.map +1 -1
- package/dist/community/perfect-hammer-pattern-indicators-and-alerts.d.ts +8 -0
- package/dist/community/perfect-hammer-pattern-indicators-and-alerts.d.ts.map +1 -1
- package/dist/community/price-flow-buy-sell.d.ts +8 -1
- package/dist/community/price-flow-buy-sell.d.ts.map +1 -1
- package/dist/community/pulse-range.d.ts +9 -1
- package/dist/community/pulse-range.d.ts.map +1 -1
- package/dist/community/renko-moving-average-rmi-alert-r3-by.d.ts +10 -1
- package/dist/community/renko-moving-average-rmi-alert-r3-by.d.ts.map +1 -1
- package/dist/community/rsi-ma-cross-divergence-signal.d.ts +8 -0
- package/dist/community/rsi-ma-cross-divergence-signal.d.ts.map +1 -1
- package/dist/community/scalping-pullback-tool.d.ts +11 -2
- package/dist/community/scalping-pullback-tool.d.ts.map +1 -1
- package/dist/community/scalping-swing-trading-tool-r1-4-by-justunclel.d.ts +8 -0
- package/dist/community/scalping-swing-trading-tool-r1-4-by-justunclel.d.ts.map +1 -1
- package/dist/community/strong-engulfing-candlestick.d.ts +9 -0
- package/dist/community/strong-engulfing-candlestick.d.ts.map +1 -1
- package/dist/community/sweep-engulf-2-candle.d.ts +14 -2
- package/dist/community/sweep-engulf-2-candle.d.ts.map +1 -1
- package/dist/community/three-bar-reversal-continuation.d.ts +8 -1
- package/dist/community/three-bar-reversal-continuation.d.ts.map +1 -1
- package/dist/community/trend-scalper.d.ts +8 -0
- package/dist/community/trend-scalper.d.ts.map +1 -1
- package/dist/community/triple-doji-sequence.d.ts +11 -2
- package/dist/community/triple-doji-sequence.d.ts.map +1 -1
- package/dist/community/volume-alert.d.ts +7 -0
- package/dist/community/volume-alert.d.ts.map +1 -1
- package/dist/community/zigzag-trend-divergence-detector.d.ts +12 -2
- package/dist/community/zigzag-trend-divergence-detector.d.ts.map +1 -1
- package/dist/helpers.d.ts +2 -1
- package/dist/helpers.d.ts.map +1 -1
- package/dist/helpers.mjs +33 -0
- package/dist/index.cjs +18268 -15691
- package/dist/index.d.ts +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +9526 -6943
- package/dist/sources.mjs +1 -1
- package/dist/standard/awesome-oscillator.d.ts +7 -1
- package/dist/standard/awesome-oscillator.d.ts.map +1 -1
- package/dist/standard/gaps.d.ts +6 -0
- package/dist/standard/gaps.d.ts.map +1 -1
- package/dist/standard/linreg-channel.d.ts +9 -0
- package/dist/standard/linreg-channel.d.ts.map +1 -1
- package/dist/standard/macd.d.ts +7 -1
- package/dist/standard/macd.d.ts.map +1 -1
- package/dist/standard/rsi-divergence-indicator.d.ts +5 -0
- package/dist/standard/rsi-divergence-indicator.d.ts.map +1 -1
- package/dist/standard/rsi.d.ts +5 -0
- package/dist/standard/rsi.d.ts.map +1 -1
- package/dist/standard/supertrend.d.ts +7 -1
- package/dist/standard/supertrend.d.ts.map +1 -1
- package/dist/standard/technicals.d.ts +5 -0
- package/dist/standard/technicals.d.ts.map +1 -1
- package/dist/style-apply.d.ts +4 -0
- package/dist/style-apply.d.ts.map +1 -1
- package/dist/style-outputs-community.d.ts +8 -0
- package/dist/style-outputs-community.d.ts.map +1 -0
- package/dist/style-outputs.d.ts +15 -1
- package/dist/style-outputs.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -9,12 +9,17 @@
|
|
|
9
9
|
* max(0.2, efficiency ratio / noise threshold). Bollinger bands of the signal, a gradient line and fill to zero,
|
|
10
10
|
* and a background coloured by the trend state (signal against the threshold and the EMA of its change).
|
|
11
11
|
*
|
|
12
|
+
* Alerts (alertcondition, `alerts` of the result): "DFF Bullish Signal" / "DFF Bearish Signal" (acceleration, band
|
|
13
|
+
* entry or threshold cross of the signal) and "DFF Bullish Acceleration" / "DFF Bearish Acceleration" (EMA of the
|
|
14
|
+
* change of the momentum and of its change both of one sign against the signal), outside band squeezes.
|
|
15
|
+
*
|
|
12
16
|
* Reference: "Dynamic Fractal Flow [Alpha Extract]" by AlphaExtract
|
|
13
17
|
* Licence: Mozilla Public License 2.0, as the original Pine script (https://mozilla.org/MPL/2.0/).
|
|
14
18
|
* Original notice: © YourName - Dynamic Fractal Flow
|
|
15
19
|
*/
|
|
16
20
|
import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs';
|
|
17
21
|
import type { BgColorData } from '../types';
|
|
22
|
+
import { type AlertConditionDecl, type AlertConditionState } from '../alert-states';
|
|
18
23
|
export interface DynamicFractalFlowInputs {
|
|
19
24
|
/** Fractal length: the fractal window is 2 * floor(fractalLength / 2) + 1 bars */
|
|
20
25
|
fractalLength: number;
|
|
@@ -36,7 +41,7 @@ export interface DynamicFractalFlowInputs {
|
|
|
36
41
|
signalThreshold: number;
|
|
37
42
|
useNoiseFilter: boolean;
|
|
38
43
|
noiseThreshold: number;
|
|
39
|
-
/**
|
|
44
|
+
/** Acceleration signals of the alert conditions: no effect on the plots */
|
|
40
45
|
useAcceleration: boolean;
|
|
41
46
|
}
|
|
42
47
|
export declare const defaultInputs: DynamicFractalFlowInputs;
|
|
@@ -49,7 +54,10 @@ export declare const metadata: {
|
|
|
49
54
|
};
|
|
50
55
|
export declare function calculate(bars: Bar[], inputs?: Partial<DynamicFractalFlowInputs>): IndicatorResult & {
|
|
51
56
|
bgColors: BgColorData[];
|
|
57
|
+
alerts: AlertConditionState[];
|
|
52
58
|
};
|
|
59
|
+
/** The original's alertconditions */
|
|
60
|
+
export declare const alertConditions: AlertConditionDecl[];
|
|
53
61
|
export declare const DynamicFractalFlow: {
|
|
54
62
|
calculate: typeof calculate;
|
|
55
63
|
metadata: {
|
|
@@ -60,5 +68,6 @@ export declare const DynamicFractalFlow: {
|
|
|
60
68
|
defaultInputs: DynamicFractalFlowInputs;
|
|
61
69
|
inputConfig: InputConfig[];
|
|
62
70
|
plotConfig: PlotConfig[];
|
|
71
|
+
alertConditions: AlertConditionDecl[];
|
|
63
72
|
};
|
|
64
73
|
//# sourceMappingURL=dynamic-fractal-flow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic-fractal-flow.d.ts","sourceRoot":"","sources":["../../src/community/dynamic-fractal-flow.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"dynamic-fractal-flow.d.ts","sourceRoot":"","sources":["../../src/community/dynamic-fractal-flow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EACsC,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,GAAG,EAC7G,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAA0C,KAAK,kBAAkB,EAAE,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAE5H,MAAM,WAAW,wBAAwB;IACvC,kFAAkF;IAClF,aAAa,EAAE,MAAM,CAAC;IACtB,yCAAyC;IACzC,WAAW,EAAE,MAAM,CAAC;IACpB,wCAAwC;IACxC,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,YAAY,EAAE,MAAM,CAAC;IACrB,0BAA0B;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,iEAAiE;IACjE,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,uEAAuE;IACvE,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,2EAA2E;IAC3E,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,aAAa,EAAE,wBAe3B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAAW,EAepC,CAAC;AAMF,eAAO,MAAM,UAAU,EAAE,UAAU,EASlC,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AAQF,wBAAgB,SAAS,CACvB,IAAI,EAAE,GAAG,EAAE,EACX,MAAM,GAAE,OAAO,CAAC,wBAAwB,CAAM,GAC7C,eAAe,GAAG;IAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;IAAC,MAAM,EAAE,mBAAmB,EAAE,CAAA;CAAE,CAwK9E;AAED,qCAAqC;AACrC,eAAO,MAAM,eAAe,EAAE,kBAAkB,EAK/C,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;CAO9B,CAAC"}
|
|
@@ -6,12 +6,17 @@
|
|
|
6
6
|
* average (SMA / EMA / WMA / VWMA) of it is the signal line. Buy / sell triangles and a light background mark the
|
|
7
7
|
* crosses of the Reverse EMA with zero, with its MA, or both (from bar 82).
|
|
8
8
|
*
|
|
9
|
+
* Alerts (alert() calls, `alertCalls` of the result, once per bar) when "Enable Alerts" is on:
|
|
10
|
+
* "Ehlers Reverse EMA: Buy Signal" on a buy triangle and "Ehlers Reverse EMA: Sell Signal" on a sell triangle.
|
|
11
|
+
*
|
|
9
12
|
* Reference: "EREMA Signals" by AlgoCollective
|
|
10
13
|
* Licence: Mozilla Public License 2.0, as the original Pine script (https://mozilla.org/MPL/2.0/).
|
|
11
14
|
* Original notice: © AlgoCollective
|
|
12
15
|
*/
|
|
13
16
|
import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs';
|
|
14
|
-
import type { MarkerData, BgColorData } from '../types';
|
|
17
|
+
import type { AlertCall, MarkerData, BgColorData } from '../types';
|
|
18
|
+
/** The original makes alert() calls */
|
|
19
|
+
export declare const hasAlertFunction = true;
|
|
15
20
|
export interface EremaSignalsInputs {
|
|
16
21
|
/** EMA alpha */
|
|
17
22
|
alpha: number;
|
|
@@ -23,7 +28,7 @@ export interface EremaSignalsInputs {
|
|
|
23
28
|
signalType: 'Zero Cross' | 'MA Cross' | 'Zero & MA Cross';
|
|
24
29
|
/** No effect on the outputs (the Pine plotshape calls use size.normal) */
|
|
25
30
|
signalSize: 'Small' | 'Normal' | 'Large';
|
|
26
|
-
/**
|
|
31
|
+
/** The alert() calls are made (`alertCalls`); no effect on the other outputs */
|
|
27
32
|
alertsOn: boolean;
|
|
28
33
|
}
|
|
29
34
|
export declare const defaultInputs: EremaSignalsInputs;
|
|
@@ -37,6 +42,7 @@ export declare const metadata: {
|
|
|
37
42
|
export declare function calculate(bars: Bar[], inputs?: Partial<EremaSignalsInputs>): Omit<IndicatorResult, 'markers'> & {
|
|
38
43
|
markers: MarkerData[];
|
|
39
44
|
bgColors: BgColorData[];
|
|
45
|
+
alertCalls: AlertCall[];
|
|
40
46
|
};
|
|
41
47
|
export declare const EremaSignals: {
|
|
42
48
|
calculate: typeof calculate;
|
|
@@ -48,5 +54,6 @@ export declare const EremaSignals: {
|
|
|
48
54
|
defaultInputs: EremaSignalsInputs;
|
|
49
55
|
inputConfig: InputConfig[];
|
|
50
56
|
plotConfig: PlotConfig[];
|
|
57
|
+
hasAlertFunction: boolean;
|
|
51
58
|
};
|
|
52
59
|
//# sourceMappingURL=erema-signals.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"erema-signals.d.ts","sourceRoot":"","sources":["../../src/community/erema-signals.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"erema-signals.d.ts","sourceRoot":"","sources":["../../src/community/erema-signals.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAA2B,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,GAAG,EAAE,MAAM,aAAa,CAAC;AACzH,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEnE,uCAAuC;AACvC,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAErC,MAAM,WAAW,kBAAkB;IACjC,gBAAgB;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,iEAAiE;IACjE,OAAO,EAAE,MAAM,CAAC;IAChB,wCAAwC;IACxC,MAAM,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,YAAY,GAAG,UAAU,GAAG,iBAAiB,CAAC;IAC1D,0EAA0E;IAC1E,UAAU,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACzC,gFAAgF;IAChF,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,aAAa,EAAE,kBAQ3B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAAW,EAQpC,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,UAAU,EAAO,CAAC;AAE3C,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AASF,wBAAgB,SAAS,CACvB,IAAI,EAAE,GAAG,EAAE,EACX,MAAM,GAAE,OAAO,CAAC,kBAAkB,CAAM,GACvC,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,GAAG;IAAE,OAAO,EAAE,UAAU,EAAE,CAAC;IAAC,QAAQ,EAAE,WAAW,EAAE,CAAC;IAAC,UAAU,EAAE,SAAS,EAAE,CAAA;CAAE,CAsFhH;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;CAAoF,CAAC"}
|
|
@@ -16,10 +16,20 @@
|
|
|
16
16
|
* multiple of the ATR, and bar colours by volume against its average. At most 500 lines and 500 labels are kept.
|
|
17
17
|
*
|
|
18
18
|
* Limits of the port: the periods of the higher timeframe come from the UTC calendar and the bars (see
|
|
19
|
-
* src/anchor-period.ts)
|
|
19
|
+
* src/anchor-period.ts).
|
|
20
|
+
*
|
|
21
|
+
* Alerts:
|
|
22
|
+
* - alert conditions (`alerts` of the result): "Volume Spikes" (the volume crosses over its average times the spike
|
|
23
|
+
* threshold) and "High Volatility" (the bar range crosses over ATR times the multiplier);
|
|
24
|
+
* - alert() calls (`alertCalls`, once per bar), on every bar, for each level switched on in the order of the levels:
|
|
25
|
+
* the extension / retracement level ("AutoFib Extension : <ticker> crossing level <level>",
|
|
26
|
+
* "AutoFib Retracment : ...") and the pivot point support / resistance levels of the levels >= 0
|
|
27
|
+
* ("AutoFib PivotPoints : <ticker> crossing support level <level>", "... resistance level ...") that are strictly
|
|
28
|
+
* between the close and the previous close.
|
|
20
29
|
*
|
|
21
30
|
* Chart context (optional third argument):
|
|
22
31
|
* - `chart.mintick`: the symbol tick of the prices in the label texts. Without it 0.01.
|
|
32
|
+
* - `chart.tickerid`: the ticker of the alert messages.
|
|
23
33
|
* - `chart.timeframe`: the chart timeframe, for the "Auto" higher timeframe. Without it, it is taken from the bars.
|
|
24
34
|
* - `chart.now`: the current time, for the "Last Bar" position of the pivot labels (as the original). Without it the
|
|
25
35
|
* clock of the computer.
|
|
@@ -35,8 +45,9 @@
|
|
|
35
45
|
* Original notice: © dgtrd
|
|
36
46
|
*/
|
|
37
47
|
import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs';
|
|
38
|
-
import type { BarColorData, LabelData, LineDrawingData, MarkerData, TableData } from '../types';
|
|
48
|
+
import type { AlertCall, BarColorData, LabelData, LineDrawingData, MarkerData, TableData } from '../types';
|
|
39
49
|
import { type ChartContext } from '../chart-context';
|
|
50
|
+
import { type AlertConditionDecl, type AlertConditionState } from '../alert-states';
|
|
40
51
|
type LevelLabels = 'Levels' | 'Prices' | 'Levels + Prices' | 'None';
|
|
41
52
|
type LineStyleName = 'Dashed' | 'Dotted' | 'Solid';
|
|
42
53
|
/** The 22 Fibonacci levels: input key, shown by default, default value, default colour, input line */
|
|
@@ -107,7 +118,12 @@ export declare function calculate(bars: Bar[], inputs?: Partial<FibonacciExtensi
|
|
|
107
118
|
lines: LineDrawingData[];
|
|
108
119
|
labels: LabelData[];
|
|
109
120
|
tables: TableData[];
|
|
121
|
+
alerts: AlertConditionState[];
|
|
122
|
+
alertCalls: AlertCall[];
|
|
110
123
|
};
|
|
124
|
+
/** The original's alertconditions */
|
|
125
|
+
export declare const alertConditions: AlertConditionDecl[];
|
|
126
|
+
export declare const hasAlertFunction = true;
|
|
111
127
|
export declare const FibonacciExtensionRetracementPivotPoints: {
|
|
112
128
|
calculate: typeof calculate;
|
|
113
129
|
metadata: {
|
|
@@ -118,6 +134,8 @@ export declare const FibonacciExtensionRetracementPivotPoints: {
|
|
|
118
134
|
defaultInputs: FibonacciExtensionRetracementPivotPointsInputs;
|
|
119
135
|
inputConfig: InputConfig[];
|
|
120
136
|
plotConfig: PlotConfig[];
|
|
137
|
+
alertConditions: AlertConditionDecl[];
|
|
138
|
+
hasAlertFunction: boolean;
|
|
121
139
|
};
|
|
122
140
|
export {};
|
|
123
141
|
//# sourceMappingURL=fibonacci-extension-retracement-pivot-points.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fibonacci-extension-retracement-pivot-points.d.ts","sourceRoot":"","sources":["../../src/community/fibonacci-extension-retracement-pivot-points.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"fibonacci-extension-retracement-pivot-points.d.ts","sourceRoot":"","sources":["../../src/community/fibonacci-extension-retracement-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pB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAMD,eAAO,MAAM,aAAa,EAAE,8CA2C3B,CAAC;AAgFF,eAAO,MAAM,WAAW,EAAE,WAAW,EAqDpC,CAAC;AAYF,eAAO,MAAM,UAAU,EAAE,UAAU,EAMlC,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AAsFF,wBAAgB,SAAS,CACvB,IAAI,EAAE,GAAG,EAAE,EACX,MAAM,GAAE,OAAO,CAAC,8CAA8C,CAAM,EACpE,KAAK,CAAC,EAAE,YAAY,GACnB,eAAe,GAAG;IACnB,OAAO,EAAE,UAAU,EAAE,CAAC;IAAC,SAAS,EAAE,YAAY,EAAE,CAAC;IAAC,KAAK,EAAE,eAAe,EAAE,CAAC;IAAC,MAAM,EAAE,SAAS,EAAE,CAAC;IAAC,MAAM,EAAE,SAAS,EAAE,CAAC;IACrH,MAAM,EAAE,mBAAmB,EAAE,CAAC;IAAC,UAAU,EAAE,SAAS,EAAE,CAAC;CACxD,CA8ZA;AAED,qCAAqC;AACrC,eAAO,MAAM,eAAe,EAAE,kBAAkB,EAS/C,CAAC;AAEF,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAErC,eAAO,MAAM,wCAAwC;;;;;;;;;;;;CAQpD,CAAC"}
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
* Heikin Ashi candle from the chart bars: haClose = (open + high + low + close) / 4, haOpen = average of the previous
|
|
5
5
|
* haOpen and haClose (first bar: (open + close) / 2), haHigh / haLow include the real high / low. The Heikin Ashi
|
|
6
6
|
* candle is a doji when its body is at most `bodyThresholdPct` % of its range. A grey circle below the bar marks a
|
|
7
|
-
* doji on a bar whose volume is at least `volMultiplier` times its `volLength`-bar simple average.
|
|
7
|
+
* doji on a bar whose volume is at least `volMultiplier` times its `volLength`-bar simple average. Alert
|
|
8
|
+
* (alertcondition, `alerts` of the result): 'Doji + High Volume', true on the bars of the circle.
|
|
8
9
|
*
|
|
9
10
|
* Reference: "Heikin Ashi Doji with High Volume" by nwfjf6m8
|
|
10
11
|
* Licence: Mozilla Public License 2.0, as the original Pine script (https://mozilla.org/MPL/2.0/).
|
|
@@ -12,6 +13,7 @@
|
|
|
12
13
|
*/
|
|
13
14
|
import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs';
|
|
14
15
|
import type { MarkerData } from '../types';
|
|
16
|
+
import { type AlertConditionDecl, type AlertConditionState } from '../alert-states';
|
|
15
17
|
export interface HeikinAshiDojiHighVolumeInputs {
|
|
16
18
|
/** Maximum Heikin Ashi body in % of the Heikin Ashi range */
|
|
17
19
|
bodyThresholdPct: number;
|
|
@@ -30,7 +32,11 @@ export declare const metadata: {
|
|
|
30
32
|
};
|
|
31
33
|
export declare function calculate(bars: Bar[], inputs?: Partial<HeikinAshiDojiHighVolumeInputs>): Omit<IndicatorResult, 'markers'> & {
|
|
32
34
|
markers: MarkerData[];
|
|
35
|
+
} & {
|
|
36
|
+
alerts: AlertConditionState[];
|
|
33
37
|
};
|
|
38
|
+
/** The original's alertconditions */
|
|
39
|
+
export declare const alertConditions: AlertConditionDecl[];
|
|
34
40
|
export declare const HeikinAshiDojiHighVolume: {
|
|
35
41
|
calculate: typeof calculate;
|
|
36
42
|
metadata: {
|
|
@@ -41,5 +47,6 @@ export declare const HeikinAshiDojiHighVolume: {
|
|
|
41
47
|
defaultInputs: HeikinAshiDojiHighVolumeInputs;
|
|
42
48
|
inputConfig: InputConfig[];
|
|
43
49
|
plotConfig: PlotConfig[];
|
|
50
|
+
alertConditions: AlertConditionDecl[];
|
|
44
51
|
};
|
|
45
52
|
//# sourceMappingURL=heikin-ashi-doji-with-high-volume.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heikin-ashi-doji-with-high-volume.d.ts","sourceRoot":"","sources":["../../src/community/heikin-ashi-doji-with-high-volume.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"heikin-ashi-doji-with-high-volume.d.ts","sourceRoot":"","sources":["../../src/community/heikin-ashi-doji-with-high-volume.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAqB,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,GAAG,EAAE,MAAM,aAAa,CAAC;AACnH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAe,KAAK,kBAAkB,EAAE,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEjG,MAAM,WAAW,8BAA8B;IAC7C,6DAA6D;IAC7D,gBAAgB,EAAE,MAAM,CAAC;IACzB,mCAAmC;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,wBAAwB;IACxB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,aAAa,EAAE,8BAI3B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAAW,EAIpC,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,UAAU,EAAO,CAAC;AAE3C,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AAQF,wBAAgB,SAAS,CACvB,IAAI,EAAE,GAAG,EAAE,EACX,MAAM,GAAE,OAAO,CAAC,8BAA8B,CAAM,GACnD,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,GAAG;IAAE,OAAO,EAAE,UAAU,EAAE,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,mBAAmB,EAAE,CAAA;CAAE,CAwClG;AAED,qCAAqC;AACrC,eAAO,MAAM,eAAe,EAAE,kBAAkB,EAE/C,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;CAAmF,CAAC"}
|
|
@@ -10,12 +10,15 @@
|
|
|
10
10
|
* optional third argument (see src/chart-context.ts); without it every bar is a historical (closed) bar, so the
|
|
11
11
|
* bars get the historical colours and "Highlight Current Bar Only" colours no bar.
|
|
12
12
|
*
|
|
13
|
+
* Alerts (alert() call, `alertCalls` of the result): with "Enable Inside Bar Alerts", every confirmed inside bar
|
|
14
|
+
* ("Inside Bar Detected: Bullish | High: <high> | Low: <low>", once per bar).
|
|
15
|
+
*
|
|
13
16
|
* Reference: "Inside Bar Coloring (Real-time + Historical) w/ Alerts" by SpinTrades
|
|
14
17
|
* Licence: Mozilla Public License 2.0, as the original Pine script (https://mozilla.org/MPL/2.0/).
|
|
15
18
|
* Original notice: Copyright (c) 2025 @SpinTrades
|
|
16
19
|
*/
|
|
17
20
|
import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs';
|
|
18
|
-
import type { MarkerData, BarColorData } from '../types';
|
|
21
|
+
import type { AlertCall, MarkerData, BarColorData } from '../types';
|
|
19
22
|
import { type ChartContext } from '../chart-context';
|
|
20
23
|
export interface InsideBarColoringWAlertsInputs {
|
|
21
24
|
/** Bullish Inside Bar (Close >= Open) */
|
|
@@ -28,7 +31,7 @@ export interface InsideBarColoringWAlertsInputs {
|
|
|
28
31
|
bearishHistoricalColor: string;
|
|
29
32
|
showHistorical: boolean;
|
|
30
33
|
showCurrentOnly: boolean;
|
|
31
|
-
/** Enable Inside Bar Alerts (alert()
|
|
34
|
+
/** Enable Inside Bar Alerts (the alert() calls, `alertCalls` of the result) */
|
|
32
35
|
alertOnInsideBar: boolean;
|
|
33
36
|
showMarkers: boolean;
|
|
34
37
|
markerPosition: 'Above' | 'Below';
|
|
@@ -44,7 +47,10 @@ export declare const metadata: {
|
|
|
44
47
|
export declare function calculate(bars: Bar[], inputs?: Partial<InsideBarColoringWAlertsInputs>, chart?: ChartContext): Omit<IndicatorResult, 'markers'> & {
|
|
45
48
|
markers: MarkerData[];
|
|
46
49
|
barColors: BarColorData[];
|
|
50
|
+
alertCalls: AlertCall[];
|
|
47
51
|
};
|
|
52
|
+
/** The original calls alert() (confirmed inside bars) */
|
|
53
|
+
export declare const hasAlertFunction = true;
|
|
48
54
|
export declare const InsideBarColoringWAlerts: {
|
|
49
55
|
calculate: typeof calculate;
|
|
50
56
|
metadata: {
|
|
@@ -55,5 +61,6 @@ export declare const InsideBarColoringWAlerts: {
|
|
|
55
61
|
defaultInputs: InsideBarColoringWAlertsInputs;
|
|
56
62
|
inputConfig: InputConfig[];
|
|
57
63
|
plotConfig: PlotConfig[];
|
|
64
|
+
hasAlertFunction: boolean;
|
|
58
65
|
};
|
|
59
66
|
//# sourceMappingURL=inside-bar-coloring-w-alerts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inside-bar-coloring-w-alerts.d.ts","sourceRoot":"","sources":["../../src/community/inside-bar-coloring-w-alerts.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"inside-bar-coloring-w-alerts.d.ts","sourceRoot":"","sources":["../../src/community/inside-bar-coloring-w-alerts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAO,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,GAAG,EAAE,MAAM,aAAa,CAAC;AACrG,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACpE,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEzE,MAAM,WAAW,8BAA8B;IAC7C,yCAAyC;IACzC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,wCAAwC;IACxC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,oCAAoC;IACpC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,oCAAoC;IACpC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;IACzB,+EAA+E;IAC/E,gBAAgB,EAAE,OAAO,CAAC;IAC1B,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,OAAO,GAAG,OAAO,CAAC;CACnC;AAED,eAAO,MAAM,aAAa,EAAE,8BAU3B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAAW,EAUpC,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,UAAU,EAAO,CAAC;AAE3C,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AAOF,wBAAgB,SAAS,CACvB,IAAI,EAAE,GAAG,EAAE,EACX,MAAM,GAAE,OAAO,CAAC,8BAA8B,CAAM,EACpD,KAAK,CAAC,EAAE,YAAY,GACnB,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,GAAG;IAAE,OAAO,EAAE,UAAU,EAAE,CAAC;IAAC,SAAS,EAAE,YAAY,EAAE,CAAC;IAAC,UAAU,EAAE,SAAS,EAAE,CAAA;CAAE,CAuDlH;AAED,yDAAyD;AACzD,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAErC,eAAO,MAAM,wBAAwB;;;;;;;;;;;CAAoF,CAAC"}
|
|
@@ -7,11 +7,15 @@
|
|
|
7
7
|
* bar. An orange circle above the bar marks two bars in a row (the current and the previous bar) inside the body of
|
|
8
8
|
* the bar two bars back (the mother bar).
|
|
9
9
|
*
|
|
10
|
+
* Alerts: the two alertcondition() calls of the original, "Inside Bar (Body)" (an inside bar of either colour) and
|
|
11
|
+
* "Next Candle Also Inside Bar (Body)" (the orange circle).
|
|
12
|
+
*
|
|
10
13
|
* Reference: "Inside Bar (Body-based) Ind/Alert" by s_b_j
|
|
11
14
|
* Licence: Mozilla Public License 2.0, as the original Pine script (https://mozilla.org/MPL/2.0/).
|
|
12
15
|
*/
|
|
13
16
|
import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs';
|
|
14
17
|
import type { MarkerData, BarColorData } from '../types';
|
|
18
|
+
import { type AlertConditionDecl, type AlertConditionState } from '../alert-states';
|
|
15
19
|
export type InsideBarIndAlertInputs = Record<string, never>;
|
|
16
20
|
export declare const defaultInputs: InsideBarIndAlertInputs;
|
|
17
21
|
export declare const inputConfig: InputConfig[];
|
|
@@ -24,7 +28,11 @@ export declare const metadata: {
|
|
|
24
28
|
export declare function calculate(bars: Bar[], _inputs?: Partial<InsideBarIndAlertInputs>): Omit<IndicatorResult, 'markers'> & {
|
|
25
29
|
markers: MarkerData[];
|
|
26
30
|
barColors: BarColorData[];
|
|
31
|
+
} & {
|
|
32
|
+
alerts: AlertConditionState[];
|
|
27
33
|
};
|
|
34
|
+
/** The original's alertconditions */
|
|
35
|
+
export declare const alertConditions: AlertConditionDecl[];
|
|
28
36
|
export declare const InsideBarIndAlert: {
|
|
29
37
|
calculate: typeof calculate;
|
|
30
38
|
metadata: {
|
|
@@ -35,5 +43,6 @@ export declare const InsideBarIndAlert: {
|
|
|
35
43
|
defaultInputs: InsideBarIndAlertInputs;
|
|
36
44
|
inputConfig: InputConfig[];
|
|
37
45
|
plotConfig: PlotConfig[];
|
|
46
|
+
alertConditions: AlertConditionDecl[];
|
|
38
47
|
};
|
|
39
48
|
//# sourceMappingURL=inside-bar-ind-alert.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inside-bar-ind-alert.d.ts","sourceRoot":"","sources":["../../src/community/inside-bar-ind-alert.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"inside-bar-ind-alert.d.ts","sourceRoot":"","sources":["../../src/community/inside-bar-ind-alert.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAS,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,GAAG,EAAE,MAAM,aAAa,CAAC;AACvG,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,EAAe,KAAK,kBAAkB,EAAE,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEjG,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAE5D,eAAO,MAAM,aAAa,EAAE,uBAA4B,CAAC;AAEzD,eAAO,MAAM,WAAW,EAAE,WAAW,EAAO,CAAC;AAG7C,eAAO,MAAM,UAAU,EAAE,UAAU,EAAO,CAAC;AAE3C,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AAQF,wBAAgB,SAAS,CACvB,IAAI,EAAE,GAAG,EAAE,EACX,OAAO,GAAE,OAAO,CAAC,uBAAuB,CAAM,GAC7C,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,GAAG;IAAE,OAAO,EAAE,UAAU,EAAE,CAAC;IAAC,SAAS,EAAE,YAAY,EAAE,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,mBAAmB,EAAE,CAAA;CAAE,CAoD7H;AAED,qCAAqC;AACrC,eAAO,MAAM,eAAe,EAAE,kBAAkB,EAG/C,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;CAAmF,CAAC"}
|
|
@@ -6,12 +6,17 @@
|
|
|
6
6
|
* wick and above `maxWick` % of the body. The reverse option also accepts a red candle with a long lower wick and
|
|
7
7
|
* a green candle with a long upper wick. These candles are coloured black.
|
|
8
8
|
*
|
|
9
|
+
* Alerts: the alert condition "John Wick Candle" (`alerts` of the result) is true on every John Wick candle; the
|
|
10
|
+
* alert() call "John Wick Candle" (`alertCalls`, once per bar close) is made on them when "Show John Wick Candles?"
|
|
11
|
+
* is on.
|
|
12
|
+
*
|
|
9
13
|
* Reference: "John Wick" by Nossgrr
|
|
10
14
|
* Licence: Mozilla Public License 2.0, as the original Pine script (https://mozilla.org/MPL/2.0/).
|
|
11
15
|
* Original notice: © Nossgrr
|
|
12
16
|
*/
|
|
13
17
|
import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs';
|
|
14
|
-
import type { BarColorData } from '../types';
|
|
18
|
+
import type { AlertCall, BarColorData } from '../types';
|
|
19
|
+
import { type AlertConditionDecl, type AlertConditionState } from '../alert-states';
|
|
15
20
|
export interface JohnWickDojiInputs {
|
|
16
21
|
/** Minimum wick size in % of the body */
|
|
17
22
|
maxWick: number;
|
|
@@ -30,7 +35,12 @@ export declare const metadata: {
|
|
|
30
35
|
};
|
|
31
36
|
export declare function calculate(bars: Bar[], inputs?: Partial<JohnWickDojiInputs>): Omit<IndicatorResult, 'markers'> & {
|
|
32
37
|
barColors: BarColorData[];
|
|
38
|
+
alerts: AlertConditionState[];
|
|
39
|
+
alertCalls: AlertCall[];
|
|
33
40
|
};
|
|
41
|
+
/** The original's alertcondition */
|
|
42
|
+
export declare const alertConditions: AlertConditionDecl[];
|
|
43
|
+
export declare const hasAlertFunction = true;
|
|
34
44
|
export declare const JohnWickDoji: {
|
|
35
45
|
calculate: typeof calculate;
|
|
36
46
|
metadata: {
|
|
@@ -41,5 +51,7 @@ export declare const JohnWickDoji: {
|
|
|
41
51
|
defaultInputs: JohnWickDojiInputs;
|
|
42
52
|
inputConfig: InputConfig[];
|
|
43
53
|
plotConfig: PlotConfig[];
|
|
54
|
+
alertConditions: AlertConditionDecl[];
|
|
55
|
+
hasAlertFunction: boolean;
|
|
44
56
|
};
|
|
45
57
|
//# sourceMappingURL=john-wick-doji-indicator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"john-wick-doji-indicator.d.ts","sourceRoot":"","sources":["../../src/community/john-wick-doji-indicator.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"john-wick-doji-indicator.d.ts","sourceRoot":"","sources":["../../src/community/john-wick-doji-indicator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAS,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,GAAG,EAAE,MAAM,aAAa,CAAC;AACvG,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,EAAe,KAAK,kBAAkB,EAAE,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEjG,MAAM,WAAW,kBAAkB;IACjC,yCAAyC;IACzC,OAAO,EAAE,MAAM,CAAC;IAChB,6BAA6B;IAC7B,QAAQ,EAAE,OAAO,CAAC;IAClB,qCAAqC;IACrC,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,aAAa,EAAE,kBAI3B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAAW,EAIpC,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,UAAU,EAAO,CAAC;AAE3C,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AAQF,wBAAgB,SAAS,CACvB,IAAI,EAAE,GAAG,EAAE,EACX,MAAM,GAAE,OAAO,CAAC,kBAAkB,CAAM,GACvC,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,GAAG;IAAE,SAAS,EAAE,YAAY,EAAE,CAAC;IAAC,MAAM,EAAE,mBAAmB,EAAE,CAAC;IAAC,UAAU,EAAE,SAAS,EAAE,CAAA;CAAE,CA6C1H;AAED,oCAAoC;AACpC,eAAO,MAAM,eAAe,EAAE,kBAAkB,EAE/C,CAAC;AAEF,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAErC,eAAO,MAAM,YAAY;;;;;;;;;;;;CAAqG,CAAC"}
|
|
@@ -11,12 +11,17 @@
|
|
|
11
11
|
* channel, fills between the inner and the outer bands, and squeeze dots when the width is at most sqThresh times
|
|
12
12
|
* its `sqLen`-bar average.
|
|
13
13
|
*
|
|
14
|
+
* Alerts (alertcondition, `alerts` of the result): breakout long / short (close beyond the upper / lower value band
|
|
15
|
+
* with a relative volume of at least `rvolMinBr`) and top / bottom zone (close at or beyond the 80 % / 20 % guide, the
|
|
16
|
+
* guides shown).
|
|
17
|
+
*
|
|
14
18
|
* Reference: "JOPA Channel (Dual-Volumed) v1 [JopAlgo]" by JopAlgo
|
|
15
19
|
* Licence: Mozilla Public License 2.0, as the original Pine script (https://mozilla.org/MPL/2.0/).
|
|
16
20
|
* Original notice: Copyright (c) 2025 JopAlgo. © 2025 JopAlgo [JopAlgo]
|
|
17
21
|
*/
|
|
18
22
|
import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar, type SourceType } from 'oakscriptjs';
|
|
19
23
|
import type { MarkerData } from '../types';
|
|
24
|
+
import { type AlertConditionDecl, type AlertConditionState } from '../alert-states';
|
|
20
25
|
type TrackMode = 'Base' | 'Parallel-Lock' | 'Slope-Lock' | 'Forecast-Lock';
|
|
21
26
|
export interface JopaChannelV1Inputs {
|
|
22
27
|
src: SourceType;
|
|
@@ -48,7 +53,7 @@ export interface JopaChannelV1Inputs {
|
|
|
48
53
|
marginK: number;
|
|
49
54
|
sqLen: number;
|
|
50
55
|
sqThresh: number;
|
|
51
|
-
/** Used by the alert conditions only
|
|
56
|
+
/** Used by the alert conditions only */
|
|
52
57
|
rvolMinBr: number;
|
|
53
58
|
showValueRails: boolean;
|
|
54
59
|
showValueFill: boolean;
|
|
@@ -66,7 +71,11 @@ export declare const metadata: {
|
|
|
66
71
|
};
|
|
67
72
|
export declare function calculate(bars: Bar[], inputs?: Partial<JopaChannelV1Inputs>): Omit<IndicatorResult, 'markers'> & {
|
|
68
73
|
markers: MarkerData[];
|
|
74
|
+
} & {
|
|
75
|
+
alerts: AlertConditionState[];
|
|
69
76
|
};
|
|
77
|
+
/** The original's alertconditions */
|
|
78
|
+
export declare const alertConditions: AlertConditionDecl[];
|
|
70
79
|
export declare const JopaChannelV1: {
|
|
71
80
|
calculate: typeof calculate;
|
|
72
81
|
metadata: {
|
|
@@ -77,6 +86,7 @@ export declare const JopaChannelV1: {
|
|
|
77
86
|
defaultInputs: JopaChannelV1Inputs;
|
|
78
87
|
inputConfig: InputConfig[];
|
|
79
88
|
plotConfig: PlotConfig[];
|
|
89
|
+
alertConditions: AlertConditionDecl[];
|
|
80
90
|
};
|
|
81
91
|
export {};
|
|
82
92
|
//# sourceMappingURL=jopa-channel-v1.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jopa-channel-v1.d.ts","sourceRoot":"","sources":["../../src/community/jopa-channel-v1.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"jopa-channel-v1.d.ts","sourceRoot":"","sources":["../../src/community/jopa-channel-v1.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAsC,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,GAAG,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AACrJ,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAe,KAAK,kBAAkB,EAAE,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEjG,KAAK,SAAS,GAAG,MAAM,GAAG,eAAe,GAAG,YAAY,GAAG,eAAe,CAAC;AAE3E,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,UAAU,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,wCAAwC;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,eAAe,EAAE,OAAO,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,aAAa,EAAE,mBAoC3B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAAW,EAqCpC,CAAC;AAKF,eAAO,MAAM,UAAU,EAAE,UAAU,EAQlC,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AAeF,wBAAgB,SAAS,CACvB,IAAI,EAAE,GAAG,EAAE,EACX,MAAM,GAAE,OAAO,CAAC,mBAAmB,CAAM,GACxC,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,GAAG;IAAE,OAAO,EAAE,UAAU,EAAE,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,mBAAmB,EAAE,CAAA;CAAE,CA+JlG;AAED,qCAAqC;AACrC,eAAO,MAAM,eAAe,EAAE,kBAAkB,EAK/C,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;CAOzB,CAAC"}
|
|
@@ -15,15 +15,24 @@
|
|
|
15
15
|
* Chart values read from the optional third argument (see src/chart-context.ts): the symbol tick for the prices in
|
|
16
16
|
* label texts and tooltips (0.01 without it), and the chart timeframe (read from the bar spacing without it).
|
|
17
17
|
* As the original, the port stops with an error when a channel needs more than 5,000 bars of history (the extended
|
|
18
|
-
* second channel on a low timeframe).
|
|
18
|
+
* second channel on a low timeframe).
|
|
19
|
+
*
|
|
20
|
+
* Alerts. alertcondition (`alerts` of the result): "Volume Spike — Possible Exhaustion" (the volume crosses above
|
|
21
|
+
* its average x the spike threshold) and "High Volatility — Wide Bar Detected" (the bar range crosses above the ATR x
|
|
22
|
+
* multiplier). alert() calls (`alertCalls` of the result), on the last bar where the channels exist: the close
|
|
23
|
+
* crossing a base line or a shown band of a channel, and the base line of the first channel crossing the base line or
|
|
24
|
+
* a band of the second one. For that last group the value of the base line on the bar before is the channel computed
|
|
25
|
+
* on that bar as the last one (what the original has after one bar in real time; on a fresh run of the original it is
|
|
26
|
+
* na and these calls do not run).
|
|
19
27
|
*
|
|
20
28
|
* Reference: "Linear Regression Channel / Curve / Slope by DGT" by dgtrd
|
|
21
29
|
* Licence: Mozilla Public License 2.0, as the original Pine script (https://mozilla.org/MPL/2.0/).
|
|
22
30
|
* Original notice: © dgtrd
|
|
23
31
|
*/
|
|
24
32
|
import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar, type SourceType } from 'oakscriptjs';
|
|
25
|
-
import type { BarColorData, LabelData, LineDrawingData, MarkerData, TableData } from '../types';
|
|
33
|
+
import type { AlertCall, BarColorData, LabelData, LineDrawingData, MarkerData, TableData } from '../types';
|
|
26
34
|
import { type ChartContext } from '../chart-context';
|
|
35
|
+
import { type AlertConditionDecl, type AlertConditionState } from '../alert-states';
|
|
27
36
|
type LevelLabels = 'Levels' | 'Levels (Prices)' | 'None';
|
|
28
37
|
type TextSize = 'Small' | 'Normal';
|
|
29
38
|
type LineStyleName = 'Dashed' | 'Dotted' | 'Solid';
|
|
@@ -123,7 +132,13 @@ export declare function calculate(bars: Bar[], inputs?: Partial<LinearRegression
|
|
|
123
132
|
lines: LineDrawingData[];
|
|
124
133
|
labels: LabelData[];
|
|
125
134
|
tables: TableData[];
|
|
135
|
+
alerts: AlertConditionState[];
|
|
136
|
+
alertCalls: AlertCall[];
|
|
126
137
|
};
|
|
138
|
+
/** The original's alertconditions */
|
|
139
|
+
export declare const alertConditions: AlertConditionDecl[];
|
|
140
|
+
/** The original also calls alert() (crossed channel lines) */
|
|
141
|
+
export declare const hasAlertFunction = true;
|
|
127
142
|
export declare const LinearRegressionChannelCurveSlopeByDgt: {
|
|
128
143
|
calculate: typeof calculate;
|
|
129
144
|
metadata: {
|
|
@@ -134,6 +149,8 @@ export declare const LinearRegressionChannelCurveSlopeByDgt: {
|
|
|
134
149
|
defaultInputs: LinearRegressionChannelCurveSlopeByDgtInputs;
|
|
135
150
|
inputConfig: InputConfig[];
|
|
136
151
|
plotConfig: PlotConfig[];
|
|
152
|
+
alertConditions: AlertConditionDecl[];
|
|
153
|
+
hasAlertFunction: boolean;
|
|
137
154
|
};
|
|
138
155
|
export {};
|
|
139
156
|
//# sourceMappingURL=linear-regression-channel-curve-slope-by-dgt.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linear-regression-channel-curve-slope-by-dgt.d.ts","sourceRoot":"","sources":["../../src/community/linear-regression-channel-curve-slope-by-dgt.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"linear-regression-channel-curve-slope-by-dgt.d.ts","sourceRoot":"","sources":["../../src/community/linear-regression-channel-curve-slope-by-dgt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAA+C,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,GAAG,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9J,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC3G,OAAO,EAAuB,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EAA4B,KAAK,kBAAkB,EAAE,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAI9G,KAAK,WAAW,GAAG,QAAQ,GAAG,iBAAiB,GAAG,MA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QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,aAAa,EAAE,4CAgF3B,CAAC;AA6CF,eAAO,MAAM,WAAW,EAAE,WAAW,EAwDpC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAAU,EAQlC,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AAeF,wBAAgB,SAAS,CACvB,IAAI,EAAE,GAAG,EAAE,EACX,MAAM,GAAE,OAAO,CAAC,4CAA4C,CAAM,EAClE,KAAK,CAAC,EAAE,YAAY,GACnB,eAAe,GAAG;IACjB,OAAO,EAAE,UAAU,EAAE,CAAC;IAAC,SAAS,EAAE,YAAY,EAAE,CAAC;IAAC,KAAK,EAAE,eAAe,EAAE,CAAC;IAAC,MAAM,EAAE,SAAS,EAAE,CAAC;IAAC,MAAM,EAAE,SAAS,EAAE,CAAC;IACrH,MAAM,EAAE,mBAAmB,EAAE,CAAC;IAAC,UAAU,EAAE,SAAS,EAAE,CAAC;CACxD,CA2OF;AAED,qCAAqC;AACrC,eAAO,MAAM,eAAe,EAAE,kBAAkB,EAS/C,CAAC;AAEF,8DAA8D;AAC9D,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAErC,eAAO,MAAM,sCAAsC;;;;;;;;;;;;CAQlD,CAAC"}
|
|
@@ -16,15 +16,21 @@
|
|
|
16
16
|
* set ends when the close goes past the block, a new block of the same side appears, or (with the retracement stop)
|
|
17
17
|
* a new extreme after the retracement.
|
|
18
18
|
*
|
|
19
|
-
* Label prices use the symbol tick (chart context, `mintickOf`).
|
|
19
|
+
* Label prices use the symbol tick (chart context, `mintickOf`).
|
|
20
|
+
*
|
|
21
|
+
* Alerts (alert() calls, `alertCalls` of the result): "New Bullish Order Block" / "New Bearish Order Block" (once per
|
|
22
|
+
* bar close) on the bar of a new block when "Show Order Blocks" is on, and "Retracement Level Hit" (once per bar) on
|
|
23
|
+
* the bar of each "🔺" / "🔻" mark, in the order of the sets (newest first).
|
|
20
24
|
*
|
|
21
25
|
* Reference: "Order Blocks W/ Realtime Fibs [QuantVue]" by QuantVue
|
|
22
26
|
* Licence: Mozilla Public License 2.0, as the original Pine script (https://mozilla.org/MPL/2.0/).
|
|
23
27
|
* Original notice: © QuantVue
|
|
24
28
|
*/
|
|
25
29
|
import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs';
|
|
26
|
-
import type { BoxData, LabelData, LineDrawingData } from '../types';
|
|
30
|
+
import type { AlertCall, BoxData, LabelData, LineDrawingData } from '../types';
|
|
27
31
|
import { type ChartContext } from '../chart-context';
|
|
32
|
+
/** The original makes alert() calls */
|
|
33
|
+
export declare const hasAlertFunction = true;
|
|
28
34
|
export interface OrderBlocksWRealtimeFibsInputs {
|
|
29
35
|
/** Consecutive Bars Required */
|
|
30
36
|
barsReq: number;
|
|
@@ -79,6 +85,7 @@ export declare function calculate(bars: Bar[], inputs?: Partial<OrderBlocksWReal
|
|
|
79
85
|
lines: LineDrawingData[];
|
|
80
86
|
labels: LabelData[];
|
|
81
87
|
boxes: BoxData[];
|
|
88
|
+
alertCalls: AlertCall[];
|
|
82
89
|
};
|
|
83
90
|
export declare const OrderBlocksWRealtimeFibs: {
|
|
84
91
|
calculate: typeof calculate;
|
|
@@ -90,5 +97,6 @@ export declare const OrderBlocksWRealtimeFibs: {
|
|
|
90
97
|
defaultInputs: OrderBlocksWRealtimeFibsInputs;
|
|
91
98
|
inputConfig: InputConfig[];
|
|
92
99
|
plotConfig: PlotConfig[];
|
|
100
|
+
hasAlertFunction: boolean;
|
|
93
101
|
};
|
|
94
102
|
//# sourceMappingURL=order-blocks-w-realtime-fibs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order-blocks-w-realtime-fibs.d.ts","sourceRoot":"","sources":["../../src/community/order-blocks-w-realtime-fibs.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"order-blocks-w-realtime-fibs.d.ts","sourceRoot":"","sources":["../../src/community/order-blocks-w-realtime-fibs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAE4B,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,GAAG,EACnG,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC/E,OAAO,EAAa,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhE,uCAAuC;AACvC,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAErC,MAAM,WAAW,8BAA8B;IAC7C,gCAAgC;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,4BAA4B;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,mCAAmC;IACnC,SAAS,EAAE,OAAO,CAAC;IACnB,sBAAsB;IACtB,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC;IAC3B,6BAA6B;IAC7B,KAAK,EAAE,QAAQ,GAAG,UAAU,CAAC;IAC7B,gCAAgC;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,4CAA4C;IAC5C,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,+CAA+C;IAC/C,UAAU,EAAE,OAAO,CAAC;IACpB,wBAAwB;IACxB,UAAU,EAAE,aAAa,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;IACpD,QAAQ,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACxC,wCAAwC;IACxC,QAAQ,EAAE,OAAO,CAAC;IAClB,sBAAsB;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,aAAa,EAAE,8BA6B3B,CAAC;AAMF,eAAO,MAAM,WAAW,EAAE,WAAW,EAmCpC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAAU,EAAO,CAAC;AAE3C,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AAuCF,wBAAgB,SAAS,CACvB,IAAI,EAAE,GAAG,EAAE,EACX,MAAM,GAAE,OAAO,CAAC,8BAA8B,CAAM,EACpD,KAAK,CAAC,EAAE,YAAY,GACnB,eAAe,GAAG;IAAE,KAAK,EAAE,eAAe,EAAE,CAAC;IAAC,MAAM,EAAE,SAAS,EAAE,CAAC;IAAC,KAAK,EAAE,OAAO,EAAE,CAAC;IAAC,UAAU,EAAE,SAAS,EAAE,CAAA;CAAE,CA4LhH;AAED,eAAO,MAAM,wBAAwB;;;;;;;;;;;CAAoF,CAAC"}
|
|
@@ -7,11 +7,15 @@
|
|
|
7
7
|
* or a doji (|close - open| <= 0.001); a short signal needs perfect bearish candles after a green candle or a doji.
|
|
8
8
|
* A green "H" label below the bar marks a buy signal, a red "H" label above the bar a short signal.
|
|
9
9
|
*
|
|
10
|
+
* Alert conditions (`alerts` of the result): "Bullish Pattern Alert" on each buy signal and "Bearish Pattern Alert"
|
|
11
|
+
* on each short signal.
|
|
12
|
+
*
|
|
10
13
|
* Reference: "Perfect Hammer Pattern" by girishptryambakee
|
|
11
14
|
* Licence: Mozilla Public License 2.0, as the original Pine script (https://mozilla.org/MPL/2.0/).
|
|
12
15
|
*/
|
|
13
16
|
import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs';
|
|
14
17
|
import type { MarkerData } from '../types';
|
|
18
|
+
import { type AlertConditionDecl, type AlertConditionState } from '../alert-states';
|
|
15
19
|
export interface PerfectHammerPatternInputs {
|
|
16
20
|
/** Number of consecutive perfect candles */
|
|
17
21
|
consecutivePatterns: number;
|
|
@@ -26,7 +30,10 @@ export declare const metadata: {
|
|
|
26
30
|
};
|
|
27
31
|
export declare function calculate(bars: Bar[], inputs?: Partial<PerfectHammerPatternInputs>): Omit<IndicatorResult, 'markers'> & {
|
|
28
32
|
markers: MarkerData[];
|
|
33
|
+
alerts: AlertConditionState[];
|
|
29
34
|
};
|
|
35
|
+
/** The original's alertconditions */
|
|
36
|
+
export declare const alertConditions: AlertConditionDecl[];
|
|
30
37
|
export declare const PerfectHammerPattern: {
|
|
31
38
|
calculate: typeof calculate;
|
|
32
39
|
metadata: {
|
|
@@ -37,5 +44,6 @@ export declare const PerfectHammerPattern: {
|
|
|
37
44
|
defaultInputs: PerfectHammerPatternInputs;
|
|
38
45
|
inputConfig: InputConfig[];
|
|
39
46
|
plotConfig: PlotConfig[];
|
|
47
|
+
alertConditions: AlertConditionDecl[];
|
|
40
48
|
};
|
|
41
49
|
//# sourceMappingURL=perfect-hammer-pattern-indicators-and-alerts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"perfect-hammer-pattern-indicators-and-alerts.d.ts","sourceRoot":"","sources":["../../src/community/perfect-hammer-pattern-indicators-and-alerts.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"perfect-hammer-pattern-indicators-and-alerts.d.ts","sourceRoot":"","sources":["../../src/community/perfect-hammer-pattern-indicators-and-alerts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAS,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,GAAG,EAAE,MAAM,aAAa,CAAC;AACvG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAe,KAAK,kBAAkB,EAAE,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEjG,MAAM,WAAW,0BAA0B;IACzC,4CAA4C;IAC5C,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,eAAO,MAAM,aAAa,EAAE,0BAE3B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAAW,EAEpC,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,UAAU,EAAO,CAAC;AAE3C,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AAWF,wBAAgB,SAAS,CACvB,IAAI,EAAE,GAAG,EAAE,EACX,MAAM,GAAE,OAAO,CAAC,0BAA0B,CAAM,GAC/C,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,GAAG;IAAE,OAAO,EAAE,UAAU,EAAE,CAAC;IAAC,MAAM,EAAE,mBAAmB,EAAE,CAAA;CAAE,CAoD7F;AAED,qCAAqC;AACrC,eAAO,MAAM,eAAe,EAAE,kBAAkB,EAG/C,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;CAAmF,CAAC"}
|
|
@@ -7,13 +7,15 @@
|
|
|
7
7
|
* times the inner / outer multipliers. The line colour is a gradient of the EMA(5) of the velocity (y - y[1]),
|
|
8
8
|
* saturated at 2 standard deviations (20) of the velocity. BUY / SELL labels on a first rejection of an envelope
|
|
9
9
|
* (outer when trending, inner when ranging) with a weakening move (velocity and acceleration of opposite signs),
|
|
10
|
-
* optionally alternating.
|
|
10
|
+
* optionally alternating. Alerts (alertcondition, `alerts` of the result): 'BUY Alert' and 'SELL Alert', true on the
|
|
11
|
+
* bars of a BUY / SELL signal (whatever the label input).
|
|
11
12
|
*
|
|
12
13
|
* Reference: "Price Flow - Buy Sell" by IVTrader1990
|
|
13
14
|
* Licence: Mozilla Public License 2.0, as the original Pine script (https://mozilla.org/MPL/2.0/).
|
|
14
15
|
*/
|
|
15
16
|
import { type IndicatorResult, type InputConfig, type PlotConfig, type FillConfig, type Bar, type SourceType } from 'oakscriptjs';
|
|
16
17
|
import type { MarkerData } from '../types';
|
|
18
|
+
import { type AlertConditionDecl, type AlertConditionState } from '../alert-states';
|
|
17
19
|
export interface PriceFlowBuySellInputs {
|
|
18
20
|
/** Base bandwidth (h) of the Gaussian kernel */
|
|
19
21
|
hVal: number;
|
|
@@ -46,7 +48,11 @@ export declare const metadata: {
|
|
|
46
48
|
};
|
|
47
49
|
export declare function calculate(bars: Bar[], inputs?: Partial<PriceFlowBuySellInputs>): Omit<IndicatorResult, 'markers'> & {
|
|
48
50
|
markers: MarkerData[];
|
|
51
|
+
} & {
|
|
52
|
+
alerts: AlertConditionState[];
|
|
49
53
|
};
|
|
54
|
+
/** The original's alertconditions */
|
|
55
|
+
export declare const alertConditions: AlertConditionDecl[];
|
|
50
56
|
export declare const PriceFlowBuySell: {
|
|
51
57
|
calculate: typeof calculate;
|
|
52
58
|
metadata: {
|
|
@@ -58,5 +64,6 @@ export declare const PriceFlowBuySell: {
|
|
|
58
64
|
inputConfig: InputConfig[];
|
|
59
65
|
plotConfig: PlotConfig[];
|
|
60
66
|
fillConfig: FillConfig[];
|
|
67
|
+
alertConditions: AlertConditionDecl[];
|
|
61
68
|
};
|
|
62
69
|
//# sourceMappingURL=price-flow-buy-sell.d.ts.map
|