Hi guys, i hope somebody can help me with the following issue.
I wrote a little lot size calculator for my chart. The problem is i just want to get 2 digits after comma instead of 4. I tried a lot of different workarounds like “a=round(mashort*100)/100” and other calculations but nothing works for me.
thanks in advance!
Size calculator
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Risk/Trade
risk=150
// currval = Accountcurrency / Tradingcurrency -> Trade USDCAD -> EUR / CAD (*10 for standard Lot)
Question: Is it necessary to have PorOrder round calculated lot sizes or are they automatically adjusted/rounded upon position entry with IG? Does anybody know?