Applies an approximated StopLoss/TakeProfit strategy on an incoming pnl series.
1 2 | approximateSLTP(high, low, close, takeProfit, stopLoss, runningPosition,
messages = FALSE)
|
the rewritten pnl series.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.