SHARE
TWEET

nt daily exit -sample old

selnomeria Sep 19th, 2019 100 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top