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
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Alert conditions of the built-ins (PineScript `alertcondition()`): the declaration on the registry entry and the
|
|
3
|
+
* `alerts` of a result — per condition, the times of the bars on which it is true and whether it is true on the last
|
|
4
|
+
* bar (the shape the script runtime gives, oakscriptjs AlertState).
|
|
5
|
+
*/
|
|
6
|
+
import type { Bar } from 'oakscriptjs';
|
|
7
|
+
/** One `alertcondition()` of a built-in: id, title and default message, as the reference declares them */
|
|
8
|
+
export interface AlertConditionDecl {
|
|
9
|
+
id: string;
|
|
10
|
+
title: string;
|
|
11
|
+
message?: string;
|
|
12
|
+
}
|
|
13
|
+
/** One condition of a result: the bars (times as given in the input bars) on which it is true */
|
|
14
|
+
export interface AlertConditionState extends AlertConditionDecl {
|
|
15
|
+
triggered: boolean;
|
|
16
|
+
times: number[];
|
|
17
|
+
}
|
|
18
|
+
/** The states of `decls` from one flag per bar for each of them (`flags[k][i]`: condition k is true on bar i) */
|
|
19
|
+
export declare function alertStates(decls: AlertConditionDecl[], bars: Bar[], flags: boolean[][]): AlertConditionState[];
|
|
20
|
+
/** PineScript `ta.crossover(a, b)` per bar (values: numbers, na = NaN / null): a > b now and a <= b on the bar before */
|
|
21
|
+
export declare function crossedOver(a: ArrayLike<number | null | undefined>, b: number | ArrayLike<number | null | undefined>): boolean[];
|
|
22
|
+
/** PineScript `ta.crossunder(a, b)` per bar: a < b now and a >= b on the bar before */
|
|
23
|
+
export declare function crossedUnder(a: ArrayLike<number | null | undefined>, b: number | ArrayLike<number | null | undefined>): boolean[];
|
|
24
|
+
//# sourceMappingURL=alert-states.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-states.d.ts","sourceRoot":"","sources":["../src/alert-states.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAEvC,0GAA0G;AAC1G,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,iGAAiG;AACjG,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB;IAC7D,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,iHAAiH;AACjH,wBAAgB,WAAW,CAAC,KAAK,EAAE,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,GAAG,mBAAmB,EAAE,CAO/G;AAED,yHAAyH;AACzH,wBAAgB,WAAW,CAAC,CAAC,EAAE,SAAS,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,GAAG,OAAO,EAAE,CAQhI;AAED,uFAAuF;AACvF,wBAAgB,YAAY,CAAC,CAAC,EAAE,SAAS,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,GAAG,OAAO,EAAE,CAQjI"}
|
|
@@ -7,12 +7,15 @@
|
|
|
7
7
|
* high, close below the lowest low, RSI above 50 and below its SMA). Lime circles below the bar mark bullish
|
|
8
8
|
* signals, fuchsia circles above the bar mark bearish signals.
|
|
9
9
|
*
|
|
10
|
+
* Alerts (alert() calls, `alertCalls` of the result): "Bullish Engulfing" on each bullish bar and "Bearish Engulfing"
|
|
11
|
+
* on each bearish bar, once per bar close.
|
|
12
|
+
*
|
|
10
13
|
* Reference: "Actually Engulfing Candlesticks" by llbot
|
|
11
14
|
* Licence: Mozilla Public License 2.0, as the original Pine script (https://mozilla.org/MPL/2.0/).
|
|
12
15
|
* Original notice: © llbot
|
|
13
16
|
*/
|
|
14
17
|
import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs';
|
|
15
|
-
import type { MarkerData } from '../types';
|
|
18
|
+
import type { AlertCall, MarkerData } from '../types';
|
|
16
19
|
export interface ActuallyEngulfingCandlesticksInputs {
|
|
17
20
|
reversalLookback: number;
|
|
18
21
|
engulfingLookback: number;
|
|
@@ -30,7 +33,9 @@ export declare const metadata: {
|
|
|
30
33
|
};
|
|
31
34
|
export declare function calculate(bars: Bar[], inputs?: Partial<ActuallyEngulfingCandlesticksInputs>): Omit<IndicatorResult, 'markers'> & {
|
|
32
35
|
markers: MarkerData[];
|
|
36
|
+
alertCalls: AlertCall[];
|
|
33
37
|
};
|
|
38
|
+
export declare const hasAlertFunction = true;
|
|
34
39
|
export declare const ActuallyEngulfingCandlesticks: {
|
|
35
40
|
calculate: typeof calculate;
|
|
36
41
|
metadata: {
|
|
@@ -41,5 +46,6 @@ export declare const ActuallyEngulfingCandlesticks: {
|
|
|
41
46
|
defaultInputs: ActuallyEngulfingCandlesticksInputs;
|
|
42
47
|
inputConfig: InputConfig[];
|
|
43
48
|
plotConfig: PlotConfig[];
|
|
49
|
+
hasAlertFunction: boolean;
|
|
44
50
|
};
|
|
45
51
|
//# sourceMappingURL=actually-engulfing-candlesticks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actually-engulfing-candlesticks.d.ts","sourceRoot":"","sources":["../../src/community/actually-engulfing-candlesticks.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"actually-engulfing-candlesticks.d.ts","sourceRoot":"","sources":["../../src/community/actually-engulfing-candlesticks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAqB,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,GAAG,EAAE,MAAM,aAAa,CAAC;AACnH,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,WAAW,mCAAmC;IAClD,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,mBAAmB,EAAE,OAAO,CAAC;CAC9B;AAED,eAAO,MAAM,aAAa,EAAE,mCAM3B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAAW,EAMpC,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,mCAAmC,CAAM,GACxD,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,GAAG;IAAE,OAAO,EAAE,UAAU,EAAE,CAAC;IAAC,UAAU,EAAE,SAAS,EAAE,CAAA;CAAE,CA6CvF;AAED,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAErC,eAAO,MAAM,6BAA6B;;;;;;;;;;;CAAoF,CAAC"}
|
|
@@ -7,6 +7,9 @@
|
|
|
7
7
|
* pattern has a character above the bar and a light background (90 % transparency) in its colour. Every inside bar
|
|
8
8
|
* gets a blue "I" and every outside bar a red "O" below the bar.
|
|
9
9
|
*
|
|
10
|
+
* Alerts (alertcondition, `alerts` of the result): 'ii Pattern Alert', 'OO Pattern Alert' and 'ioi Pattern Alert', true
|
|
11
|
+
* on the bars of each pattern (whatever the show inputs).
|
|
12
|
+
*
|
|
10
13
|
* The Pine plotchar characters are "ii", "OO" and "ioi"; plotchar draws only the first character ("i", "O", "i").
|
|
11
14
|
*
|
|
12
15
|
* Reference: "Al Brooks II.IOI.OO" (Pine title "Al Brooks 连续模式") by JimmC98
|
|
@@ -15,6 +18,7 @@
|
|
|
15
18
|
*/
|
|
16
19
|
import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs';
|
|
17
20
|
import type { MarkerData, BgColorData } from '../types';
|
|
21
|
+
import { type AlertConditionDecl, type AlertConditionState } from '../alert-states';
|
|
18
22
|
export interface AlBrooksIiIoiOoInputs {
|
|
19
23
|
/** 显示 ii 模式 (show the ii pattern) */
|
|
20
24
|
showIi: boolean;
|
|
@@ -40,7 +44,11 @@ export declare const metadata: {
|
|
|
40
44
|
export declare function calculate(bars: Bar[], inputs?: Partial<AlBrooksIiIoiOoInputs>): Omit<IndicatorResult, 'markers'> & {
|
|
41
45
|
markers: MarkerData[];
|
|
42
46
|
bgColors: BgColorData[];
|
|
47
|
+
} & {
|
|
48
|
+
alerts: AlertConditionState[];
|
|
43
49
|
};
|
|
50
|
+
/** The original's alertconditions */
|
|
51
|
+
export declare const alertConditions: AlertConditionDecl[];
|
|
44
52
|
export declare const AlBrooksIiIoiOo: {
|
|
45
53
|
calculate: typeof calculate;
|
|
46
54
|
metadata: {
|
|
@@ -51,5 +59,6 @@ export declare const AlBrooksIiIoiOo: {
|
|
|
51
59
|
defaultInputs: AlBrooksIiIoiOoInputs;
|
|
52
60
|
inputConfig: InputConfig[];
|
|
53
61
|
plotConfig: PlotConfig[];
|
|
62
|
+
alertConditions: AlertConditionDecl[];
|
|
54
63
|
};
|
|
55
64
|
//# sourceMappingURL=al-brooks-ii-ioi-oo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"al-brooks-ii-ioi-oo.d.ts","sourceRoot":"","sources":["../../src/community/al-brooks-ii-ioi-oo.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"al-brooks-ii-ioi-oo.d.ts","sourceRoot":"","sources":["../../src/community/al-brooks-ii-ioi-oo.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAS,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,GAAG,EAAE,MAAM,aAAa,CAAC;AACvG,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,EAAe,KAAK,kBAAkB,EAAE,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEjG,MAAM,WAAW,qBAAqB;IACpC,qCAAqC;IACrC,MAAM,EAAE,OAAO,CAAC;IAChB,qCAAqC;IACrC,MAAM,EAAE,OAAO,CAAC;IAChB,uCAAuC;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,kCAAkC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,kCAAkC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,oCAAoC;IACpC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,aAAa,EAAE,qBAO3B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAAW,EAOpC,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,qBAAqB,CAAM,GAC1C,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,GAAG;IAAE,OAAO,EAAE,UAAU,EAAE,CAAC;IAAC,QAAQ,EAAE,WAAW,EAAE,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,mBAAmB,EAAE,CAAA;CAAE,CAqE3H;AAED,qCAAqC;AACrC,eAAO,MAAM,eAAe,EAAE,kBAAkB,EAI/C,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;CAAmF,CAAC"}
|
|
@@ -9,17 +9,21 @@
|
|
|
9
9
|
* level, the high AVWAP takes the next high anchor; the low AVWAP does the same after a move down. Breakout: the close
|
|
10
10
|
* crosses above the high AVWAP (triangle above the bar and a circle at the bar midpoint).
|
|
11
11
|
*
|
|
12
|
+
* Alerts (alertcondition, `alerts` of the result): "Resistance Broken" when the open (or the close, see useOpen) is
|
|
13
|
+
* above the high AVWAP, "Support Broken" when it is below the low AVWAP, and "Breakout" for either of them.
|
|
14
|
+
*
|
|
12
15
|
* Reference: "Auto AVWAP (Anchored-VWAP) with Breakout Screener" by manoharvs
|
|
13
16
|
* Licence: Mozilla Public License 2.0, as the original Pine script (https://mozilla.org/MPL/2.0/).
|
|
14
17
|
* Original notice: © Electrified (electrifiedtrading)
|
|
15
18
|
*/
|
|
16
19
|
import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar, type SourceType } from 'oakscriptjs';
|
|
17
20
|
import type { MarkerData } from '../types';
|
|
21
|
+
import { type AlertConditionDecl, type AlertConditionState } from '../alert-states';
|
|
18
22
|
export type AutoAvwapKMode = 'SMA' | 'EMA' | 'WMA' | 'VWMA' | 'VAWMA';
|
|
19
23
|
export interface AutoAvwapWithBreakoutScreenerInputs {
|
|
20
24
|
/** Use the high and the low instead of hlc3 for the AVWAPs */
|
|
21
25
|
useHiLow: boolean;
|
|
22
|
-
/** Use the open instead of the close for the alerts
|
|
26
|
+
/** Use the open instead of the close for the alerts */
|
|
23
27
|
useOpen: boolean;
|
|
24
28
|
/** Moving average of the stochastic that gives K */
|
|
25
29
|
kMode: AutoAvwapKMode;
|
|
@@ -50,7 +54,10 @@ export declare const metadata: {
|
|
|
50
54
|
};
|
|
51
55
|
export declare function calculate(bars: Bar[], inputs?: Partial<AutoAvwapWithBreakoutScreenerInputs>): Omit<IndicatorResult, 'markers'> & {
|
|
52
56
|
markers: MarkerData[];
|
|
57
|
+
alerts: AlertConditionState[];
|
|
53
58
|
};
|
|
59
|
+
/** The original's alertconditions */
|
|
60
|
+
export declare const alertConditions: AlertConditionDecl[];
|
|
54
61
|
export declare const AutoAvwapWithBreakoutScreener: {
|
|
55
62
|
calculate: typeof calculate;
|
|
56
63
|
metadata: {
|
|
@@ -61,5 +68,6 @@ export declare const AutoAvwapWithBreakoutScreener: {
|
|
|
61
68
|
defaultInputs: AutoAvwapWithBreakoutScreenerInputs;
|
|
62
69
|
inputConfig: InputConfig[];
|
|
63
70
|
plotConfig: PlotConfig[];
|
|
71
|
+
alertConditions: AlertConditionDecl[];
|
|
64
72
|
};
|
|
65
73
|
//# sourceMappingURL=auto-avwap-with-breakout-screener.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auto-avwap-with-breakout-screener.d.ts","sourceRoot":"","sources":["../../src/community/auto-avwap-with-breakout-screener.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"auto-avwap-with-breakout-screener.d.ts","sourceRoot":"","sources":["../../src/community/auto-avwap-with-breakout-screener.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAkC,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,GAAG,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AACjJ,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAe,KAAK,kBAAkB,EAAE,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEjG,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;AAEtE,MAAM,WAAW,mCAAmC;IAClD,8DAA8D;IAC9D,QAAQ,EAAE,OAAO,CAAC;IAClB,uDAAuD;IACvD,OAAO,EAAE,OAAO,CAAC;IACjB,oDAAoD;IACpD,KAAK,EAAE,cAAc,CAAC;IACtB,wBAAwB;IACxB,GAAG,EAAE,UAAU,CAAC;IAChB,yBAAyB;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,yBAAyB;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,wBAAwB;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,uDAAuD;IACvD,aAAa,EAAE,MAAM,CAAC;IACtB,qDAAqD;IACrD,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,aAAa,EAAE,mCAa3B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAAW,EAapC,CAAC;AAQF,eAAO,MAAM,UAAU,EAAE,UAAU,EAMlC,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AAUF,wBAAgB,SAAS,CACvB,IAAI,EAAE,GAAG,EAAE,EACX,MAAM,GAAE,OAAO,CAAC,mCAAmC,CAAM,GACxD,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,GAAG;IAAE,OAAO,EAAE,UAAU,EAAE,CAAC;IAAC,MAAM,EAAE,mBAAmB,EAAE,CAAA;CAAE,CA4I7F;AAED,qCAAqC;AACrC,eAAO,MAAM,eAAe,EAAE,kBAAkB,EAI/C,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;CAOzC,CAAC"}
|
|
@@ -12,16 +12,23 @@
|
|
|
12
12
|
* Two dashed grey lines join Start, Mid and End. "Zig Zag" draws the legs of the zigzag (at most 144 lines are kept).
|
|
13
13
|
*
|
|
14
14
|
* Chart context (optional third argument of calculate): the symbol tick of the prices in the labels
|
|
15
|
-
* (`format.mintick`); without a context the tick is 0.01
|
|
16
|
-
*
|
|
15
|
+
* (`format.mintick`) and the ticker of the alert messages (`syminfo.ticker`); without a context the tick is 0.01 and
|
|
16
|
+
* the ticker empty.
|
|
17
|
+
*
|
|
18
|
+
* Alerts (alert() calls, `alertCalls` of the result, once per bar): on every bar where the close crosses a shown
|
|
19
|
+
* level (above it now and below it on the bar before, or the reverse), "AutoFibChannel: <ticker> crossing level
|
|
20
|
+
* <level>" for a channel line (its price at the bar) and "Autofib: <ticker> crossing level <level>" for a
|
|
21
|
+
* retracement / extension level, in the order of the levels.
|
|
17
22
|
*
|
|
18
23
|
* Reference: "Auto Fib Channels by DGT" by dgtrd
|
|
19
24
|
* Licence: Mozilla Public License 2.0, as the original Pine script (https://mozilla.org/MPL/2.0/).
|
|
20
25
|
* Original notice: © dgtrd
|
|
21
26
|
*/
|
|
22
27
|
import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs';
|
|
23
|
-
import type { LabelData, LineDrawingData, LinefillData, TableData } from '../types';
|
|
28
|
+
import type { AlertCall, LabelData, LineDrawingData, LinefillData, TableData } from '../types';
|
|
24
29
|
import { type ChartContext } from '../chart-context';
|
|
30
|
+
/** The original makes alert() calls */
|
|
31
|
+
export declare const hasAlertFunction = true;
|
|
25
32
|
/** The 22 levels in the order of the inputs: key, shown, value, colour, inline */
|
|
26
33
|
declare const LEVELS: readonly [readonly ["0", true, 0, "#787b86", "Level0"], readonly ["0236", true, 0.236, "#f44336", "Level0"], readonly ["0382", true, 0.382, "#81c784", "Level1"], readonly ["05", true, 0.5, "#4caf50", "Level1"], readonly ["0618", true, 0.618, "#009688", "Level2"], readonly ["065", false, 0.65, "#009688", "Level2"], readonly ["0786", true, 0.786, "#64b5f6", "Level3"], readonly ["1", true, 1, "#787b86", "Level3"], readonly ["1272", false, 1.272, "#81c784", "Level4"], readonly ["1414", false, 1.414, "#f44336", "Level4"], readonly ["1618", true, 1.618, "#2196f3", "Level5"], readonly ["165", false, 1.65, "#2196f3", "Level5"], readonly ["2618", false, 2.618, "#f44336", "Level6"], readonly ["265", false, 2.65, "#f44336", "Level6"], readonly ["3618", false, 3.618, "#9c27b0", "Level7"], readonly ["365", false, 3.65, "#9c27b0", "Level7"], readonly ["4236", false, 4.236, "#e91e63", "Level8"], readonly ["4618", false, 4.618, "#81c784", "Level8"], readonly ["Neg0236", false, -0.236, "#f44336", "Level9"], readonly ["Neg0382", false, -0.382, "#81c784", "Level9"], readonly ["Neg0618", true, -0.618, "#009688", "Level10"], readonly ["Neg065", false, -0.65, "#009688", "Level10"]];
|
|
27
34
|
type LevelKey = (typeof LEVELS)[number][0];
|
|
@@ -69,6 +76,7 @@ export declare function calculate(bars: Bar[], inputs?: Partial<AutoFibChannelsB
|
|
|
69
76
|
labels: LabelData[];
|
|
70
77
|
linefills: LinefillData[];
|
|
71
78
|
tables: TableData[];
|
|
79
|
+
alertCalls: AlertCall[];
|
|
72
80
|
};
|
|
73
81
|
export declare const AutoFibChannelsByDgt: {
|
|
74
82
|
calculate: typeof calculate;
|
|
@@ -80,6 +88,7 @@ export declare const AutoFibChannelsByDgt: {
|
|
|
80
88
|
defaultInputs: AutoFibChannelsByDgtInputs;
|
|
81
89
|
inputConfig: InputConfig[];
|
|
82
90
|
plotConfig: PlotConfig[];
|
|
91
|
+
hasAlertFunction: boolean;
|
|
83
92
|
};
|
|
84
93
|
export {};
|
|
85
94
|
//# sourceMappingURL=auto-fib-channels-by-dgt.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auto-fib-channels-by-dgt.d.ts","sourceRoot":"","sources":["../../src/community/auto-fib-channels-by-dgt.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"auto-fib-channels-by-dgt.d.ts","sourceRoot":"","sources":["../../src/community/auto-fib-channels-by-dgt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAEL,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,GAAG,EAClE,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,eAAe,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE/F,OAAO,EAAuB,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAE1E,uCAAuC;AACvC,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAErC,kFAAkF;AAClF,QAAA,MAAM,MAAM,4pCAuBF,CAAC;AAMX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AAE3C,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AA4BF,wBAAgB,SAAS,CACvB,IAAI,EAAE,GAAG,EAAE,EACX,MAAM,GAAE,OAAO,CAAC,0BAA0B,CAAM,EAChD,KAAK,CAAC,EAAE,YAAY,GACnB,IAAI,CAAC,eAAe,EAAE,OAAO,GAAG,QAAQ,GAAG,WAAW,GAAG,QAAQ,CAAC,GAAG;IACpE,KAAK,EAAE,eAAe,EAAE,CAAC;IAAC,MAAM,EAAE,SAAS,EAAE,CAAC;IAAC,SAAS,EAAE,YAAY,EAAE,CAAC;IAAC,MAAM,EAAE,SAAS,EAAE,CAAC;IAAC,UAAU,EAAE,SAAS,EAAE,CAAC;CACxH,CA6PF;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;CAOhC,CAAC"}
|
|
@@ -15,15 +15,19 @@
|
|
|
15
15
|
* "Zig Zag" draws the legs of the zigzag.
|
|
16
16
|
*
|
|
17
17
|
* Chart context (optional third argument of calculate): the symbol tick of the prices in the labels
|
|
18
|
-
* (`format.mintick`); without a context the tick is 0.01.
|
|
19
|
-
*
|
|
18
|
+
* (`format.mintick`) and the ticker of the alert messages; without a context the tick is 0.01.
|
|
19
|
+
*
|
|
20
|
+
* Alerts (alert() calls, `alertCalls` of the result, once per bar), on every bar in the original's order:
|
|
21
|
+
* "AutoFibFan: new zigzag" when the end of the last completed leg changed, then for each fan / grid line drawn on
|
|
22
|
+
* the bar (price levels, then time levels) "AutoFibFan: <ticker> crossing <price|time|grid> level <level>" when the
|
|
23
|
+
* line's price at the bar (the line read as extended both ways) is strictly between the close and the previous close.
|
|
20
24
|
*
|
|
21
25
|
* Reference: "Auto Fib Speed Resistance Fans by DGT" by dgtrd
|
|
22
26
|
* Licence: Mozilla Public License 2.0, as the original Pine script (https://mozilla.org/MPL/2.0/).
|
|
23
27
|
* Original notice: © dgtrd
|
|
24
28
|
*/
|
|
25
29
|
import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs';
|
|
26
|
-
import type { LabelData, LineDrawingData, LinefillData, TableData } from '../types';
|
|
30
|
+
import type { AlertCall, LabelData, LineDrawingData, LinefillData, TableData } from '../types';
|
|
27
31
|
import { type ChartContext } from '../chart-context';
|
|
28
32
|
type LineStyleInput = 'Dashed' | 'Dotted' | 'Solid';
|
|
29
33
|
type LabelContent = 'Levels' | 'Prices' | 'Levels (Prices)' | 'None';
|
|
@@ -82,7 +86,9 @@ export declare function calculate(bars: Bar[], inputs?: Partial<AutoFibSpeedResi
|
|
|
82
86
|
labels: LabelData[];
|
|
83
87
|
linefills: LinefillData[];
|
|
84
88
|
tables: TableData[];
|
|
89
|
+
alertCalls: AlertCall[];
|
|
85
90
|
};
|
|
91
|
+
export declare const hasAlertFunction = true;
|
|
86
92
|
export declare const AutoFibSpeedResistanceFansByDgt: {
|
|
87
93
|
calculate: typeof calculate;
|
|
88
94
|
metadata: {
|
|
@@ -93,6 +99,7 @@ export declare const AutoFibSpeedResistanceFansByDgt: {
|
|
|
93
99
|
defaultInputs: AutoFibSpeedResistanceFansByDgtInputs;
|
|
94
100
|
inputConfig: InputConfig[];
|
|
95
101
|
plotConfig: PlotConfig[];
|
|
102
|
+
hasAlertFunction: boolean;
|
|
96
103
|
};
|
|
97
104
|
export {};
|
|
98
105
|
//# sourceMappingURL=auto-fib-speed-resistance-fans-by-dgt.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auto-fib-speed-resistance-fans-by-dgt.d.ts","sourceRoot":"","sources":["../../src/community/auto-fib-speed-resistance-fans-by-dgt.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"auto-fib-speed-resistance-fans-by-dgt.d.ts","sourceRoot":"","sources":["../../src/community/auto-fib-speed-resistance-fans-by-dgt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAEL,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,KAAK,UA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,gBAAgB,OAAO,CAAC;AAErC,eAAO,MAAM,+BAA+B;;;;;;;;;;;CAO3C,CAAC"}
|
|
@@ -14,14 +14,20 @@
|
|
|
14
14
|
* are kept.
|
|
15
15
|
*
|
|
16
16
|
* Chart value read from the optional third argument (see src/chart-context.ts): the symbol tick for the prices in
|
|
17
|
-
* label texts and tooltips (0.01 without it)
|
|
17
|
+
* label texts and tooltips (0.01 without it) and the ticker for the alert messages (empty without it).
|
|
18
|
+
*
|
|
19
|
+
* Alerts (alert() calls, `alertCalls` of the result, once per bar): on every bar on which the close crosses a level
|
|
20
|
+
* (the level between the close and the previous close), "AutoPitchFan: <ticker> crossing median level", "...
|
|
21
|
+
* crossing resistance level <level>" / "... crossing support level <level>" for each pitchfan level shown, and
|
|
22
|
+
* "AutoFib Retracment : <ticker> crossing level <level>" (or "AutoFib Extention : ...") for each Fibonacci level shown,
|
|
23
|
+
* in the order of the original.
|
|
18
24
|
*
|
|
19
25
|
* Reference: "Auto PitchFan, Fib Extension/Retracement and ZigZag by DGT" by dgtrd
|
|
20
26
|
* Licence: Mozilla Public License 2.0, as the original Pine script (https://mozilla.org/MPL/2.0/).
|
|
21
27
|
* Original notice: © dgtrd
|
|
22
28
|
*/
|
|
23
29
|
import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs';
|
|
24
|
-
import type { LabelData, LineDrawingData, LinefillData, TableData } from '../types';
|
|
30
|
+
import type { LabelData, LineDrawingData, LinefillData, TableData, AlertCall } from '../types';
|
|
25
31
|
import { type ChartContext } from '../chart-context';
|
|
26
32
|
type PitchLabels = 'Levels' | 'Prices' | 'Levels (Prices)' | 'None';
|
|
27
33
|
type LineStyleName = 'Dashed' | 'Dotted' | 'Solid';
|
|
@@ -87,7 +93,9 @@ export declare function calculate(bars: Bar[], inputs?: Partial<AutoPitchfanFibE
|
|
|
87
93
|
labels: LabelData[];
|
|
88
94
|
linefills: LinefillData[];
|
|
89
95
|
tables: TableData[];
|
|
96
|
+
alertCalls: AlertCall[];
|
|
90
97
|
};
|
|
98
|
+
export declare const hasAlertFunction = true;
|
|
91
99
|
export declare const AutoPitchfanFibExtensionRetracementAnd: {
|
|
92
100
|
calculate: typeof calculate;
|
|
93
101
|
metadata: {
|
|
@@ -98,6 +106,7 @@ export declare const AutoPitchfanFibExtensionRetracementAnd: {
|
|
|
98
106
|
defaultInputs: AutoPitchfanFibExtensionRetracementAndInputs;
|
|
99
107
|
inputConfig: InputConfig[];
|
|
100
108
|
plotConfig: PlotConfig[];
|
|
109
|
+
hasAlertFunction: boolean;
|
|
101
110
|
};
|
|
102
111
|
export {};
|
|
103
112
|
//# sourceMappingURL=auto-pitchfan-fib-extension-retracement-and.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auto-pitchfan-fib-extension-retracement-and.d.ts","sourceRoot":"","sources":["../../src/community/auto-pitchfan-fib-extension-retracement-and.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"auto-pitchfan-fib-extension-retracement-and.d.ts","sourceRoot":"","sources":["../../src/community/auto-pitchfan-fib-extension-retracement-and.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAEiC,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,GAAG,EACxG,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC/F,OAAO,EAAuB,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAG1E,KAAK,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,iBAAiB,GAAG,MAAM,CAAC;AACpE,KAAK,aAAa,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AACnD,KAAK,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEnC,kGAAkG;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,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,aAAa,CAAC;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,aAAa,CAAC;IACvB,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,cAAc,GAAG,YAAY,CAAC;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,UAAU,GAAG,aAAa,CAAC;IACpC,OAAO,EAAE,QAAQ,CAAC;CACnB;AAWD,eAAO,MAAM,aAAa,EAAE,4CAwB3B,CAAC;AAkBF,eAAO,MAAM,WAAW,EAAE,WAAW,EAqCpC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAAU,EAAO,CAAC;AAE3C,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AAiCF,wBAAgB,SAAS,CACvB,IAAI,EAAE,GAAG,EAAE,EACX,MAAM,GAAE,OAAO,CAAC,4CAA4C,CAAM,EAClE,KAAK,CAAC,EAAE,YAAY,GACnB,eAAe,GAAG;IACnB,KAAK,EAAE,eAAe,EAAE,CAAC;IAAC,MAAM,EAAE,SAAS,EAAE,CAAC;IAAC,SAAS,EAAE,YAAY,EAAE,CAAC;IAAC,MAAM,EAAE,SAAS,EAAE,CAAC;IAAC,UAAU,EAAE,SAAS,EAAE,CAAC;CACxH,CAgRA;AAED,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAErC,eAAO,MAAM,sCAAsC;;;;;;;;;;;CAOlD,CAAC"}
|
|
@@ -20,7 +20,14 @@
|
|
|
20
20
|
* "Weekly" pivots (UTC without it), and the current time for the "Last Bar" position of the pivot labels (the clock
|
|
21
21
|
* of the computer without it).
|
|
22
22
|
* Limits of the port: the periods of the higher timeframe come from the UTC calendar and the bars (see
|
|
23
|
-
* src/anchor-period.ts)
|
|
23
|
+
* src/anchor-period.ts).
|
|
24
|
+
*
|
|
25
|
+
* Alerts (alert() calls, `alertCalls` of the result), on every bar as the original runs them: the close crossing the
|
|
26
|
+
* median line or a shown level of a pitchfork ("AutoPitchfork: <ticker> crossing median level", "... crossing
|
|
27
|
+
* resistance level<level>" / "support level<level>"; "AutoPitchfork2: ..." for the median of the second one) or a
|
|
28
|
+
* shown Fibonacci level ("AutoFib Extention : <ticker> crossing level <level>"), at the values of that bar; on the
|
|
29
|
+
* last bar, the close crossing a shown Camarilla level ("Camarilla (PVTvX) : <ticker> crossing Camarilla level R3
|
|
30
|
+
* level, price <price>"). Crossing: the level is between the close and the close of the bar before.
|
|
24
31
|
*
|
|
25
32
|
* Periods and the chart context (optional third argument of calculate): with the exchange time zone and the session
|
|
26
33
|
* of the symbol (`timezone`, `session`) the periods are those of the exchange calendar (its trading days, holidays
|
|
@@ -33,7 +40,7 @@
|
|
|
33
40
|
* Original notice: © dgtrd
|
|
34
41
|
*/
|
|
35
42
|
import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs';
|
|
36
|
-
import type { LabelData, LineDrawingData, LinefillData, TableData } from '../types';
|
|
43
|
+
import type { AlertCall, LabelData, LineDrawingData, LinefillData, TableData } from '../types';
|
|
37
44
|
import { type ChartContext } from '../chart-context';
|
|
38
45
|
type PitchforkType = 'Original' | 'Schiff' | 'Modified Schiff' | 'Inside';
|
|
39
46
|
type PitchLabels = 'Levels' | 'Prices' | 'Levels (Prices)' | 'None';
|
|
@@ -139,7 +146,10 @@ export declare function calculate(bars: Bar[], inputs?: Partial<AutoPitchforkFib
|
|
|
139
146
|
labels: LabelData[];
|
|
140
147
|
linefills: LinefillData[];
|
|
141
148
|
tables: TableData[];
|
|
149
|
+
alertCalls: AlertCall[];
|
|
142
150
|
};
|
|
151
|
+
/** The original calls alert() (crossed pitchfork, Fibonacci and Camarilla levels) */
|
|
152
|
+
export declare const hasAlertFunction = true;
|
|
143
153
|
export declare const AutoPitchforkFibRetracementZigZag: {
|
|
144
154
|
calculate: typeof calculate;
|
|
145
155
|
metadata: {
|
|
@@ -150,6 +160,7 @@ export declare const AutoPitchforkFibRetracementZigZag: {
|
|
|
150
160
|
defaultInputs: AutoPitchforkFibRetracementZigZagInputs;
|
|
151
161
|
inputConfig: InputConfig[];
|
|
152
162
|
plotConfig: PlotConfig[];
|
|
163
|
+
hasAlertFunction: boolean;
|
|
153
164
|
};
|
|
154
165
|
export {};
|
|
155
166
|
//# sourceMappingURL=auto-pitchfork-fib-retracement-zig-zag.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auto-pitchfork-fib-retracement-zig-zag.d.ts","sourceRoot":"","sources":["../../src/community/auto-pitchfork-fib-retracement-zig-zag.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"auto-pitchfork-fib-retracement-zig-zag.d.ts","sourceRoot":"","sources":["../../src/community/auto-pitchfork-fib-retracement-zig-zag.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,OAAO,EAAqD,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,GAAG,EAAE,MAAM,aAAa,CAAC;AACnJ,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,eAAe,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC/F,OAAO,EAA0C,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAI7F,KAAK,aAAa,GAAG,UAAU,GAAG,QAAQ,GAAG,iBAAiB,GAAG,QAAQ,CAAC;AAC1E,KAAK,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,iBAAiB,GAAG,MAAM,CAAC;AACpE,KAAK,aAAa,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AACnD,KAAK,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEnC,yGA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MAAM,EAAE,SAAS,EAAE,CAAC;IAAC,UAAU,EAAE,SAAS,EAAE,CAAA;CAAE,CAse9I;AAED,qFAAqF;AACrF,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAErC,eAAO,MAAM,iCAAiC;;;;;;;;;;;CAO7C,CAAC"}
|
|
@@ -20,16 +20,24 @@
|
|
|
20
20
|
* it; 0.01 without a context) and the state of the last bar. When the context says that the last bar is still open,
|
|
21
21
|
* no pivot zone is made on it and, with "Wait For Confirmed Bar", no candlestick pattern is detected on it, as in
|
|
22
22
|
* the original. Without a context every bar is a closed bar and "Wait For Confirmed Bar" has no effect.
|
|
23
|
-
* The
|
|
24
|
-
*
|
|
23
|
+
* The height of the false break arrows (third "False Break Color" input) is not ported.
|
|
24
|
+
*
|
|
25
|
+
* Alerts: the eight alertcondition() calls of the original (resistance / support break, found support /
|
|
26
|
+
* resistance, false break down / up, breakout, breakdown; raw conditions, without the "Detect" inputs), and the
|
|
27
|
+
* alert() calls (`alertCalls` of the result, frequency "Alerts Mode") of the signals shown and of the 18 candlestick
|
|
28
|
+
* patterns: "<text><timeframe> chart. Price is <close>", the timeframe as the original's language version gives it
|
|
29
|
+
* ("D" / "W" / "M" for one day / week / month; chart context `timeframe`, else from the bar spacing).
|
|
25
30
|
*
|
|
26
31
|
* Reference: "Bjorgum Key Levels" by Bjorgum
|
|
27
32
|
* Licence: Mozilla Public License 2.0, as the original Pine script (https://mozilla.org/MPL/2.0/).
|
|
28
33
|
* Original notice: © Bjorgum
|
|
29
34
|
*/
|
|
30
35
|
import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs';
|
|
31
|
-
import type { MarkerData, BoxData, LabelData, LineDrawingData } from '../types';
|
|
36
|
+
import type { AlertCall, MarkerData, BoxData, LabelData, LineDrawingData } from '../types';
|
|
32
37
|
import { type ChartContext } from '../chart-context';
|
|
38
|
+
import { type AlertConditionDecl, type AlertConditionState } from '../alert-states';
|
|
39
|
+
/** The original makes alert() calls */
|
|
40
|
+
export declare const hasAlertFunction = true;
|
|
33
41
|
export interface BjorgumKeyLevelsInputs {
|
|
34
42
|
left: number;
|
|
35
43
|
right: number;
|
|
@@ -72,7 +80,7 @@ export interface BjorgumKeyLevelsInputs {
|
|
|
72
80
|
detectPiercingCloud: boolean;
|
|
73
81
|
detectHarami: boolean;
|
|
74
82
|
detectLongShadows: boolean;
|
|
75
|
-
/** Alerts Mode
|
|
83
|
+
/** Alerts Mode: frequency of the alert() calls */
|
|
76
84
|
alertMode: 'once_per_bar' | 'once_per_bar_close';
|
|
77
85
|
ecWick: boolean;
|
|
78
86
|
colorMatch: boolean;
|
|
@@ -138,7 +146,12 @@ export declare function calculate(bars: Bar[], inputs?: Partial<BjorgumKeyLevels
|
|
|
138
146
|
boxes: BoxData[];
|
|
139
147
|
labels: LabelData[];
|
|
140
148
|
lines: LineDrawingData[];
|
|
149
|
+
} & {
|
|
150
|
+
alerts: AlertConditionState[];
|
|
151
|
+
alertCalls: AlertCall[];
|
|
141
152
|
};
|
|
153
|
+
/** The original's alertconditions */
|
|
154
|
+
export declare const alertConditions: AlertConditionDecl[];
|
|
142
155
|
export declare const BjorgumKeyLevels: {
|
|
143
156
|
calculate: typeof calculate;
|
|
144
157
|
metadata: {
|
|
@@ -149,5 +162,7 @@ export declare const BjorgumKeyLevels: {
|
|
|
149
162
|
defaultInputs: BjorgumKeyLevelsInputs;
|
|
150
163
|
inputConfig: InputConfig[];
|
|
151
164
|
plotConfig: PlotConfig[];
|
|
165
|
+
alertConditions: AlertConditionDecl[];
|
|
166
|
+
hasAlertFunction: boolean;
|
|
152
167
|
};
|
|
153
168
|
//# sourceMappingURL=bjorgum-key-levels.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bjorgum-key-levels.d.ts","sourceRoot":"","sources":["../../src/community/bjorgum-key-levels.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"bjorgum-key-levels.d.ts","sourceRoot":"","sources":["../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,EAAE,SAAS,EAAE,CAAC;IAAC,KAAK,EAAE,eAAe,EAAE,CAAA;CAAE,GAC5H;IAAE,MAAM,EAAE,mBAAmB,EAAE,CAAC;IAAC,UAAU,EAAE,SAAS,EAAE,CAAA;CAAE,CAgkB7D;AAED,qCAAqC;AACrC,eAAO,MAAM,eAAe,EAAE,kBAAkB,EAS/C,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;CAAqG,CAAC"}
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
* direction is drawn, with a circle and a Buy / Sell label on direction changes and a fill between ohlc4 and the
|
|
9
9
|
* stop.
|
|
10
10
|
*
|
|
11
|
+
* Alert conditions (`alerts` of the result): "CE Direction Change" (the direction differs from the previous bar's),
|
|
12
|
+
* "CE Buy" and "CE Sell" (the Buy / Sell signals). With "Await Bar Confirmation" they are false on a last bar that
|
|
13
|
+
* is still open (`barstate.isconfirmed`, from the chart context, third argument of calculate).
|
|
14
|
+
*
|
|
11
15
|
* Reference: "Chandelier Exit" by Cryptokingworld91 (published as "Buy & Sell - Accurate Signals")
|
|
12
16
|
* Licence: Mozilla Public License 2.0, as the original Pine script (https://mozilla.org/MPL/2.0/).
|
|
13
17
|
* Original notice: Copyright (c) 2019-present, Alex Orekhov (everget). Chandelier Exit script may be freely
|
|
@@ -15,6 +19,8 @@
|
|
|
15
19
|
*/
|
|
16
20
|
import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs';
|
|
17
21
|
import type { MarkerData } from '../types';
|
|
22
|
+
import { type AlertConditionDecl, type AlertConditionState } from '../alert-states';
|
|
23
|
+
import { type ChartContext } from '../chart-context';
|
|
18
24
|
export interface BuySellAccurateSignalsInputs {
|
|
19
25
|
/** ATR period (also the highest / lowest window) */
|
|
20
26
|
length: number;
|
|
@@ -25,7 +31,7 @@ export interface BuySellAccurateSignalsInputs {
|
|
|
25
31
|
showLabels: boolean;
|
|
26
32
|
/** Fill between ohlc4 and the stop of the current direction */
|
|
27
33
|
highlightState: boolean;
|
|
28
|
-
/**
|
|
34
|
+
/** Alert conditions only on confirmed bars */
|
|
29
35
|
awaitBarConfirmation: boolean;
|
|
30
36
|
}
|
|
31
37
|
export declare const defaultInputs: BuySellAccurateSignalsInputs;
|
|
@@ -36,9 +42,12 @@ export declare const metadata: {
|
|
|
36
42
|
shortTitle: string;
|
|
37
43
|
overlay: boolean;
|
|
38
44
|
};
|
|
39
|
-
export declare function calculate(bars: Bar[], inputs?: Partial<BuySellAccurateSignalsInputs
|
|
45
|
+
export declare function calculate(bars: Bar[], inputs?: Partial<BuySellAccurateSignalsInputs>, chart?: ChartContext): Omit<IndicatorResult, 'markers'> & {
|
|
40
46
|
markers: MarkerData[];
|
|
47
|
+
alerts: AlertConditionState[];
|
|
41
48
|
};
|
|
49
|
+
/** The original's alertconditions */
|
|
50
|
+
export declare const alertConditions: AlertConditionDecl[];
|
|
42
51
|
export declare const BuySellAccurateSignals: {
|
|
43
52
|
calculate: typeof calculate;
|
|
44
53
|
metadata: {
|
|
@@ -49,5 +58,6 @@ export declare const BuySellAccurateSignals: {
|
|
|
49
58
|
defaultInputs: BuySellAccurateSignalsInputs;
|
|
50
59
|
inputConfig: InputConfig[];
|
|
51
60
|
plotConfig: PlotConfig[];
|
|
61
|
+
alertConditions: AlertConditionDecl[];
|
|
52
62
|
};
|
|
53
63
|
//# sourceMappingURL=buy-sell-accurate-signals.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buy-sell-accurate-signals.d.ts","sourceRoot":"","sources":["../../src/community/buy-sell-accurate-signals.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"buy-sell-accurate-signals.d.ts","sourceRoot":"","sources":["../../src/community/buy-sell-accurate-signals.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;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;AACjG,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEzE,MAAM,WAAW,4BAA4B;IAC3C,oDAAoD;IACpD,MAAM,EAAE,MAAM,CAAC;IACf,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,+DAA+D;IAC/D,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,+DAA+D;IAC/D,cAAc,EAAE,OAAO,CAAC;IACxB,8CAA8C;IAC9C,oBAAoB,EAAE,OAAO,CAAC;CAC/B;AAED,eAAO,MAAM,aAAa,EAAE,4BAO3B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAAW,EAOpC,CAAC;AAOF,eAAO,MAAM,UAAU,EAAE,UAAU,EAIlC,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AAOF,wBAAgB,SAAS,CACvB,IAAI,EAAE,GAAG,EAAE,EACX,MAAM,GAAE,OAAO,CAAC,4BAA4B,CAAM,EAClD,KAAK,CAAC,EAAE,YAAY,GACnB,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,GAAG;IAAE,OAAO,EAAE,UAAU,EAAE,CAAC;IAAC,MAAM,EAAE,mBAAmB,EAAE,CAAA;CAAE,CAyF7F;AAED,qCAAqC;AACrC,eAAO,MAAM,eAAe,EAAE,kBAAkB,EAI/C,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;CAOlC,CAAC"}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* Buy: the prior bar is bearish, the current bar is bullish and closes above the prior open, and one of the last 4
|
|
5
5
|
* long-term lows (lowest low of the long period, 1 to 4 bars back) is above the near-term low (lowest low of the near
|
|
6
6
|
* period). Sell: the mirror rule with highs. A buy draws a triangle below the bar, a sell a triangle above the bar.
|
|
7
|
+
* Alerts (alertcondition, `alerts` of the result): 'Buy Signal' and 'Sell Signal', true on the bars of each signal.
|
|
7
8
|
*
|
|
8
9
|
* Reference: "Dead Simple Reversal" by B3AR_Trades (converted from "p2f - Dead Simple Reversal" by paidtofade;
|
|
9
10
|
* original concept "Dead Simple Reversal Points" by BenTen)
|
|
@@ -11,6 +12,7 @@
|
|
|
11
12
|
*/
|
|
12
13
|
import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs';
|
|
13
14
|
import type { MarkerData } from '../types';
|
|
15
|
+
import { type AlertConditionDecl, type AlertConditionState } from '../alert-states';
|
|
14
16
|
export interface DeadSimpleReversalInputs {
|
|
15
17
|
/** Near Term Period */
|
|
16
18
|
nearTerm: number;
|
|
@@ -33,7 +35,11 @@ export declare const metadata: {
|
|
|
33
35
|
};
|
|
34
36
|
export declare function calculate(bars: Bar[], inputs?: Partial<DeadSimpleReversalInputs>): Omit<IndicatorResult, 'markers'> & {
|
|
35
37
|
markers: MarkerData[];
|
|
38
|
+
} & {
|
|
39
|
+
alerts: AlertConditionState[];
|
|
36
40
|
};
|
|
41
|
+
/** The original's alertconditions */
|
|
42
|
+
export declare const alertConditions: AlertConditionDecl[];
|
|
37
43
|
export declare const DeadSimpleReversal: {
|
|
38
44
|
calculate: typeof calculate;
|
|
39
45
|
metadata: {
|
|
@@ -44,5 +50,6 @@ export declare const DeadSimpleReversal: {
|
|
|
44
50
|
defaultInputs: DeadSimpleReversalInputs;
|
|
45
51
|
inputConfig: InputConfig[];
|
|
46
52
|
plotConfig: PlotConfig[];
|
|
53
|
+
alertConditions: AlertConditionDecl[];
|
|
47
54
|
};
|
|
48
55
|
//# sourceMappingURL=dead-simple-reversal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dead-simple-reversal.d.ts","sourceRoot":"","sources":["../../src/community/dead-simple-reversal.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"dead-simple-reversal.d.ts","sourceRoot":"","sources":["../../src/community/dead-simple-reversal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;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,wBAAwB;IACvC,uBAAuB;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,uBAAuB;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,sBAAsB;IACtB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,aAAa,EAAE,wBAM3B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAAW,EAMpC,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,wBAAwB,CAAM,GAC7C,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,GAAG;IAAE,OAAO,EAAE,UAAU,EAAE,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,mBAAmB,EAAE,CAAA;CAAE,CAwDlG;AAED,qCAAqC;AACrC,eAAO,MAAM,eAAe,EAAE,kBAAkB,EAG/C,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;CAAmF,CAAC"}
|