Description Usage Arguments Note References See Also Examples
The butterfly() function generates a graph showing the profit and loss of butterfly spread trading strategies using call or put options. The reason why butterfly spreads are constructed is that the stock price is expected to change only slightly in the future.
1 2 |
K1 |
Execution Price of Option 1 |
opt1 |
Price of option 1 |
K2 |
Execution Price of Option 2 |
opt2 |
Price of Option 2 |
K3 |
Execution Price of Option 3 |
opt3 |
Price of Option 3 |
type |
Specifies whether to use call option or put option to carry bear market spread arbitrage. If it is a call option, type = "call" is used to indicate that the strategy is to buy a call option with low execution price and a call option with high execution price and sell two call options with intermediate execution price at the same time; if it is a put option, type = "put" is used to indicate that the strategy is to buy a put option with low execution price and a put option with high execution price at the same time. Put options with two intermediate execution prices. The default value is "call". |
If there is a mutual occlusion problem in the image, you can run the dev.new() command first. If there is still occlusion problem, you can directly run bull command to call out the source code of the function, and eliminate the occlusion problem by modifying the corresponding graphic parameters.
OTS package, WangXu seniorwangxu@sina.com
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.