For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
Trailing stop
-
Hi,
Can one set a trailing stop which is neither a constant nor a percentage ?
What i want to do is set a trailing stop which is the standard deviation of the price calculated on the last 20 days for example. I want this trailing stop to be updated for each new bar. Example :
Trailing stop for bar 20 is the standard deviation of the price for bar 1 to 20.
Trailing stop for bar 21 is the standard deviation of the price for bar 2 to 21.
ETC....Is it possible ?
Thank you