Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!slFired)
- {
- slVal = Math.Max(0, (MaxDailyLoss + currentDayProfit) / Position.Quantity);
- slFired = true;
- double offset = (slVal / tickValue) * TickSize;
- StopPriceL = Close[0] - offset;
- StopPriceS = Close[0] + offset;
- }
- ExitShortStopMarket(Position.Quantity, StopPriceS, "ExitStopS", "entryShort1");
- ExitShortStopMarket(Position.Quantity, StopPriceS, "ExitStopS", "entryShort2");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement