
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I do have a similar functionset in my library. SInce your code shows to be valid only for certain types of calculation modes, I was wondering if my code takes this into respect or if I need to adjust it maybe to have it generalized.
May I ask to take a look at this code and share improvements to it, please.
This is not valid either. The profit is not related to the number of digits used.
I wrote my own function because I trade few different types include forex, crypto and stock.
Base on your broker there may be different in DIGITS so you may need to add some as exception as my example.
That may be replacable with SYMBOL_CATEGORY from SymbolInfoString function but I was too lazy and not willing to dig into anymore since it was not necessary for me. Do it on your own :)
P/S: I mean 1 pip equal to $10 per lot in profit. This should be the best meaning definition for PIP.