retesere20

nt daily exit -sample old

Sep 19th, 2019
124
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (!slFired)
  2. {
  3. slVal = Math.Max(0, (MaxDailyLoss + currentDayProfit) / Position.Quantity);
  4. slFired = true;
  5. double offset = (slVal / tickValue) * TickSize;
  6. StopPriceL = Close[0] - offset;
  7. StopPriceS = Close[0] + offset;
  8. }
  9. ExitShortStopMarket(Position.Quantity, StopPriceS, "ExitStopS", "entryShort1");
  10. ExitShortStopMarket(Position.Quantity, StopPriceS, "ExitStopS", "entryShort2");
RAW Paste Data