Adjust SL & lot size on Trailing order
-
hi all, How best to have my lots size recalculated as my pending order trails (once per bar)? I am using 'risk % based on SL'.
So as price moves down towards an ema, I want my SL size to reduce and therefore my lot size to increase.
Do I have to just delete all pending and redo the order?
-
@martymoon120 You will need a variable to store the value of the new lot size. However, I don't fully understand what you exactly mean by 'price moves down towards an ema'. Have you established the specific conditions and calculations necessary to do that?
-
@l-andorrà so I place my order just above candle [1] high and then trail it down the pullback, all the while my sizing is adjusted depending on the distance of the SL which trails the 20ema.
-
Some recommendations:
- Disconnect the trailing stop block from that position and connect it to a completely separate block tree below a 'pass' block. Never below a 'once per bar' block.
- The rest of the logic is pretty clear, but I can't see yet the pull back condition yet. Only the MA crossing is visible. Is that everything you need?