nexustrade 3.1.1 → 3.2.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.
@@ -789,7 +789,7 @@ function Correlation(operands, length = 60, interval = "Day") {
789
789
  * Count matching intervals inside a time lookback. The ordinary condition owns comparisons/events. countInterval contributes at most one match per interval; omitted means one unit of the lookback interval. TradingDay skips closed exchange dates.
790
790
  * @param condition Ordinary condition whose matching intervals are counted.
791
791
  * @param length Lookback length.
792
- * @param interval Lookback time unit; TradingDay uses observed exchange sessions.
792
+ * @param interval Lookback time unit; TradingDay uses observed exchange sessions and TradingMinute (at most 1439) counts regular-session minutes across closed periods.
793
793
  * @param countInterval Count at most once per this interval. Omit for one unit of the lookback interval.
794
794
  */
795
795
  function CountTrue(condition, length = 1, interval = "Day", countInterval) {
@@ -608,7 +608,7 @@ export interface Portfolio {
608
608
  }
609
609
  export type DividendPolicy = "cash" | "reinvest";
610
610
  export type AssetType = "Stock" | "Cryptocurrency" | "Option" | "Other";
611
- export type Interval = "Day" | "Hour" | "Minute" | "TradingDay";
611
+ export type Interval = "Day" | "Hour" | "Minute" | "TradingDay" | "TradingMinute";
612
612
  export type Comparator = "lessThan" | "greaterThan" | "lessThanOrEqual" | "greaterThanOrEqual" | "equal" | "notEqual";
613
613
  export type SelectDirection = "Highest" | "Lowest";
614
614
  export type UniverseSource = "ALL_US_STOCKS" | "SP500" | "NASDAQ100" | "DJIA" | "CRYPTO" | "SPECIFIC_ASSETS" | "WATCHLIST";
@@ -1025,7 +1025,7 @@ export declare function Correlation(operands: Indicator[], length?: number, inte
1025
1025
  * Count matching intervals inside a time lookback. The ordinary condition owns comparisons/events. countInterval contributes at most one match per interval; omitted means one unit of the lookback interval. TradingDay skips closed exchange dates.
1026
1026
  * @param condition Ordinary condition whose matching intervals are counted.
1027
1027
  * @param length Lookback length.
1028
- * @param interval Lookback time unit; TradingDay uses observed exchange sessions.
1028
+ * @param interval Lookback time unit; TradingDay uses observed exchange sessions and TradingMinute (at most 1439) counts regular-session minutes across closed periods.
1029
1029
  * @param countInterval Count at most once per this interval. Omit for one unit of the lookback interval.
1030
1030
  */
1031
1031
  export declare function CountTrue(condition: Condition, length?: number, interval?: Interval, countInterval?: {
@@ -556,7 +556,7 @@ export function Correlation(operands, length = 60, interval = "Day") {
556
556
  * Count matching intervals inside a time lookback. The ordinary condition owns comparisons/events. countInterval contributes at most one match per interval; omitted means one unit of the lookback interval. TradingDay skips closed exchange dates.
557
557
  * @param condition Ordinary condition whose matching intervals are counted.
558
558
  * @param length Lookback length.
559
- * @param interval Lookback time unit; TradingDay uses observed exchange sessions.
559
+ * @param interval Lookback time unit; TradingDay uses observed exchange sessions and TradingMinute (at most 1439) counts regular-session minutes across closed periods.
560
560
  * @param countInterval Count at most once per this interval. Omit for one unit of the lookback interval.
561
561
  */
562
562
  export function CountTrue(condition, length = 1, interval = "Day", countInterval) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexustrade",
3
- "version": "3.1.1",
3
+ "version": "3.2.0",
4
4
  "description": "Typed TypeScript SDK for NexusTrade portfolio authoring, backtesting, and optimization",
5
5
  "license": "MIT",
6
6
  "author": "Starks Technology",