The OpenPL calculation of StockPicker seems wrong

Hi 
I am running demo test on 
https://beta.algowizard.io/#/paper-trading
It seems there is error in OpenPL calculation.
Please refer to the attached screen shot.

Also, sometimes the Symbol appears, the next few days disappears, and then appears again.

Rgds,

Yudi

Attachments
StockPicker ProfitLoss Calculation.jpg
(186.29 KiB)
  • Votes 0
  • Project AlgoWizard
  • Type Bug
  • Status Fixed
  • Priority Normal

History

y
#1

ytu

30.03.2023 15:04

Task created

TB
#2

Tomas Brynda

04.04.2023 12:03

Status changed from New to Fixed

Hi,

it seems to me the open PL is calculated correctly. It is calculated for the whole trade - in your case: (221.97 - 213.42) * 5 = $42.75.


The open trades are moved into history trades after they get closed, so it may happen that open trade on some symbol disappears and then appears again if there is a new trade on the same symbol.


I will mark the task as fixed. 

If you have any further questions, let me know.


Best regards,

Tomas


Votes: 0

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please