zBuyingStockIndexFutureAtFairValue {bullishTrader} | R Documentation |
Calculates Profit and Loss at closeout of a bought Stock Index Future (like Micro E mini) and draws its graph in the Plots tab.
Description
On initiation, this is a net debit Strategy and results in net cash outflow in the form of paying the amount of bought Stock Index Future. If the bullish outlook of the trader emerges as expected and the Stock Index Future (like Micro E mini) rises then the trader makes the profit as shown in the graph (TD Ameritrade, 2019).
Usage
zBuyingStockIndexFutureAtFairValue(
SIT,
SI0,
R,
d,
n,
hl = 0.9995,
hu = 1.006,
xlab = "Stock Index at position closing",
ylab = "Profit / Loss [PnL] at position closing ($)",
main = "Long on Stock Index like Micro E mini S & P 500 ",
sub = "bullishTrader / MaheshP Kumar"
)
Arguments
SIT |
Stock Index at time T. |
SI0 |
Stock Index Initial Value. |
R |
annualized financing rate |
d |
dividend yield of the index. |
n |
represents days in Future like 90day Stock Index Future. |
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. |
Details
According to the information provided by TD Ameritrade (2019) and Hull (2022), this method is developed, and the given examples are created, to compute Profit and Loss at closing of the position in Stock Index Future (like Micro E mini) and draw its graph in the Plots tab.
Value
returns a profit and loss graph of Covered Call.
Author(s)
MaheshP Kumar, maheshparamjitkumar@gmail.com
References
TD Ameritrade. (2019, July 26). Micro E-Mini Futures Contracts. YouTube.https://youtu.be/SShGjJepCdA
Hull, J. C. (2022). Options, Futures, and Other Derivatives (11th ed.). Pearson Education (US). https://bookshelf.vitalsource.com/books/9780136940043.
Examples
zBuyingStockIndexFutureAtFairValue(3700,3709,0.0275,0.02,90)
zBuyingStockIndexFutureAtFairValue(2900,2910,0.025,0.03,90,hl=0.9995,hu=1.005)