Min.Sell.Buy.Price: Minimum Sell or Buy Prices

View source: R/personal_functions.R

Min.Sell.Buy.PriceR Documentation

Minimum Sell or Buy Prices

Description

This function gives you the minimum sell price after you buy or the minimum buy price after you sell with a selected fee percentage which makes you break even after the fee.

Usage

Min.Sell.Buy.Price(Price, Fee.Per = 0.1, Round = 2)

Arguments

Price

numeric. Buy or sell price.

Fee.Per

numeric. Fee percentage. Default is 0.1.

Round

numeric. Decimal rounding. Default is 2.

Details

This is a personal function of the package author. So, it won't make sense to others.

Value

Two messages: one for BUY Price, one for SELL Price.

Author(s)

Omer Kara

Examples

Min.Sell.Buy.Price(Price = 60)
Min.Sell.Buy.Price(Price = 60, Fee.Per = 0.08)
Min.Sell.Buy.Price(Price = 60, Fee.Per = 0.1, Round = 3)


omerkara/okara documentation built on Nov. 21, 2023, 7:56 p.m.