What does this script do ? This script is for pine script programmers and explains how to implement a dynamic stop-loss strategy. It is different from trailing stop-loss. Trailing stop-loss can only set the retracement value, but this script can take profit on part of the position at a fixed price and allows users to decide whether to take profit on all positions...
"How to code moving stop-loss mechanism", is one of the most often repeating questions in private messages I receive, so just to focus on this mechanism, I made a spin-off from my previous script: TradingView-Alerts-to-MT4-MT5-dynamic-variables-NON-REPAINTING . The logic here moves the stop-loss each time a trade is running and a new pivot high/low is detected....
=========== Fixed Percent Stop Loss & Take Profit % =========== A neat example of how to set up Fixed Stops and Take Profit as a percent of the entry price. Yup, that's about it! You can ignore the actual entry/exit orders - they're based on a simple MA cross and are therefore NOT relevant, NOT really profitable and NOT recommended! You should be using...
Instantaneous Trendline Strategy by John Ehlers from his book "Cybernetic Analysis for Stocks and Futures". You can choose implementation of stop-loss. Don't forget to define correct spread for your instrument.
XPloRR MA-Buy ATR-MA-Trailing-Stop Strategy Long term MA Trailing Stop strategy to beat Buy&Hold strategy None of the strategies that I tested can beat the long term Buy&Hold strategy. That's the reason why I wrote this strategy. Purpose: beat Buy&Hold strategy with around 10 trades. 100% capitalize sold trade into new trade. My buy strategy is triggered by the...