Trailing Stop based on a Moving Average

Post Reply
User avatar
WHS Support
Posts: 2430
Joined: 14 Feb 2013 10:27

Trailing Stop based on a Moving Average

Post by WHS Support »

Dear traders,

attached you will find an express trailing stop based on the moving average indicator.

The inputs for this stop are as follows:
p = the number of periods over which the MA is smoothed.
InitialStop = this is always the stop level when a position is opened and remains at this level until the distance between the MA and the close is smaller than MA and the InitialStop.
SafetyZone = the minimum distance between the close price and the MA necessary before the stop level will trail by following the MA instead of remaining at the InitialStop level.
DisplaceMA = this allows you to shift the stop by a certain amount of ticks above or below the moving average.


Kind regards,
Bastiaan
WHS
You do not have the required permissions to view the files attached to this post.
Post Reply

Return to “WHS NANOTRADER - EXPRESS PROGRAMMING”