aLongStock | R Documentation |
Long stock is owning and holding the stock on the expectation that its price will rise (Hull, 2022).
aLongStock( ST, S0, C = 0, hl = 0, hu = 1.8, xlab = "Spot Price ($) on Expiration", ylab = "Realized Profit / Loss [ PnL ] upon Sale ($)", main = "Long Stock ", sub = "bullishTrader / MaheshP Kumar" )
ST |
Spot Price at time T. |
S0 |
Initial Stock Price |
C |
Transaction Cost. |
hl |
lower bound value for setting lower limit of X axis displaying spot price. |
hu |
upper bound value for setting upper limit of X axis displaying spot price. |
xlab |
X axis label. |
ylab |
Y axis label. |
main |
Title of the Graph. |
sub |
Subtitle of the Graph. |
This method is developed, and the given examples are created, to compute per share Profit and Loss at the time of the sale of a held stock and also the Breakeven (BE) point for a long stock position and draws its graph in the Plots tab.
returns a profit and loss graph of Covered Call.
MaheshP Kumar, maheshparamjitkumar@gmail.com
Hull, J. C. (2022). Options, Futures, and Other Derivatives (11th ed.). Pearson Education (US). https://bookshelf.vitalsource.com/books/9780136940043.
aLongStock(20,18) aLongStock(90,85,hl=0.7,hu=1.2) aLongStock(1000,990,hl=0.97,hu=1.02) aLongStock(1000,990,5,hl=0.97,hu=1.02)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.