New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@debut/plugin-stats

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@debut/plugin-stats

Debut stretegies stats

latest
Source
npmnpm
Version
1.4.4
Version published
Maintainers
1
Created
Source

@debut/plugin-stats

The Debut plugin, for collecting trade statistics. It works both in real time and in the strategy tester.

Installation

npm install @debut/plugin-stats --save

Parameters

NameTypeDescription
amountnumbernumber Initial amount to trade

API

The plugin has only two methods:

this.plugins.stats.report() - allows you to generate a report in human-understandable form, with rounded numbers to 2 decimal places

this.plugins.stats.getState() - gives the current state of data without any processing, allows to get real data quickly, if necessary, without causing slow formatting

Stats description

NameDescription
startBalancestart means
balanceend (current) level of funds
maxBalancemaximum level of funds for the trading period
minBalanceminimum level of funds for the trading period
maxMarginUsagemaximum margin (funds over one trade)
profitnet profit excluding commissions
longnumber of buy trades
longRightNumber of profitable buy trades
shortnumber of shorts
shortRightNumber of profitable shorts
absoluteDDabsolute drawdown
relativeDDrelative drawdown
maxWinMaximum gain per trade
maxLooseMaximum loss per trade
profitProbProbability of profitable trade
looseProbProbability of losing trade
expectationmathematical expectation of winning
failLineMaximum length of a series of losing trades of any type
rightLineMaximum length of a series of profitable trades of any type
avgFailLineAverage length of the series of losing trades
avgRightLineAverage length of the series of profitable trades
ticksHandledNumber of processed ticks for the period of work
candlesHandledNumber of candles processed during the period of work

Keywords

Debut

FAQs

Package last updated on 04 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts