Skip to content

CS0618: ModifyPosition(Position, double?, double?) is obsolete #56

Description

@PSLLSP

Sample SAR Trailing Stop.cs

When I compile the example in the desktop platform, I get a warning CS0618 that ModifyPosition(Position, double?, double?) is obsolete

Discussion from 2024 had information that documentation will be fixed soon. It is half of 2026 and documentation was not updated... :-(

I am not expert and documentation for ModifyPositiuon is "obsolete" but I assume that code

ModifyPosition(position, newStopLoss, null);

should be changed to

ModifyPosition(position, newStopLoss, null, ProtectionType.Absolute);

Please, review examples, and update the documentation...


Other issue is that I just cannot easily select and copy warning/error from Windows desktop platform to the clipboard... :-( Once fixed, this will allow me to copy full error/warning message to the bug reports or AI prompts...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions