Originally Posted By: jcl
I'm afraid I do not really understand your problem. When you have open positions, you borrow margin and pay interest. That is the rollover. It has nothing to do with stock or forex. Forex is only a special case as you trade pairs, so rollover is here the interest difference.

Just enter the Rollover in the asset list as in the example that I gave. It is daily interest*price*(1-1/leverage). If you want it to be very precise, you can really calculate rollover in the script once per day, but then you need to know the broker's current interest.


Oh, it seems that finally comprehension arrived to me... :-)
Because of this part (1-1/leverage) the interest will be calculated only for borrowed amount, not for all. Well, thanks for your help and patience!

I also found this phrase in the manual:
If the Rollover is unknown, it can be estimated from the current annual interest divided by 365 and multiplied with asset price/leverage.

I believe instead of price / leverage it should be price * (1 - 1/leverage). Correct me please if I am wrong.