to limit my positions I use this formula which works well ...
var cBotPositions = Positions.FindAll (RobotID)
if (cBotPositions.Length> = 1)
I want to use a scalper (tick mode) that launches (with an indicator) a Pending Order (buy or sell)
unfortunately StopOrder comes in numbers ... I do not manage to limit the number to 1.
would anyone have a solution to place a single stop order?
for example for this code;