Skip to content

Add function to calculate profit/loss on a position #11

Description

@wjdhamilton

This is easy for spreadbet positions:

(currentLevel - dealLevel) * contractSize * size * dir

where dir = 1 if the direction of the trade is BUY and -1 if SELL

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions