Sum of all swaps
-
When I have several open trades, how can I calculate the sum of all swaps and save it in a variable?
Thanks. -
@juan-manuel-quiñonero said in Sum of all swaps:
When I have several open trades, how can I calculate the sum of all swaps and save it in a variable?
Thanks.where do you get swap info?
-
@juan-manuel-quiñonero This is an interesting question. I'm not suer we can get that infor with the current blocks. I guess we'd need custom code. Can anyone confirm?
-
-
@bk7 Thank you for sharing. Just curious. What is the first custom code block doing exactly?
-
the first custom block loop through all open orders and counts them. so you dont need to run extra loops.
at this stage you could sum all swaps as well. and then dont need the other blocks anymore.
-
@bk7 Ok. Thank you for the info.
-
thank you so much
