Skip to content

Commit

Permalink
feat: Add close, closeall, equity
Browse files Browse the repository at this point in the history
  • Loading branch information
sibvic committed Sep 25, 2024
1 parent fe38e4e commit 4d7ff5d
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions snippets/PineStrategyAsIndicator.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,38 @@ public:
{
return 0;
}

static void Close(Signaler* signaler, string id, bool when)
{
if (!when)
{
return;
}
signaler.SendNotifications(id);
}

static void Cancel(Signaler* signaler, string id, bool when)
{
if (!when)
{
return;
}
signaler.SendNotifications(id);
}

static void CloseAll(Signaler* signaler, bool when, string id)
{
if (!when)
{
return;
}
signaler.SendNotifications(id);
}

static double Equity()
{
return 0;
}
};

#endif

0 comments on commit 4d7ff5d

Please sign in to comment.