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!
Sl
MA * Fibo levels (auto)A few updates to the previous post.
In order to catch more exact points of TP and SL, the scrypt takes "high" as the source of SMA if the percentage is greater than 0 ( > 0), and "low" as the source when the given percentage is less than 0 ( < 0).
So there are two basic SMA line ( one with "high", the other one with "low"), and the other lines would be results of multiplying either the higher base or the lower one.
Good luck in trading!
If the scrypt was useful let me know!
Any feedbacks and ideas are welcomed!
Fixed Percent Stop Loss & Take Profit %===========
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 this code as a way of adding Stops and Takes to your own scripts - hope it helps!
-----------
Good Luck and Happy Trading!
Relativity Adaptive Stop-LossRelativity Adaptive Stop-Loss is a stop-loss technique that uses the Relativity Autonomous Distribution Blocks algorithm.
For detailed info about Relativity Autonomous Distribution Blocks :
*** Features
This structure is different from standard stop-losses.
The base frame is based on "Market Adaptive Stop-Loss" script.
For detailed information about Market Adaptive Stop-Loss:
This script uses the Relativity Autonomous Distribution Blocks as cross method.
Tradeable / Non Tradeable Region Detector :
This script separates tradeable and non-tradeable regions with a coloring method.
Plotting Rules :
* Maroon : Uncorfirmed Short Positions
* Teal : Unconfirmed Long Positions
* Green : Confirmed Long Positions
* Red : Confirmed Short Positions
This script can be used in only 1W time frame. (TF = 1W )
Does not repaint on 1W and larger time frames. ( Source = close )
*** Settings :
The only option here is the ATR multiplier.
The default use value of this ATR multiplier, which is of the standard of stop-loss, is 2.You can set it from the menu.
No alert is set.
Because the positive and negative regions are the same as Relativity Autonomous Distribution Blocks.
Since the traders can trade according to the support and resistance outside the definite regions, the unnecessary signal was confused and the alerts were removed.
*** USAGE
The Stop-Loss indicator can slide on the chart.
So you have to make sure you put it in right place.
Using this script in a new pane below will radically solve slip problems.
Stop-Loss values do not slip definitely.The values can select from the alignment.
NOTE :
Some structures (Market Adaptive Stop-Loss) and design in this script are inspired by everget's Chandelier Exit script :
Best regards.
Autonomous LSTM Stop-LossStructure
Autonomous LSTM Stop-Loss is a stop-loss technique that uses the Autonomous LSTM algorithm.
For detailed info about Autonomous LSTM :
*** Features
This structure is different from standard stop-losses.
The base frame is based on "Market Adaptive Stop-Loss" script.
For detailed information about Market Adaptive Stop-Loss:
This script uses the Autonomous LSTM as cross method.
Tradeable / Non Tradeable Region Detector :
This script separates tradeable and non-tradeable regions with a coloring method.
Plotting Rules :
* Maroon : Uncorfirmed Short Positions
* Teal : Unconfirmed Long Positions
* Green : Confirmed Long Positions
* Red : Confirmed Short Positions
This script can be used in all time frames.
Does not repaint. ( Source = close )
*** Settings :
The only option here is the ATR multiplier.
The default use value of this ATR multiplier, which is of the standard of stop-loss, is 2.You can set it from the menu.
No alert is set.
Because the positive and negative regions are the same as Autonomous LSTM.
Since the traders can trade according to the support and resistance outside the definite regions, the unnecessary signal was confused and the alerts were removed.
*** Usage
The Stop-Loss indicator can slide on the chart.
So you have to make sure you put it in place.
Since this is a region scan from the OHLC levels, indicator contains small blue dots to the ohlc levels and made it serve as a guide.
However, since we cannot know the OHLC values precisely, it is best to use them as follows:
Because it is often forgotten to put it in place:
(OHLC : Average of Open, High, Low, and Closing prices for each period)
Using this script in a new pane below will radically solve slip problems.
Stop-Loss values do not slip definitely.The values are selected from the alignment.
NOTE :
Some structures (Market Adaptive Stop-Loss) and design in this script are inspired by everget's Chandelier Exit script :
Best regards.
Trailing SL or TP with Alerts (MV)Hey
Trailing SL or TP with Alerts (MV)
if you want trailing Stoploss Alerts
Alert condition
select by default Symbol
Less Than
Select Trailing SL or TP with Alerts (MV)
Second Plot
if you want trailing Takeprofit Alerts
Alert condition
Select by default Symbol
Greater Than
Select Trailing SL or TP with Alerts (MV)
First plot