Jump to content

vegas_bull

Members+
  • Content Count

    2
  • Joined

  • Last visited

Posts posted by vegas_bull


  1.  @KyleK29 Say I'm already in a trade and I'd like to set a stop loss at a fixed dollar amount ... say, -$300.  Whatever my current position size is, the stop loss will trigger as soon as I'm down -$300.  I've tried the following script, but I get an "Invalid Operator" error.

    ROUTE=STOP;StopType=Market;StopPrice=((Pos*AvgCost)-300)/Pos;Share=Pos; TIF=DAY; SELL=Send

    The equation I have for the StopPrice is valid, but I suspect DAS doesn't like anything that complicated.  Could I modify your 'dynamic share calculation' script to make this work?

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.