nexustrade 1.28.1 → 1.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -239,7 +239,7 @@ price target. Live option strategies must choose an explicit Limit policy.
|
|
|
239
239
|
|
|
240
240
|
| Group | Examples |
|
|
241
241
|
| ------------------- | -------------------------------------------------------------------------------------------- |
|
|
242
|
-
| **Price & volume** | `Price` `OpeningPrice` `HighOfDay` `MinuteBarHigh` `MinuteBarLow` `VWAP` `Volume` `GapPercentage` |
|
|
242
|
+
| **Price & volume** | `Price` `OpeningPrice` `HighOfDay` `MinuteBarHigh` `MinuteBarLow` `HeikinAshi` `VWAP` `Volume` `GapPercentage` |
|
|
243
243
|
| **Technicals** | `SMA` `EMA` `RSI` `BollingerBand` `AverageTrueRange` `CrossAbove` |
|
|
244
244
|
| **Position state** | `PositionValue` `PositionPercentChange` `PositionMaxDrawdown` |
|
|
245
245
|
| **Portfolio state** | `PortfolioValue` `BuyingPower` `MaxDrawdown` `InitialValue` |
|
|
@@ -42,6 +42,7 @@ exports.Exponentiation = Exponentiation;
|
|
|
42
42
|
exports.Fundamental = Fundamental;
|
|
43
43
|
exports.GapPercentage = GapPercentage;
|
|
44
44
|
exports.GapSize = GapSize;
|
|
45
|
+
exports.HeikinAshi = HeikinAshi;
|
|
45
46
|
exports.HighOfDay = HighOfDay;
|
|
46
47
|
exports.IchimokuCloud = IchimokuCloud;
|
|
47
48
|
exports.ImpliedVolatility = ImpliedVolatility;
|
|
@@ -907,6 +908,17 @@ function GapSize(asset) {
|
|
|
907
908
|
setAsset(d, "targetAsset", asset);
|
|
908
909
|
return d;
|
|
909
910
|
}
|
|
911
|
+
/**
|
|
912
|
+
* HeikinAshi indicator.
|
|
913
|
+
* @param asset Ticker name (ex. SPY, BTC)
|
|
914
|
+
* @param line Which one-minute Heikin-Ashi value to evaluate. streak is the signed length of the current same-color run (0 once it shows an opposite-direction wick, and on a doji)
|
|
915
|
+
*/
|
|
916
|
+
function HeikinAshi(asset, line = "close") {
|
|
917
|
+
const d = { type: "HeikinAshi" };
|
|
918
|
+
setAsset(d, "targetAsset", asset);
|
|
919
|
+
d["line"] = line;
|
|
920
|
+
return d;
|
|
921
|
+
}
|
|
910
922
|
/**
|
|
911
923
|
* HighOfDay indicator.
|
|
912
924
|
* @param asset Ticker name (ex. SPY, BTC)
|
|
@@ -921,6 +921,12 @@ export declare function GapPercentage(asset: AssetArg): Indicator;
|
|
|
921
921
|
* @param asset Ticker name (ex. SPY, BTC)
|
|
922
922
|
*/
|
|
923
923
|
export declare function GapSize(asset: AssetArg): Indicator;
|
|
924
|
+
/**
|
|
925
|
+
* HeikinAshi indicator.
|
|
926
|
+
* @param asset Ticker name (ex. SPY, BTC)
|
|
927
|
+
* @param line Which one-minute Heikin-Ashi value to evaluate. streak is the signed length of the current same-color run (0 once it shows an opposite-direction wick, and on a doji)
|
|
928
|
+
*/
|
|
929
|
+
export declare function HeikinAshi(asset: AssetArg, line?: "open" | "high" | "low" | "close" | "streak"): Indicator;
|
|
924
930
|
/**
|
|
925
931
|
* HighOfDay indicator.
|
|
926
932
|
* @param asset Ticker name (ex. SPY, BTC)
|
|
@@ -713,6 +713,17 @@ export function GapSize(asset) {
|
|
|
713
713
|
setAsset(d, "targetAsset", asset);
|
|
714
714
|
return d;
|
|
715
715
|
}
|
|
716
|
+
/**
|
|
717
|
+
* HeikinAshi indicator.
|
|
718
|
+
* @param asset Ticker name (ex. SPY, BTC)
|
|
719
|
+
* @param line Which one-minute Heikin-Ashi value to evaluate. streak is the signed length of the current same-color run (0 once it shows an opposite-direction wick, and on a doji)
|
|
720
|
+
*/
|
|
721
|
+
export function HeikinAshi(asset, line = "close") {
|
|
722
|
+
const d = { type: "HeikinAshi" };
|
|
723
|
+
setAsset(d, "targetAsset", asset);
|
|
724
|
+
d["line"] = line;
|
|
725
|
+
return d;
|
|
726
|
+
}
|
|
716
727
|
/**
|
|
717
728
|
* HighOfDay indicator.
|
|
718
729
|
* @param asset Ticker name (ex. SPY, BTC)
|