View source: R/personal_functions.R
Min.Sell.Buy.Price.Gain | R Documentation |
This function gives you the minimum sell price after you buy or the minimum buy price after you sell with a selected fee percentage and desired gain percentage.
Min.Sell.Buy.Price.Gain(Price, Gain.Per = 1, Fee.Per = 0.1, Round = 2)
Price |
numeric. Buy or sell price. |
Gain.Per |
numeric. Gain percentage. Default is 1. |
Fee.Per |
numeric. Fee percentage. Default is 0.1. |
Round |
numeric. Decimal rounding. Default is 2. |
This is a personal function of the package author. So, it won't make sense to others.
Two messages: one for BUY Price, one for SELL Price.
Min.Sell.Buy.Price.Gain(Price = 100)
Min.Sell.Buy.Price.Gain(Price = 100, Gain.Per = 1.5)
Min.Sell.Buy.Price.Gain(Price = 100, Fee.Per = 0.01)
Min.Sell.Buy.Price.Gain(Price = 100, Gain.Per = 2.5, Fee.Per = 0.05, Round = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.