win_rate: Compute win rate

Description Usage Arguments

Description

Compute win rate

Usage

1
2
win_rate(strategy.signal, trade.value, type = "buy", weight.s = 0,
  stockp.begin = 0)

Arguments

strategy.signal

trade signal components of 0,-1,1 which stardends 'hold','sell','buy'.

trade.value

Vector of a numeric series which represents the total value generated by a trade strategy.

type

Must be one of 'buy' or 'sell'.

weight.s

Stocks holded at begining in the short position.

stockp.begin

the first one of the correspond stock price


purplezippo/quantler documentation built on May 15, 2019, 4:27 p.m.