x% Firm Stop
x% Trail Stop
x% Profit target to dump half the position
I have created a system of firm stops that move themselves up as the position moves in the right direction:
So, as the position moves across variables (labeled CorrectionX in the picture) the stop updates. The price of the updated stop is calculated by multiplying the high of the period by (1-x%)
So, in order to replicate a trailing stop, I need to find the high of the period. So instead of High[0] above, I need the high of bars since entry.
Can anyone tell/give me an example of how to do this?
Thnanks,
Loren
Comment