Gamestudio Links
Zorro Links
Newest Posts
How to select between IB accounts by script?
by AndrewAMD. 06/13/26 15:44
Zorro tutorial ideas?
by AndrewAMD. 06/13/26 15:01
Zorro 3.01 recoded MMI function issue
by 11honza11. 06/13/26 11:40
Stooq now requires an API key
by AndrewAMD. 06/11/26 17:55
Z9 getting Error 058
by k_ivan. 06/10/26 14:38
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (AndrewAMD, 1 invisible), 1,296 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Student_64151, Koti, curry, DeepxKalsi, Samed
19219 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Get current positions? #483854
08/04/21 14:07
08/04/21 14:07
Joined: Jul 2021
Posts: 3
Rome
M
MichaelSilver Offline OP
Guest
MichaelSilver  Offline OP
Guest
M

Joined: Jul 2021
Posts: 3
Rome
I know I can loop through trades, but is there a way to loop through the current positions/assets held and their purchase price?

...Thanks...
...Michael...

Re: Get current positions? [Re: MichaelSilver] #483859
08/05/21 13:54
08/05/21 13:54
Joined: Jul 2000
Posts: 28,103
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,103
Frankfurt
That would be the weighted average entry price of all trades of an asset. Enumerate through trades and sum up the entry prices for any asset.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1