MA Strength StrategyThis is based on Aligned Moving Average Index published earlier:
But, instead of scoring trend based on how many moving averages are aligned, we are considering upside score. Higher scores are assigned for slower moving averages and lower scores for faster moving averages to give more stress to long term trend.
Buy/Sell conditions are based on moving average crossover on the upside score sum of Loopback days.
This is a very rough idea which seems to have been working ok on long only trades. Can be further improved.
Скользящие средние
Optimized RSI Strategy - Buy The Dips (by Coinrule)Buy low and sell high is every trader's mantra. While this approach looks straightforward in theory, it's sometimes challenging to put into practice. That requires stress-management to buy when price drops and resolution in selling when the price is rising. RSI is a useful tool to implement long-term and effective trading strategies. The script presents an optimized RSI trading strategy that uses a Moving average to spot the best time to buy the dip.
The strategy buys when the RSI is lower than 35, and at the same time, the price is below the MA100. In this way, the approach helps avoid catching early dips, increasing buying when the bottom approaches.
The position closes when the RSI value is above 65 . Depending on the volatility of the coins that the strategy will trade, it's possible to adjust the RSI exit value to chase larger profits.
The setup is optimized on a 15-minutes time frame and trading cryptocurrencies versus USD or stable coins.
The strategies was backtested over 150 times with multiple setups and coin to assess the best long-term system.
The strategy assumes each order to trade 30% of the available capital. A trading fee of 0.1% is taken into account. The fee is aligned to the base fee applied on Binance, which is the largest cryptocurrency exchange.
RSI of VWAP [SHORT selling]This is SHORT selling version of RSIofVWAP strategy. Settings and Logic are totally different from LONG side version , hence I am publishing it as a new strategy.
Settings
============
VWAP of RSI Length 15
Slow EMA Length 200
Short entry level 25
Cover short level 70
stop loss 5
SHORT Entry
============
condition1 : When RSIofVWAP crossdown below 25 and VWAP is below ema200
condition2: When weekly RSIofVWAP crossdown 70 and VWAP (note : session vwap , not weekly vwap) is below ema200
condition3: Use VIX value , if you want to short when the price is above ema200
vwap RSI crossing down 70 and VIX RSI is cossing up 70
enter short ... This is like falling knife :-)
I need to add the code -- later
if any of above condition is TRUE , SHORT entry will be taken
Take Profit
============
When close less than short entry price and RSIofVWAp is crossing up 25 , take profit ...close 1/3 of the position
Exit
============
When RSIofVWAP crossing up 70 level
Stop Loss
============
Stop Loss is set to 5%
Note:
1. When strategy is in SHORT position , background and bar color changes to gray
2. When strategy is already in short position , possible entries are shown in yellow background
3. RSI Length 15 is working most of the equities on hourly chart. ( RSI length 9 and 14 also works good , but not for all ... You may want to try which setting works for your symbol)
4. weekly VWAP (blue color) is also plotted by default ... you can disable it if you dont want to see it. But there is advantage keeping it on the chart , you can notice whenever weekly VWAP crosses above 70 line , trend is UP ... if you have LONG position you can hold on it ... Hurray :-)
Warning
============
For the educational purposes only
Combo Backtest 123 Reversal & Keltner Channel This is combo strategies for get a cumulative signal.
First strategy
This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50.
The strategy sells at market, if close price is lower than the previous close price
during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
Second strategy
The Keltner Channel, a classic indicator
of technical analysis developed by Chester Keltner in 1960.
The indicator is a bit like Bollinger Bands and Envelopes.
WARNING:
- For purpose educate only
- This script to change bars colors.
EMA Crossover Strategy ExampleThis is a script written as an example of how to build a simple strategy with user-defined inputs based on a simple Moving Average crossover.
--
This indicator is used for backtesting Moving Average crossover strategies (only for long trades).
A "short" and "long" moving average period and calculation method (the "smoothing type") are user-adjustable. The trade is triggered when the "short" moving average crosses over the "long" moving average.
A third customizable moving average is provided which is used as a trigger to exit the trade when the *close* of a candle crosses below this "exit" moving average. Again the period and smoothing type are user-adjustable.
Combo Backtest 123 Reversal & Kaufman Moving Average Adaptive// This is combo strategies for get a cumulative signal.
//
First strategy
This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50.
The strategy sells at market, if close price is lower than the previous close price
during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
Second strategy
Everyone wants a short-term, fast trading trend that works without large
losses. That combination does not exist. But it is possible to have fast
trading trends in which one must get in or out of the market quickly, but
these have the distinct disadvantage of being whipsawed by market noise
when the market is volatile in a sideways trending market. During these
periods, the trader is jumping in and out of positions with no profit-making
trend in sight. In an attempt to overcome the problem of noise and still be
able to get closer to the actual change of the trend, Kaufman developed an
indicator that adapts to market movement. This indicator, an adaptive moving
average (AMA), moves very slowly when markets are moving sideways but moves
swiftly when the markets also move swiftly, change directions or break out of
a trading range.
WARNING:
- For purpose educate only
- This script to change bars colors.
Multi MA MTF SandBox StrategyA moving averages SandBox strategy where you can experiment using two different moving averages (like KAMA, ALMA, HMA, JMA, VAMA and more) on different time frames to generate BUY and SELL signals, when they cross.
Great sandbox for experimenting with different moving averages and different time frames.
== How to use ==
We select two types of moving averages on two different time frames (or the same time frame):
First is the FAST moving average that should be at the same time frame or higher.
Second is the SLOW moving average that should be on the same time frame or higher.
== Buy and Sell Signals ==
When FAST moving average cross over the SLOW moving average we have a BUY signal (for LONG)
When FAST moving average cross under the SLOW moving average we have a SELL signal (for SHORT)
WARNING: Using a lower time frame than your chart time frame will result in unrealistic results in your backtesting and bar replay.
== NOTES ==
You can select BOTH, LONG, SHORT or NONE in the strategy settings.
You can also enable Stop Loss and Take Profit.
More sandboxes to come, Follow to get notified.
Like if you like and Enjoy!
Can also act as indicator by setting 'What trades should be taken' to 'NONE':
Crypto BOT lower timeframesThis is a crypto bot designed for lower time frames.
Its made of 2 EMA, one fast and one slower . They are combined together with Stochastic, MACD and price action patterns.
For entries we have multiple conditions :
First we check if one of our last 4 closed candles crossed above or below the faster EMA. After that for long, we check that last close is above the fast EMA, that the fast ema is above the slower EMA, at the same time that the histogram from MACD is positive and that we have crossover with the oversold line on stochastic. For the short , the opposite of long.
For exit we have TP/SL mechanic based on price % movement, in this example if the price moved 10% from the initial position it will exit.
Price action strategy FOREX with amazing results
Hello, today I bring another amazing strategy for forex .
Its made of T3 moving average , combined together with a pattern rule and a specific entry time.
We take all of that and we trade it in inverse.
So what normally for long would be : close higher than the previos high and close higher than the average, we use this as a short condition. We do the same stuff for long condition.
So in the end we end up with an amazing product.
It also has a risk management inside, with a TP/SL based on % move of the price .
Let me know how it goes .
[CM]EMA Trend Cross STRATVISUALLY REPRESENTS THE CROSSING OF 8,13,21,55 EMA'S FROM KROWNS TA PROGRAM
Hello everybody! I was curious and wanted to see how the Strat described in one of the modules would look coded. So here we are, a clear cut visual representation of the methods talked about in the course from the EMA Module. Enjoy!
(Instructions)
Whenever the 8,13,21 all cross above the 55ema that constitutes a long signal.
On the flip side, whenever the 8,13,21 all cross below the 55ema that constitutes a short signal.
(Description)
This indicator shows the cross described in the TA program using the EMAS 8,13,21,55.
The Ema's are editable.(Color)
It plots the entry and exit parameters.
This allows for a more visual representation of the ideology described in the course.
This indicator also doesn't leave room for ambiguity in terms of where a cross happens.
The EMA's can be toggled to show certain ones at certain times.
The indicator can be used as a trend analysis tool.
***In terms of an exit, I find it to be better to use your own judgement, taking account the greater trend.
For example, in a bull market I would advise looking for long signals, rather than try to hop on a counter trend play. Vice Versa in a bear market. It's better for jumping in to the greater momentum.
Forex SWING TraderThis strategy is mainly designed for swing trading applied to FOREX.
In this case we make use of 2 moving averages but with different time frame, lets say 1h and 1 day.
When they cross above we would initially have a long trade, but in this strategy we trade it in reverse, so we would actually enter a short position.
The same for short trade.
At the same time we make use of hours for entry, so we can filter even better between the trades, and select the best possible hours for entries.
For exit we have 2 conditions : one is when we receive an opposite signal ( by default ).
The other is when a certain movement between moving averages, like lets say 1% of price movement, we will exit. This can act both as TP and SL.
Momentum Explosion 2CCI RSI"Momentum Explosion Template for Mobile Metatrader", that is a trading system trend momentum based on two Commodity Channel Index (CCI) , RSI and two Moving Averages.The trading signals are generated by the crossing of the moving averages confirmed by the agreement of the two CCIs and the RSI.
Two Moving averages Filtered by double CCI and RSI
Credit is to Dimitri Author Beejay (Forex Factory)
Trading Rules Momentum Explosion
Buy
EMA 8 crosses upward SMA 26.
CCI 34 periods > 0
CCI 55 periods > 0
RSI 26 > 48.
Sell
EMA 8 crosses downward SMA 26.
CCI 34 periods < 0
CCI 55 periods < 0
RSI 26 < 48.
BTC and ETH Long strategy - version 2I wrote my first article in May 2020. See below
BTC and ETH Long strategy - version1
After 6 months, it is now time to check the result of my script for the last 6 months.
XBTUSD (4H): 14/05/2020 --> 22/11/2020 = +78% in 4 trades
ETHXBT (4H): 14/05/2020 --> 22/11/2020 = +21% in 9 trades
ETHUSD (4H): 14/05/2020 --> 22/11/2020 = +90% in 6 trades
Using the signals from this strategy to trade manually has shown that this was a bit frustrating because of the low rate of winning trades.
If you have to enter 100 trades and see 75% of them failing and 25% winning, this is frustrating. For sure the strategy makes good money but it is difficult to hold this mentality.
So, I have reviewed and modified it to get a higher winning rate.
After few days of work, tests and validation, I managed to get a wining rate close to 60%.
The key element was also to decrease the number of trades by using a higher time frame. (4H candles instead of 2H candles).
- Entry in position is based on
MACD, EMA (20), SMA (100), SMA (200) moving up
AND EMA (20) > SMA (100)
AND SMA (100) > SMA (200)
- Exit the position if: Stoploss is reached OR EMA (20) crossUnder SMA (100)
The goal of this new script is to be able to follow the signals manually and only make few trades per years.
I have also validated it against some other altcoins where some are giving very good results.
Here are some results for 2020 (from 01/01/2020 until now (22/11/2020). Those results are the one I get when using 4H candles.
ETH/USD: +144% in 8 trades.
BTC/USD: +120% in 7 trades.
ETH/BTC: +33% in 9 trades.
ICX/USD: +123% in 10 trades.
LINK/USD: +155% in 11 trades.
MLN/USD: +388% in 8 trades.
ADA/USD: +180% in 7 trades.
LINK/BTC: +97% in 10 trades.
The best is that above results are without considering compound effect. If you re-invest all gains done in each new trade, this will give you the below results :)
ETH/USD: +189% in 8 trades.
BTC/USD: +260% in 7 trades.
ETH/BTC: +29% in 9 trades.
ICX/USD: +112% in 10 trades.
LINK/USD: +222% in 11 trades.
MLN/USD: +793% in 8 trades.
ADA/USD: +319% in 7 trades.
LINK/BTC: +103% in 10 trades.
As you can see, the results are good and the number of trades for 11 months is not big, which allows the trader to place orders manually.
But still, I'm lazy :), so, I have also coded this strategy in HaasScript language which allows you to automate this strategy using the HaasOnline software specialized in automated crypto trading.
I hope that this strategy will give you ideas or will be the starting point for your own strategy.
Let me know if you need more details.
Combo Backtest 123 Reversal & High - EMA Strategy This is combo strategies for get a cumulative signal.
First strategy
This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50.
The strategy sells at market, if close price is lower than the previous close price
during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
Second strategy
This indicator plots the difference between the High (of the previous period)
and an exponential moving average (13 period) of the Close (of the previous period).
You can use in the xPrice any series: Open, High, Low, Close, HL2, HLC3, OHLC4 and ect...
It buy if indicator above 0 and sell if below.
WARNING:
- For purpose educate only
- This script to change bars colors.
Simple Moving Average + ADX + DMI + Time Range Test
Use long and short moving average to look for a potential price in/out. (default as 14 and 7, bases on the history experience)
ADX and DMI to prevent the small volatility and tangling MA.
This script allows you to set the beginning & end time to test the bullish & bearish market.
If you want an indicator version, here is it.
Thanks.
Amazing strategy for silver -XAGUSD, XAGEUR etcToday I bring an amazing strategy that works for 1h time frames for silver.
Its made of price actions movement combined together with MACD and simple moving average
It does not use neither stop loss/take profit levels. Instead it will always exit at the next candle after it opens a trade.
The rules are the next one :
For short condition : we have a bull candle, and candle is above the moving average, and MACD histogram is > 0 and last high0 and candle close > last high1 and, previus high1 and candle close > last high2
At the same time, viceversa for long condition.
In development terms, this is the formula
long1 = (close > open ) and time_cond and close > out and hist > 0 and hist > hist and high > high and high > high and close > high and close > high and close > high
short1 = (close < open) and time_cond and close < out and hist < 0 and hist < hist and low < low and low < low and close < low and close < low and close < low
But when we enter the trade, we enter in reverse, like lets say we go long -> for this we apply the short1 condition. If we go short we apply the long1 condition.
If you have any questions , please let me know .
Swing/Daytrading strategy with reversal option
Hello, today I bring a swing reversal strategy that work on all financial markets.
It uses timeframes starting from 1h, the bigger the better.
Its very dangerous because it has no stop loss, neither a take profit. Our exit condition is based on the reversal on the entry .
For entry we have 2 types : normal and reversal
Lets say we want to go long , for that we check the last CLOSE of a candle with the previos HIGH. If its higher than that, and at the same time CLOSE is bigger than the moving average, we have a long entry.
For short we have CLOSE with the previous LOW. If its lower than that and at the same time is lower than moving average, we have a short entry.
For moving average we use T3 MA
For reversal what I do, is , I take the short condition and I apply it to long, and for long I apply the short condition.
On many cases I found out it work amazingly.
I forgot to add: it also has a time entry system, so we use the best hours/sessions for entries .
Exit a trade: lets say we enter short, when we find a long condition, we close short and enter into long. Viceversa for long.
If you have any questions, let me know.
Enjoy it :)
VWMA_withATRstops_strategyThis strategy follows the trend when price is above VWMA indicator. I have modified entry and exit rules to get most out of it.
Instead of entering LONG when price crosses above VWMA, I have used RSI(14) of VWMA . that way it skips the false signals. (some extent)
ENTRY
========
1. VWMA setting is 33
2. When RSIofVwma is above 30 enter Long ( and also checks if price already broke the ATR Stop above line )
Stop Loss and Exits
==================
1. Exit is when price breaks the ATR stop loss
2. ATR setting is set as same VWMA Length and multiplier is 3.5
3. STOP Loss that I mentioned in the settings is being used to calculate the how many units can be purchased based on risk of capital value.
Note: There is NO hard stop loss. having above ATR stop loss works as Trailing stop loss
Warning
=======
For the educational purposes only
EMA_cumulativeVolume_crossover[Strategy]This strategy is back test for EMA_cumulativeVolume_crossover
BUY
When ema50 crossover cumulative volume of 100 period
Exit
When ema50 cross down cumulative volume of 100 period
Partial Exit
for the partial profit I have used stopLoss value , but up side. When price is above partial profit and crossing down EMA 50 , exit 1/3 position
Please note when you select this setting, you see spike number of trades, that is because you closing partial number of trades. which increases the winning rate but reduces the total net profit.
Stop Loss
Defaulted to 8%
Added parameter to take LONG or SHORT trades ... on SHORT side not very good results ... you can review it and provide feedback how to improve the performance.
Short Selling
Reverse above BUY conditions
I have tested LONG trades on SPY , QQQ and AAPL on 1 Hour and 30 mins timeframes. for AAPL on DAY timeframe it shows crazy results :-)
Note
For the use of educational purposes only.
Hull FisherThis strategy has a Fisher-Transform indicator applied to the highs and lows of a Hull moving average instead of the price. It also has a Commodity Channel Index to help with entry/exit. Each part of the strategy can be turned on and off, for example turn off CCI or HMA so they are not used in the order opening/exiting. The base of the strategies entry and exit logic is the fisher transform line, if it crosses over outside the lines or either side of zero (adjustable in settings).
This example on ETHBTC Daily chart has common crypto exchange commission 0.25% added. Please adjust that setting to suit your pair/broker. For example a Forex pair does not have that much commission so reduce it for Forex charts.
Can be applied to any time frame or trading instrument.
Noro's SRSI StrategyIndicator
Blue line - common RSI indicator.
Red line - SMA based on RSI
Upper black line - 50% + limit (custom parameter, 65% by default)
Lower black line - 50% - limit (custom parameter, 35% by default)
Strategy
If the red line (SMA) is higher than the upper black line, open a long position (and close the short position).
If the red line (SMA) is lower than the lower black line - open a short position (and close the long position).
For
Cryptocurrencies
Timeframes: 1h, 4h, 1d
Options
1) Length for RSI indicator
2) Length for RSI-based SMA
3) Limit - shift from 50% RSI (above and below, black lines)
Idea
As a rule, if the RSI indicator started to show high values, after that the price rises more often than falls. The opposite is true. When the RSI indicator is at its lowest values for a long time, the price usually keeps falling. The SMA is needed to reduce the error of RSI signals. Limit is needed to reduce a trades (a many trades is a many fees).
Zignaly TutorialThis strategy serves as a beginner's guide to connect TradingView signals to Zignaly Crypto Trading Platform.
It was originally tested at BTCUSDT pair and 1D timeframe.
Before using this documentation it's recommended that you:
Use default TradingView strategy script or another script and setup its associated alert manually. Just make the alert pop-up in the screen.
Create a 'Copy-Trader provider' (or Signal Provider) in Zignaly and send signals to it either thanks to your browser or with some basic programming.
SETTINGS
__ SETTINGS - Capital
(CAPITAL) Capital quote invested per order in USDT units {100.0}. This setting is only used when '(ZIG) Provider type' is set to 'Signal Provider'.
(CAPITAL) Capital percentage invested per order (%) {25.0}. This setting is only used when '(ZIG) Provider type' is set to 'Copy Trader Provider'.
__ SETTINGS - Misc
(ZIG) Enable Alert message {True}: Whether to enable alert message or not.
(DEBUG) Enable debug on order comments {True}: Whether to show alerts on order comments or not.
Number of decimal digits for Prices {2}.
(DECIMAL) Maximum number of decimal for contracts {3}.
__ SETTINGS - Zignaly
(ZIG) Integration type {TradingView only}: Hybrid : Both TradingView and Zignaly handle take profit, trailing stops and stop losses. Useful if you are scared about TradingView not firing an alert. It might arise problems if TradingView and Zignaly get out of sync. TradingView only : TradingView sends entry and exit orders to Zignaly so that Zignaly only buys or sells. Zignaly won't handle stop loss or other settings on its own.
(ZIG) Zignaly Alert Type {WebHook}: 'Email' or 'WebHook'.
(ZIG) Provider type {Copy Trader Provider}: 'Copy Trader Provider' or 'Signal Provider'. 'Copy Trader Provider' sends a percentage to manage. 'Signal Provider' sends a quote to manage.
(ZIG) Exchange: 'Binance' or 'Kucoin'.
(ZIG) Exchange Type {Spot}: 'Spot' or 'Futures'.
(ZIG) Leverage {1}. Set it to '1' when '(ZIG) Exchange Type' is set to 'Spot'.
__ SETTINGS - Strategy
(STRAT) Strategy Type: 'Long and Short', 'Long Only' or 'Short Only'.
(STOPTAKE) Take Profit? {false}: Whether to enable Take Profit.
(STOPTAKE) Stop Loss? {True}: Whether to enable Stop Loss.
(TRAILING) Enable Trailing Take Profit (%) {True}: Whether to enable Trailing Take Profit.
(STOPTAKE) Take Profit % {3.0}: Take profit percentage. This setting is only used when '(STOPTAKE) Take Profit?' setting is set to true.
(STOPTAKE) Stop Loss % {2.0}: Stop loss percentage. This setting is only used when '(STOPTAKE) Stop Loss?' setting is set to true.
(TRAILING) Trailing Take Profit Trigger (%) {2.5}: Trailing Stop Trigger Percentage. This setting is only used when '(TRAILING) Enable Trailing Take Profit (%)' setting is set to true.
(TRAILING) Trailing Take Profit as a percentage of Trailing Take Profit Trigger (%) {25.0}: Trailing Stop Distance Percentage. This setting is only used when '(TRAILING) Enable Trailing Take Profit (%)' setting is set to true.
(RECENT) Number of minutes to wait to open a new order after the previous one has been opened {6}.
DEFAULT SETTINGS
By default this strategy has been setup with these beginner settings:
'(ZIG) Integration type' : TradingView only
'(ZIG) Provider type' : 'Copy Trader Provider'
'(ZIG) Exchange' : 'Binance'
'(ZIG) Exchange Type' : 'Spot'
'(STRAT) Strategy Type' : 'Long Only'
'(ZIG) Leverage' : '1' (Or no leverage)
but you can change those settings if needed.
FIRST STEP
For both future of spot markets you should make sure to change '(ZIG) Zignaly Alert Type' to match either WebHook or Email. If you have a non paid account in TradingView as in October 2020 you would have to use Email which it's free to use.
RECOMMENDED SETTINGS
__ RECOMMENDED SETTINGS - Spot markets
'(ZIG) Exchange Type' setting should be set to 'Spot'
'(STRAT) Strategy Type' setting should be set to 'Long Only'
'(ZIG) Leverage' setting should be set to '1'
__ RECOMMENDED SETTINGS - Future markets
'(ZIG) Exchange Type' setting should be set to 'Futures'
'(STRAT) Strategy Type' setting should be set to 'Long and Short'
'(ZIG) Leverage' setting might be changed if desired.
__ RECOMMENDED SETTINGS - Signal Providers
'(ZIG) Provider type' setting should be set to 'Signal Provider'
'(CAPITAL) Capital quote invested per order in USDT units' setting might be changed if desired.
__ RECOMMENDED SETTINGS - Copy Trader Providers
'(ZIG) Provider type' setting should be set to 'Copy Trader Provider'
'(CAPITAL) Capital percentage invested per order (%)' setting might be changed if desired.
Strategy Properties setting: 'Initial Capital' might be changed if desired.
INTEGRATION TYPE EXPLANATION
'Hybrid': Both TradingView and Zignaly handle take profit, trailing stops and stop losses. Useful if you are scared about TradingView not firing an alert. It might arise problems if TradingView and Zignaly get out of sync.
'TradingView only': TradingView sends entry and exit orders to Zignaly so that Zignaly only buys or sells. Zignaly won't handle stop loss or other settings on its own.
HOW TO USE THIS STRATEGY
Beginner: Copy and paste the strategy and change it to your needs. Turn off '(DEBUG) Enable debug on order comments' setting.
Medium: Reuse functions and inputs from this strategy into your own as if it was a library.
Advanced: Check Strategy Tester. List of trades. Copy and paste the different suggested 'alert_message' variable contents to your script.
Expert: I needed a way to pass data from TradingView script to the alert. Now I know it's the 'alert_message' variable. I can do this own my own.
ALERTS SETUP
This is the important piece of information that allows you to connect TradingView to Zignaly in a semi-automatic manner.
__ ALERTS SETUP - WebHook
Webhook URL: https : // zignaly . com / api / signals.php?key=MYSECRETKEY
Message: { {{strategy.order.alert_message}} , "key" : "MYSECRETKEY" }
__ ALERTS SETUP - Email
Setup a new Hotmail account
Add it as an 'SMS email' in TradingView Profile settings page.
Confirm your own the email address
Create a rule in your Hotmail account that 'Redirects' (not forwards) emails to 'signals @ zignaly . email' when (1): 'Subject' includes 'Alert', (2): 'Email body' contains string 'MYZIGNALYREDIRECTTRIGGER' and (3): 'From' contains 'noreply @ tradingview . com'.
In 'More Actions' check: Send Email-to-SMS
Message: ||{{strategy.order.alert_message}}||key=MYSECRETKEY||
MYZIGNALYREDIRECTTRIGGER
'(DEBUG) Enable debug on order comments' is turned on by default so that you can see in the Strategy Tester. List of Trades. The different orders alert_message that would have been sent to your alert. You might want to turn it off it some many letters in the screen is problem.
STRATEGY ADVICE
If you turn on 'Take Profit' then turn off 'Trailing Take Profit'.
ZIGNALY SIDE ADVICE
If you are a 'Signal Provider' make sure that 'Allow reusing the same signalId if there isn't any open position using it?' setting in the profile tab is set to true.
You can find your 'MYSECRETKEY' in your 'Copy Trader/Signal' provider Edit tab at 'Signal URL'.
ADDITIONAL ZIGNALY DOCUMENTATION
docs . zignaly . com / signals / how-to -- How to send signals to Zignaly
3 Ways to send signals to Zignaly
SIGNALS
FINAL REMARKS
This strategy tries to match the Pine Script Coding Conventions as best as possible.
Stepped trailing strategy exampleThis is a stepped trailing exit example for educational purpose .
Short brief.
There are 1 stop loss and 3 profit levels.
When first tp is reached we move stop loss to break-even.
When second tp is reached we move stop loss to first tp.
When third tp is reached we exit by profit.