plotTrades: Plot trade PnL vs MAE/MFE in trade

View source: R/genericStrategy.R

plotReturnsR Documentation

Plot trade PnL vs MAE/MFE in trade

Description

Red triangles is losing trades, green triangles is winning trades. Grey dashed line is y = x line. On y-axis MAE/MFE is displayed, on x-axis PnL of trade is displayed.

Usage

plotReturns(this, type)

plotTrades(this, type)

## S3 method for class 'Strategy'
plotTrades(this, type = "MAE")

Arguments

this

Strategy

type

character, MAE or MFE

Value

ggplot


Vitalic57/stratbuilder3gen documentation built on March 30, 2022, 6:58 a.m.