Smart Notch style Position Protection (SDMCha)

To protect your positions you usually have the basic Target and/or Stop out logic.
SDMCha offers an advanced notch style protection, which advance the current
stop out level (red line below) each time a new high is reached by the difference to 
the initial entry price (or even in different stages - see at the bottom of this page)

To activate add the following instructions to the Position Entry Module (PosExit.sdl):

$StopOnEntry = Close - 10.0
PositionExit("Notch",1,$StopOnEntry,TypicalPrice)

To show the current stop out level in the Chart define to the chart definition (XXX.sdc)

[Window1]
Size=70
Overlay1=Price|Candle
Overlay2=$Stop|Line|Red|2

and define in the Exit check module (PosExit.sdl):

PositionStatus = CheckExit()
$Stop = GetPositionExit("Notch")

 

Notch style Position Protection in Stages

In this example we first have an initial protection of $1.50 below the entry until a gain of up to $0.50
and using a one-to-one price difference translation on the Closing price:
1.50/0.50/1.0/Close

Then in the 2nd Stage (gains of $0.,75 or more) we start at $0.25 below break even and then notch up from there:
0.25/10

PositionExit("Stages",&StageList:^1.50/0.50/1.0/Close;0.25/10^&)

You can even create Tick-by-Tick position protections as shown below with the blue rectangles:
In this example the entry occured at $910.25 with an initial stop at $908.75 ($1.50 below).
As the max gains rise the stop notches up to $909.00 and $909.25.
Once the max gain hits $0.75 the stage 2 kicks in and the stop moves up to $910.00 ($0.25 below entry)
and then notches up shadowing the further gains: