I want to convert my stop loss % to a trail stop. What should I change.
Thank you,
Larry
Here is the code:
Thank you,
Larry
Here is the code:
CODE:
PlaceTrade(bars, TransactionType.Sell, OrderType.Stop, StopLoss(bars, idx), 0, "Stop Loss 10%");
Rename
Please see CloseAtTrailingStop in the manual:
https://www.wealth-lab.com/Support/ApiReference/UserStrategyBase
https://www.wealth-lab.com/Support/ApiReference/UserStrategyBase
You can add a "Position PL" condition such as if PL<0 then SL = n0 else if PL>=0 then TSL = n1
Your Response
Post
Edit Post
Login is required