Anti-trap Trailing Stop Loss by KalyanBetaAnti-trap Trailing Stop Loss by KalyanBeta or ATSL
ATSL changes color when there it identifies price manipulation/ SL Hunting / Traps by Smart Money.
Change in color may be an exit signal for your trade in current direction.
This is a very simple indicator which can be used to predict Traps or Stop-loss hunting.
This can help in Trailing Stop-loss and in Exit decisions along with your own strategy.
ATSL may be used in all timeframes.
Please back-test it along with your strategy and then use it for Trailing the Stop-loss without getting trapped by operators and stop-loss hunters.
All the best.
Do post your feedback in comments below. Thank you.
TSL
Scalping using RSI 2 indicator with TP and TSLThis study implements a simply scalping using the RSI (calculated on two periods), the slopes of two MAs (EMA or SMA) having different lengths (by default, I use 50 and 200).
A take profit (%) and a trailing stop loss (%) are used.
Entry conditions:
.) Fast MA > Slow MA and Price > Slow MA and RSI < Oversold Threshold ------> go Long
.) Fast MA < Slow MA and Price < Slow MA and RSI > Overbought Threshold ------> go Short
Exit conditions:
.) Long entry condition is true and (close >= TP or close <= TSL) ----> close short position
.) Short entry condition is true and (close <= TP or close >= TSL) ----> close long position
The strategy performed best on Bitcoin and the most liquid and capitalized Altcoins but works excellent on volatile assets, mainly if they often go trending.
Works best on 3h - 4h time frame.
There's also an optional Volatility filter, which opens the position only if the difference between the two slopes is more than a specific value, which can be set in the study inputs. The purpose is not opening positions if the price goes sideways and the noise is way > than the signal.
Note:
.) the RSI length is 2;
.) the oversold Threshold is 90%;
.) the overbought Threshold is 10%;
.) by default, the take profit per cent is 0.5%;
.) by default, the trailing stop loss per cent is 0.5%;
.) by default, the fast MA length is 50;
.) by default, the slow MA length is 200;
.) by default, the MA used is EMA.
Cheers.
Percent Trailing Stop (%) - For Study Scripts===========
Percent Trailing Stop (%) - { FOR STUDY SCRIPTS }
===========
Wow - this is an example of how to implement Alerts relating to a Trailing Stop (%) within your Study Script. It's taken a bit of effort to get this working but I think we got there!
Alerts include Open Long/Short, Trailing Stop Hit, and (the most important one) Movement of Trailing Stop! <- this is actually really quite good, by the way! :)
You can ignore the actual entry/exit orders - they're based on a simple MA cross and are therefore NOT relevant, NOT profitable and NOT recommended!
You should be using this code as a way of adding a Trailing Stop to your own scripts - hope it helps!
Set your "Open Long/Short" Alert to "Once per Bar Close" - Set your "Trailing Stop Hit" Alert to "Once per Bar" - Set your "Move TSL" Alert to "Once per Bar Close". - You're all done! Enjoy.
-----------
Good Luck and Happy Trading!
Trailing Stop Loss ATR + AlertI share this TSL indicator with alert (I use it only for Stocks), the configuration is very simple, you must select if it is a Short or Long operation, time at which the operation was opened,% of the daily ATR for TSL. It also contains:
- Alert
- Panel Info
Trailing Sl Both Side How To Work? (long Side Stoploss)
This Indicator Calculate Every New Candle Open Price
For Example, Candle Open Price 50 And You Set 1 Point Stoploss Then Your Stoploss Automatically Add
49 Then Next Candle Open Price 52 Your Stoploss Automatically Trail 51 Then Next Candle Price 51.5 But
Your Stoploss 51 Fix Because Price Down But Stop Loss Not Down Without Trigger
Alerts Condition
Long Side Stoploss
1 Click Alerts and By Default Select Symbol
2 Crossing
3 Select indicator
4 select first plot
Short Side Stoploss
1 Click Alerts and By Default Select Symbol
2 Crossing
3 Select indicator
4 select second plot