The related article is copyrighted material from Stocks & Commodities Jun 2009
This script has been originally edited by HPotter and Sylvain Vervoort
Some aspects have been modified and added such as:
ATR line color
Alerts are added
Fixed the inputs now can be adjusted with decimals without the keyboard.
Securitys are added to the source
Color bar is added
"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....
this indicator has been designed to make your calculations easier and faster.
you can use this indicator to set tp and sl prices based on your entry price, balance,risk and leverage.
it has been designed only for cryptocurrency market and it is not recommended to use it in other markets!
1- enter your balance in the setting of the indicator.
2- enter risk...
This Indicator uses Average True Range (ATR) to determine a safe place to put stop losses to avoid being stop hunted or stopped out of a trade due to a tight stop loss. Default multiplier setting is 1.5. For a more conservative stop loss use 2 and for a tighter stop loss use 1. ATR and stop loss prices are displayed in table at bottom of screen. Use high(red) for...
EMAC - Exponential Moving Average Cross
This strategy is based in part on original 10ema Basic Swing Trade Strategy by Matt Delong: www.tradingview.com
Link to original 10ema Basic Swing Trade Strategy:
This is the Original EMAC - Exponential Moving Average Cross...
Volume can be a very useful tool if used correctly. Relative volume is designed to filter out the noise and highlight anomalies assisting traders in tracking institutional movements. This tool can be used to identify stop loss hunters and organized dumps. It uses a variety of moving averages to hide usual activity and features an LSMA line to show trend. Trend...
The "Yesillim" indicator is a trend follower and trailing stop indicator that reacts quickly and aims to enter early in an uptrend and exit early from a downtrend. Since moving averages are used, it can be used in daytrade and scalping in daily or lower periods. The crossover and crossdown intersections of the price and the indicator line may be meaningful, but it...
This is the strategy version of the 'EMA-RSI-Pump-Drop-Swing-Sniper-With-Alerts':
Some additions with this strategy:
~Added Stop loss & Take profit control. In Settings > Inputs if the Stop Loss is at .051 that means it's 5.1% and the Take Profit at .096 is 9.6%. If you wish...
This is my first script I have published so bear with me.
I have thrown this together so you can easily see on the chart where -0.5%, -1% and -2% would be from the last candle close. I also replicated these to show positive values in case you are shorting.
I have also added a custom value setting so you can set the line at whatever percentage value you like and...
Script to use for position sizing based on portfolio size, max position, and max loss inputs. The option to use custom entry and stop are available, but default to last price for entry, and Low of Day (LoD) for stop. The ATR % is a measure of the low of day to current price as a percentage move.
Credit to LonesomeTheBlue for the base code on position sizing and...
This is my first script, completely made from scratch. Bear with me.
Script that allows one to set an alert for Multiple Price Levels, on Multiple Tickers, complete with Dynamic Messages showing you which ticker, at which price, at which alert (Stop loss, Target 1 etc.), set to Once Per Bar.
Select Ticker, type in price levels that you have for targets & stop...
Useful in case you use Average True Range to determine Shows Stop Loss and Take Profit price levels.
For example, if you want to put Stop Loss with a distance of 1.5xATR and Take Profit 2xATR for a long trade, put 1.5 as Lower Factor and 2 as Upper Factor. Lower and Upper prices will show price levels for SL and TP respectively.
Simple 3 EMA Strategy with plotted Take Profit and Stop Loss
- Middle EMA cross above the Slow EMA
- Set take profit and stop loss exit conditions based on ATR Indicator
- Fast EMA cross below the Middle EMA
This indicator calculates Stop-loss and Take-profit limits and plots them on the chart based on the daily ATR value for a given instrument.
The Stop-loss is calculated at the current close price minus 1x ATR and is plotted as a red line by default.
The Take-profit is calculated at the current close price plus 1.5x ATR and is plotted as a green line by...
// Based on Normalized Smoothed MACD by Dreadblitz
Old one was just an oscillator, I changed a few things
1) It now paints the line green/orange
2) The trigger (green/red) is now based on a signal
3) The signal is basically isUp, but with some additional controls, e.g.
4) (new) There is an embedded stoploss. This is a growth/decay function that decays...
This strategy work when ADX line Crossover the 25 value, if the price was above the Alligator lines then its buy signal and if it was under the Alligator Lines then its sell signal
Stop Loss is the Jaw line ( you could choose any of the 3 lines ), and the take profit is 1.5 the stop loss ( also you can change the risk to reward ratio )
I add a filter if the...
This is a demo of ATR based trailing Stop Loss.
This SL strategy uses 2 types of ATR based SL.
tight SL as initial (ATR * 1.5)
slack SL as trailing (ATR * 4)
When any entry singal occurs by the buy/sell conditions, this SL strategy uses the "tight SL" as the initial SL.
Then the SL will chase the price as trailing SL. However, this strategy uses the...
Improved Simple Strategy based on RSI, using overbought or oversold levels.
Backtest: ETHPERP (FTX) - 30m
Set STOP LOSS and GET PROFIT as a percentage (2% and 10% by default).
If strategy.position_size != 0 algorithm convert percentages into points and set stop loss and take profit limit orders.