Closed sadimoodi closed 2 years ago
I think these links explain it very well with some examples. Maybe I should put them in the Reference section of the README file.
https://www.investopedia.com/articles/forex/12/calculating-profits-and-losses-of-forex-trades.asp https://alpari.com/en/faq/trading_terms/calculating_profits_and_losses/
@AminHP there is no mention to the ratio concept in either of the references you provided above, however, i am able to comprehend the concept: if the profit currency is = to the self currency then ratio is 1 (no effect on the profit calculation) if the currency is different then we get the ratio of that currency then mutiply by the profit.
Yeah, that's right. The ratio
itself is something I came up with in order to summarize the concept. But the concept was explained in the references and you perceived it.
Hello, Thank you so much for the simple and wonderful library. can you please explain what is this fucntion doing? why do we need to get the unit ratio to calculate order profit?