Skip to content
/ phsm Public

A JavaScript library for PH Stock Market Tools and Computations

License

Notifications You must be signed in to change notification settings

byrnecode/phsm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A JavaScript library for PH Stock Market (trading/investing)

Tools for computations etc..

Available public methods:

PHSM.getBoardLot(price)

PHSM.whatIsPercentOf(percent, target)

PHSM.isWhatPercentOf(value, target)

PHSM.getPercentDiff(from, to)

PHSM.getGrossAmount(stockPrice, volume)

PHSM.getBuyingFees(grossAmount)

PHSM.getSellingFees(grossAmount)

PHSM.getTotalBuyingCost(grossAmount)
PHSM.getTotalBuyingCost(price, volume)

PHSM.getTotalSellingNet(grossAmount)
PHSM.getTotalSellingNet(price, volume)

PHSM.getBuyPreview(price, money)

PHSM.getAverage(arrayTransactions)
PHSM.getAverage(price, volume)

PHSM.getPositionSize(capital, riskPercent, stopLossPercent)

PHSM.getExpectancyRate(winRate, aveWin, lossRate, aveLoss, aveRiskAmount)

PHSM.getProfit(sellingPrice, myAveragePrice, volume)

PHSM.getBreakEvenPrice() // todo

PHSM.getHighLow(arr)

PHSM.getCompounding(amount, percent, cycle, additionPerCycle(optional))

About

A JavaScript library for PH Stock Market Tools and Computations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published