@guihz/trading-vue-editor-tes 0.0.21 → 0.0.22

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,10 +14,10 @@ import BuildInLine, { ILineArgs, Line } from "./line";
14
14
  import BuildInLinefill, { TLinefill, Linefill } from "./linefill";
15
15
  import BuildInBox, { IBoxArgs, Box } from "./box";
16
16
  import BuildInTable, { ITableArgs, Table } from "./table";
17
- import Strategy from './strategy';
17
+ import Strategy, { IOrder } from './strategy';
18
18
  import { Log } from './log';
19
19
  import { Runtime } from './runtime';
20
20
  export { TccErrorListener } from './errorListener';
21
21
  export type { IColorArgs } from './color';
22
22
  export { BuildInArray, BuildInMath, BuildInTa, BuildInInput, BuildInColor, BuildInMatrix, ChartPoint, Point, BuildInTimeframe, BuildInStr, BuildInMap, PseudoArray, VInputType, BuildInLabel, BuildInPolyline, BuildInLine, Label, Polyline, Line, BuildInLinefill, Linefill, BuildInBox, Box, BuildInTable, Table, Log, Runtime, Strategy };
23
- export type { PartialLabelArgs, IPolyline, ILineArgs, TLinefill, IBoxArgs, ITableArgs };
23
+ export type { PartialLabelArgs, IPolyline, ILineArgs, TLinefill, IBoxArgs, ITableArgs, IOrder };
@@ -35,10 +35,6 @@ interface IInputArgs {
35
35
  index?: number;
36
36
  modifyDefval?: TSimpleType;
37
37
  }
38
- interface IGruop {
39
- name?: string;
40
- inputs: IInputArgs[];
41
- }
42
38
  declare class Input {
43
39
  private _cacheData;
44
40
  private _variables;
@@ -64,7 +60,7 @@ declare class Input {
64
60
  private _cacheHandle;
65
61
  private _judgeHistoryInputs;
66
62
  private _displayVerify;
67
- getInputs(): IGruop[];
63
+ getInputs(): IInputArgs[];
68
64
  private _getGroups;
69
65
  }
70
66
  export default Input;
@@ -55,12 +55,13 @@ interface IOrderArgs {
55
55
  profit?: number;
56
56
  }
57
57
  type PlaceOrderType = 'order' | 'entry' | 'exit' | 'close' | 'close_all';
58
- interface IOrder extends IOrderArgs {
58
+ export interface IOrder extends IOrderArgs {
59
59
  isMarketPrice?: boolean;
60
60
  in_price: number;
61
61
  out_price?: number;
62
62
  in_time?: number;
63
63
  out_time?: number;
64
+ out_qty?: number;
64
65
  out_comment?: string;
65
66
  total_profit?: number;
66
67
  max_profit?: number;
@@ -87,9 +88,11 @@ export default class Strategy {
87
88
  private _mintick;
88
89
  private _funcOptions;
89
90
  constructor(variables: BuiltInVariables, options: IKeyObjectValue, mintick?: number);
91
+ get orders(): IOrder[];
92
+ get historyOrders(): IOrder[];
90
93
  get _orderProfit(): number;
91
94
  get _freezeCapital(): number;
92
- updateOptions(options: IStrategy): void;
95
+ updateOptions(options?: IStrategy): void;
93
96
  strategy(args: IStrategy): void;
94
97
  order(args: IOrderArgs): void;
95
98
  entry(args: IOrderArgs): void;