- ago
I want to convert my stop loss % to a trail stop. What should I change.

Thank you,
Larry

Here is the code:

CODE:
   PlaceTrade(bars, TransactionType.Sell, OrderType.Stop, StopLoss(bars, idx), 0, "Stop Loss 10%");

0
224
2 Replies

Reply

Bookmark

Sort
- ago
#1
Please see CloseAtTrailingStop in the manual:

https://www.wealth-lab.com/Support/ApiReference/UserStrategyBase
0
- ago
#2
You can add a "Position PL" condition such as if PL<0 then SL = n0 else if PL>=0 then TSL = n1
0

Reply

Bookmark

Sort