Automated Anchored VWAPThis was reasonably easy to put together and I can't find one that does this in the Library and I've been wanting one. Of course, the drawing tool is just fantastic, but sometimes it can be forgotten as new pivots emerge.
What you'll find elsewhere in the Library is a nice variety of fancier methods for determining an anchor point with labels, lines, timestamps and standard deviations.
This is just a simple script to pull the Anchored VWAP off of the most recent pivot and update that as new pivots become defined.
I wanted it to be really portable so it could easily work into other things you're working on while also keeping the chart reasonably clean.
The way this functions is as follows: A new pivot is found and VWAP is calculated from it. At that point the prior aVWAP is no longer tracked and it picks up from the new pivot .
Of course this means that the plot doesn't generate until the pivot is actually confirmed, which in turn means that the plot doesn't reach back to the pivot , it begins based on whatever "right bars" period you end up choosing.
I kind of like it that way, because you have your eyes on the one that matters until the new one matters.
The downside is that it doesn't track old pivots . The old aVWAP might still be in play. But if you track all of the old one's you'll have a 100 lines on your chart and no one wants that.
I recommend when you look back and think the old one is still in play, use the drawing tool to keep it on the chart.
Otherwise, let the script do the work for you.
Hope its helpful. Let me know what you think should be done to make it better.
Automated
Oversold RSI with Tight Stop-Loss Strategy (by Coinrule)KRAKEN:LINKUSD
This is one of the best strategies that can be used to get familiar with technical indicators and start to include them in your rules on Coinrule .
ENTRY
1. This trading system uses the RSI (Relative Strength Index) to anticipate good points to enter positions. RSI is a technical indicator frequently used in trading. It works by measuring the speed and change of price movements to determine whether a coin is oversold (indicating a good entry point) or overbought (indicating a point of exit/entry for a short position). The RSI oscillates between 0 and 100 and is traditionally considered overbought when over 70 and oversold when below 30.
2. To pick the right moment to buy, the strategy enters a trade when the RSI falls below 30 indicating the coin is oversold and primed for a trend reversal.
EXIT
The strategy then exits the position when the price appreciates 7% from the point of entry. The position also maintains a tight stop-loss and closes the position if the price depreciates 1% from the entry price. The idea behind this is to cut your losing trades fast and let your winners ride.
The best time frame for this strategy based on our back testing data is the daily. Shorter time frames can also work well on certain coins, however in our experience, the daily works best. Feel free to experiment with this script and test it on a variety of your coins! With our back testing data 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 by volume. In the example shown, this strategy made a handsome net profit of 52.6% on Chainlink with 66.67% of trades being profitable.
You can execute this strategy on your favorite exchanges with Coinrule .
EasyTrade - Chandelier EMAHello Traders!
Starting from an idea of youtube channel "Ultra Trader", we have developed this simple indicator and prepared to be used with EasyTrade software.
You can setup Alerts for Crypto or Forex/Indices/Stocks/etc...
The simple but working idea behind this indicator, is a combination of "Chandelier Exit strategy" and EMA 200. It's great on long trend.
Good results are obtained with scalping timeframe from 1 to 15-minute timeframe (see video for details).
Settings
ATR Period : This value is used to change the number of candles used in ATR formula.
ATR Multiplier : This value is used to multiply the ATR value.
Use EMA filter and Value : This options Enable/Disable the EMA filter. You can change the period of the EMA
R/R ratio : You can set your Risk/Reward ratio according to your trading rules.
Show Trend : Show or hide the indicator cloud
Show Signals : Show or hide the dots on the bottom of the graphs and the "Sell" or "Buy" labels.
Show TP/SL : Show or hide Take profits (Purple line) and Stop Loss (Orange Line)
Alerts
The alert signal generated by the indicator can be directly used by the EasyTrade software to directly execute trades on your preferred Broker.
Conclusion
We hope it will be useful to simplify and automate your trading, but remember; always do your back-tests with your trading rules .
Suggestions or improvements are always welcome, if they make sense.
Credits
Ultra Trades Video
EasyTrade Free Indicators and Software
[BA] ATR Stop LineThis indicator helps you to set your stoploss levels by using ATR. Traders often use atr values in order to calculate their stoploss levels.
This indicator does the calculation for you and draw two tiny lines without messing up the chart so that you can easily see your stoploss levels and get an idea about the volatility and risk amount as well.
One line is below the last candle as a long trade stop loss level and the other one is above the last candle as a short trade stop loss level.
Calculation is simple:
For short trades, 2 times ATR added to last price;
For long trades, 2 times ATR subtracted from last price.
You can change ATR length, ATR multiplier and the line length.
Good luck.
Holyscalp v.3 A MACD 15 min trading strategy,
I set two macd trends that must match in trend direction to be traded,
along with that they must follow the moving average trend set in place
the trades trigger with an atr stop loss indicator "atr+" by zedartoftrading to be exact
It automates fully through autoview/oanda broker
the ma breach settings look back however many bars set in place and see if the bars are closing in opposite trend to the moving average
*TIP get another chart with same forex pair and take and change the candle sticks to heikin candles and set chart to 1D and trade only with that trend for the 15min settings, you can disable short trades by setting the threshold limit to 1 and to disable long trades set threshold to -1
Dec 31, 2021
Release Notes: for my use only
an hour ago
Release Notes: It trades based on these parameters I set in place.
1. The long term macd trend and the short term macd trend must match
2. The atr+ can not be more than 3x the previous atr.
3. It must trade with the trend set in place, I have two moving averages to choose from, to disable the second moving average set it to 1.
4. Don't touch the hammer and star fib level leave at zero, need to code that separately
5. the MA breach looks back a certain amount of bars to try and stop trading while its consolidating. I set at 1:0
an hour ago
Release Notes: Just updated the default settings, Remember they are set for optimization for 15mins but the same rules and parameters still apply to longer time frames, just change the moving averages to your liking if you want to move up timeframes.
Litt Auto FibThe Litt Auto Fib Tool automatically draws Fibonacci Retracements & Fibonacci Extensions based on time periods. The time period has two important settings.
1. The Fib Period is the period in which the Fib Tool determines a High and Low.
2. Use Previous Fib overlays the past periods Fib Levels on the current period.
For example, if we are using Daily period (D), then the Litt Auto Fib will calculate that Time periods High and Low. After determining the High and Low the tool will plot retracement levels and extension levels based off that Time periods High and Low. If we have the Use Previous Fib Unchecked it will use the current Day. If we have the Use Previous Fib checked (Or set to True), the Fib tool will use the previous day and overlay onto the current day. These levels can act as support and resistance, profit targets or stop losses. If you need more information on Fibonacci or how traders use it, it is best to do a quick Google search.
QaSH DCA Ichimoku Cloud
This powerful script takes the classic Ichimoku Cloud strategy and revitalizes it by allowing the user to make multiple DCA orders on each trade. Spreading your entry through DCA orders allows you to give the entry point room to breathe, and average down your position as the volatility momentarily pulls price against you. Both long and short positions are possible, each limited to a maximum of 5 DCA orders per trade.
When the Ichimoku cloud is showing bullish direction, only long trades will be allowed. During bearish direction, short trades will be allowed.
Two additional multi-timeframe EMA's can be added and used as filters for the long and short entries.
If you like you can use as little as one entry order per trade:
Or you can use up to a maximum of 5 DCA orders
TradingGroundhog - Fundamental Bot Automation - Fractal/Wave -V1PLEASE READ THE DESCRIPTION - AS THE SCRIPT IS USED FOR AUTOMATION AND TRADING PAIR SWITCH THE MECHANISM CAN BE COMPLICATED TO UNDERSTAND
#-- Pairs Switching - No Repaint - Fractals - Wavetrend --
This strategy uses my fractal/wavetrend previous methods in order to buy/sell.
However, it has been designed in order to switch automatically the pairs on which it trades to reduce the loss and risk.
#-- Synopsis --
To do so, the script uses a Daily wavetrend oscillator. The oscillator is used to find uptrend periods.
From it, the number of uptrend days are counted.
#-- Wavetrend --
For exemple, if BTC/EUR goes from downtrend to uptrend, the script will start to count since how many days the market is uptrend.
Then, if BTC/EUR goes from uptrend to downtrend, the counter will be reset to 0.
The script only trades during uptrend periods.
#-- Pairs --
Up to 35 pairs can be used at the same time. The user can enable of disable to trade on certain pairs.
Uptrend days are counted for each one of those pairs. The user can define on how many pairs the script can trade at the same time.
The select which pairs will be trade, the script sort all the enabled pairs based on their uptrend days counters.
#-- Trade organization --
For exemple if we set 5, as the number of maximum pairs to trade on.
Trades will be conducted on the 5 pairs being in uptrend for the longest time.
Therefore, to organize the money placement on each pair, the equity is used.
For 100% of equity, 10% are kept if losing trades occur.
The remaining 90% are divided by the number of maximum pairs to trade on.
If we chose 5, we will have (90/5) 18% of our capital placed in each bot.
#-- Setting it --
As explained before, this script is used for automation.
For exemple, lets say you are interested by 15 pairs with promising evolution and you set the number of maximum pairs to trade on to 5.
You will have to set alerts for the script on each of the 15 pairs.
You will receive alerts for when to buy and sell.
Note that the script has to be set for each of the selected pairs, it is not able to trade on 15 pairs (thus, webpages) if only set on one Tradingview webpage.
#-- Plot--
Once launch, you can see a plot.
The plot represent the Uptrend days counter for 20 pairs. It also project the organization of the ENABLED pairs.
If a pair is part of the one with the highest number of uprend days. It's name will be displayed under the plot in a yellow comment box.
Four other box are projected to the right of the plot:
White comment : All the pairs sorted from highest number of uptrend days to the lowest.
Red comment : Pairs with the lowest number of uptrend days.
Blue comment : Interesting pairs which will may be uptrend for a long time.
Green comment : Actual pairs with active trading (thus, the pairs with the maximum number of uptrend days)
#-- Bot automation --
If you use 3commas or other trading bot platforms, you will have to set as comments the BUY/SELL alerts. <= Which is what I am doing with it.
Doing so make you trade on multiple pairs, automatically.
However, you will need to set as input the 3commas signal.
For the moment, the script will be needed for it.
However, I will soon release a V2 taking as input the 3commas strategy comments.
For the moment, you can set the script in different webpages and follow BUY/SELL orders by eyes of alerts. ;)
#-- Parameters --
*** Parameters have been intensively optimized using 35 cryptocurrency pairsin order to have potent efficiency for each of them. I would recommend to only change the METHOD SETTINGS. For the others, I don't recommend any modifications. If you need precision on the other parameters of if you want to modify them, more informations can be found in my previous scripts and ***
Filtering method :
Used to reduce or not the risks. If you set Wavetrend, less trades will be conducted as the wavetrend filter from will be used. If you choose Fractal, no Wavetrend signals will be used.
(I prefer to use Fractal as I am using 1 or 3 minutes timeframes for the moment.)
Market Pairs : You can select on which markets the script will trade by enabling it's checkbox.
*** Also, for the moment, due to Pinescript limitation, I cannot set as input the number of active pairs. So I set 5, after optimization, as the default number of maximum pairs to trade on. Thus, you should open webpage for each ENABLED pairs and load the script in each on them. 5 Tradingview webpage will always be active. ***
#-- Timeframe --
You can use the script for Short or Long term trading:
For Short term, you will have to use 1 or 3 minutes timeframes, depending on the volatility of the market. (What I am using)
For Long term, you will have to use 5 or 15 minutes timeframes, depending on the volatility of the market.
#-- Strategy abilities and results for more than a month of activity -- *** !!! IMPORTANT SECTION !!! ***
I have simulated the profit for the 21 ACTIVE pairs I selected has been potent with my Fractal strategy. Different maximum number of trading pairs were used in order to find the best one. The script was run for the last 46 or 30 days.
Different timeframe have been used as pairs have different volatility.
*** If you use the script, SET IT UP with the following pairs and the following timeframes. ***
-------------------------------------------------------------------------------------------------------
Parameters | Maximum number of trading pairs
-------------------------------------------------------------------------------------------------------
Timeframe | Pairs | 1 2 3 5 6 10
-------------------------------------------------------------------------------------------------------
3M | SHIB | 0 0.98 3.63 2.17 2.56 2.56
1M | SOL | 0 1.5 1.08 1.26 0 0
3M | XRP | 10.5 4.56 3.29 2.19 1.52 1.52
3M | ETH | 9.94 6.97 4.55 3.45 2.19 2.19
3M | BTC | 1.7 2.32 1.74 1.88 1.33 1.33
3M | DOT | 0 3.5 2.32 2.27 1.99 1.99
1M | DOGE | 0 0 0 3.14 1.93 1.93
1M | LUNA | 0 0 0 0.23 2.35 2.35
3M | AVAX | 8.92 0 0.53 3.63 1.17 1.17
1M | HOT | 0 0 2.12 7.96 4.69 4.69
3M | GRT | 0 -1.09 -0.82 0.25 -0.191 0
1M | LINK | 0 0 0 0 0 0
1M | CHZ | 0 0 0.4 0.85 1.89 1.91
3M | WIN | 0 0 0.52 5.89 2.8 2..8
3M | ENJ | 32.63 15.65 12.55 10.31 5.62 5.62
3M | RUNE | 0 4.68 3.42 -1.18 2.3 2.3
3M | LTC | 0 -0.06 1.1 1.29 3.49 3.49
3M | BTT | 0 0 0 0.85 1.63 1.63
3M | BCH | 0 0 0 1.36 2.36 2.36
3M | WRX | 0.26 4.66 5.36 4.29 3.01 3.01
3M | ETC | -0.92 0 0 3.6 3.31 3.56
-------------------------------------------------------------------------------------------------------
Net profit % | 63.03 43.67 37.24 55.69 45.949 43.61
Number of days | 46 30 30 46 46 46
Net profit % per day | 1.38 1.46 1.25 1.22 1.00 0.95
-------------------------------------------------------------------------------------------------------
*** Therefore, we are around more than 1% per day in each case. ***
#-- Choosing pairs --
I selected the 35 cryptocurrencies which can be exchange with EUR and evaluated the ability of my Fractal script on them. The on which have been ENABLED (true) are the best.
BINANCE:SHIBEUR | true
BINANCE:SOLEUR | true
BINANCE:XRPEUR | true
BINANCE:ETHEUR | true
BINANCE:BTCEUR | true
BINANCE:DOTEUR | true
BINANCE:ENJEUR | true
BINANCE:DOGEEUR | true
BINANCE:LUNAEUR | true
BINANCE:VETEUR | false
BINANCE:BNBEUR | false
BINANCE:AVAXEUR | true
BINANCE:HOTEUR | true
BINANCE:EGLDEUR | false
BINANCE:GRTEUR | true
BINANCE:MATICEUR | false
BINANCE:LINKEUR | true
BINANCE:CHZEUR | true
BINANCE:ICPEUR | false
BINANCE:UNIEUR | false
BINANCE:WINEUR | true
BINANCE:ADAEUR | false
BINANCE:RUNEEUR | true
BINANCE:TRXEUR | false
BINANCE:THETAEUR | false
BINANCE:EOSEUR | false
BINANCE:LTCEUR | true
BINANCE:XLMEUR | false
BINANCE:BTTEUR | true
BINANCE:SXPEUR | false
BINANCE:LAZIOEUR | false
BINANCE:YFIEUR | false
BINANCE:BCHEUR | true
BINANCE:WRXEUR | true
BINANCE:ETCEUR | true
TradingGroundhog - Strategy & Fractal V1#-- Public Strategy - No Repaint - Fractals -- Short term
Here I come with another script, more simple than Wavetrend V1. You will love it.
#-- Synopsis --
Another simple idea, on a small time frame (15 min) we buy when the opening price goes below a Bottom fractals and sell when it goes over a Top fractals, but as this script do not use Wavetrends. You should stop by your self to use the script during long lasting downtrends.
I developed the strategy using BTC /EUR 3 MIN BINANCE but it can be applied to many other cryptos, I don't know for forex or others. You can use it for short term (to a month of uptrend) and automated trading.
#-- Graph reading --
And now, how to read it ?
Fractals:
Yellow Flags occur when the opening price goes below a Bottom fractal , it means Buy.
White Flags appear when the opening price goes over a Top fractal , it means Sell.
#-- Parameters --
*** Parameters have been intensively optimized using 10 cryptocurrency markets in order to have potent efficiency for each of them. I would recommend to only change the Can Be touch parameter. For the others, I don't recommend any modifications. The idea behind the script is to be able to switch between markets without having to optimize parameters, less work, easy to target active crypto and therefor limit the risks. ***
Can be touch :
'Filter fractals' : Activate or Disable the filtering fractal operation. If Enable, buy during less risky periods. (Activate is often better)
Can be touch but not necessary :
'VolumeMA' : The Volume corrector used by the fractals
'Extreme window' : The number of price individuals to look for if we want to remove extreme fractals.
Not to touch :
'Long Sop Loss (%)' : The minimal difference of price between a Fractal bottom and the opening price to buy.
#-- Time frame --
Should be used with the following time frames depending on the necessity:
1 MIN
3 MIN (Preferred with the parameters set)
5 MIN
#-- Last words --
The script can be set up to send Tradingview signals to 3comma just by adding comment = " " in strategy.close_all() and strategy.entry().
Good trades !
Disclaimer (As it should always be one to any script)
***
This script is intended for and only to be used for personal purposes only. No such information provided by it constitutes advice or a recommendation for any investment or trading strategy for any specific person. There is no guarantee presented or implied as to the accuracy of specific forecasts, projections, or predictive statements offered by the script. Users of the script agree that its original developer does not take responsibility for any of your investment decisions. Please seek professional advice before trading.
***
# Here are the results from the 20rst of September 2021 with 100% of equity on the BTC /EUR 3 Min and with a capital of 10 000 EUR. So almost, one month.
# As I saw, it goes from +30% to more than +160% (the great SHIB) depending on the selected crypto. It may be negative if you spot a downtrend.
TradingGroundhog - Strategy & Wavetrend V2#-- Public Strategy - No Repaint - Fractals - Wavetrend --
Here I come with another script, a nice and simple strategy based on fractals and Wavetrends.
#-- Synopsis --
A simple idea, on a small time frame (15 min) we buy when the opening price goes below a Bottom fractals and sell when it goes over a Top fractals, but in order to avoid bad and evil downtrends, we use Wavetrends based on a Daily time frame. From it, Tops and Bottoms are extracted. If the opening price goes above Wavetrend Tops, no trades will be conducted during the day. If the price goes below Wavetrend bottoms, no trades will be executed from 1 to N days, until a new Wavetrend bottom is generated.
I developed the strategy using BTC /EUR 15 MIN BINANCE but it can be applied to many other cryptos, I don't know for forex or others. You can use it for long term and automated trading, I implemented the Wavetrend indicator to do so, or for short term if you have spot a long coming uptrend. Test it, look at its profit and long or short period on your crypto of choice.
#-- Graph reading --
And now, how to read it ?
Wavetrends:
Red Backgrounds are associated to No Trade periods. These periods occur when the price goes below a Wavetrend bottom or above a Wavetrend Top. They are here to limit the loss.
Blue Gradient lines represent the past Tops. For each bar, only the increasing values of the Wavetrend tops are acquired. Going from light to dark blue based on the age of the Tops. Thus, if on line goes from dark to light, this means the price is approaching a previous Wavetrend top. In the opposite, if it darken, thus the price say 'buy buy' and go dropping.
Yellow Gradient lines represent the past Bottoms. They are based on the same principe that the blue lines.
Fractals:
Yellow Flags occur when the opening price goes below a Bottom fractal , it means Buy.
White Flags appear when the opening price goes over a Top fractal , it means Sell.
#-- Parameters --
*** Parameters have been intensively optimized using 10 cryptocurrency markets in order to have potent efficiency for each of them. I would recommend to only change the Can Be touch parameter. For the others, I don't recommend any modifications. The idea behind the script is to be able to switch between markets without having to optimize parameters, less work, easy to target active crypto and therefor limit the risks. ***
Can be touch :
'Combined Smoothness' : The number of open individuals used by the Wavetrend. (6 or 9, often 9 is better but with less volatile crypto it will be 6)
'Filter fractals' : Activate or Disable the filtering fractal operation. If Enable, buy during less risky periods. (Disable is often better)
Can be touch but not necessary :
'VolumeMA' : The Volume corrector used by the fractals
'Extreme window' : The number of price individuals to look for if we want to remove extreme fractals.
Not to touch :
'Limit_candle to look on' : Number of candles to use to compute the Wavetrend Tops and Bottoms.
'Length top bottom drawn' : Size of the lines
'Long Sop Loss (%)' : The minimal difference of price between a Fractal bottom and the opening price to buy.
#-- Time frame --
Should be used with the following time frames depending on the necessity:
1 MIN
3 MIN (Interesting for short term profit, may need some parameter ajustements)
5 MIN
15 MIN (Preferred for long term profit, the script was developed on it)
#-- Last words --
The script can be set up to send Tradingview signals to 3comma just by adding comment = " " in strategy.close_all() and strategy.entry().
Good trades !
Disclaimer (As it should always be one to any script)
***
This script is intended for and only to be used for personal purposes only. No such information provided by it constitutes advice or a recommendation for any investment or trading strategy for any specific person. There is no guarantee presented or implied as to the accuracy of specific forecasts, projections, or predictive statements offered by the script. Users of the script agree that its original developer does not take responsibility for any of your investment decisions. Please seek professional advice before trading.
***
# Here are the results from the 1rst of July 2021 with 100% of equity on the BTC /EUR 15 Min and with a capital of 1 000 EUR.
# As I saw, it goes from +20% to more than +100% depending on the selected crypto. Sometimes it's negative but it's quite rare on crypto using the EUR.
hamster-bot ZZCompilation of various modifications of the trend breakout reversal strategies based on the ZigZag .
Includes past versions of scripts:
version 1 ZZ2 Breakout reversal strategy
version 2 ZZ2 with experimental options hamster-bot ZZ Breakout reversal strategy
version 3 ZZ6 Noro's ZZ-6 by hamster-bot The original script is available here
The original script is available here
Description ZZ6 :
New version of ZZ-strategy.
Repaint?
Normal lines are not redrawn. Dotted lines repaint, but do not affect trading (do not affect backtests). You can turn off repaint in the script settings. Repaint (dotted lines) are needed only for clarity. To make it clear from which bar the level is created.
Levels
Lime lines above - level from a local high bar. To open a long position. Using a market stop order.
Red line at the bottom - the level from a local low bar. To open a short position. Using a market stop order.
Trading
You can trade without short positions. Then the red line is the level for a stop-loss order.
Reverse trading can be used. Without stop-loss orders.
Risk size
Order size depends on the risk size parameter and possible loss. If risk size = 2%, it means that the loss will be no more than 2%.
For crypto
Symbols: XBT/USD, BTC /USD, BTC /USDT, ETH/USD, etc - need USD(T)
Timeframes: 1h, 4h, 1d
This new ZZ strategy includes all the best practices for this strategy. the script has great flexibility of settings.
Instructions for script parameters:
Parameter ZZ Type - is responsible for the basic type of strategy used (usually it is responsible for building levels)
then you will need to configure the settings block corresponding to the selected ZZ type .
At the moment the script contains types: ZZ2 + ZZ6
The rest of the parameters are common for any type of ZZ.
Further development will be done in this script. The above scripts will not be updated.
At the moment the options are already available:
- Take Profit
- Stop Loss
- One entry Long/Short
- Single entry
- Levels offset
- Levels multiplier
- Levels angle
INDIGO - Cloud System ©INDIGO Cloud System ©
This script shows the monthly dip and peak zones and the daily highs & lows.
The green zone is the dip zone. It's the place to enter a long position if you think there is or will be a reversal.
The red zone is the peak zone. It's the place to enter a short position if you think there is or will be a reversal.
The script uses the INDIGO Cloud System ©, the Ultimate RSI and the Market Direction Indicator to find an entry at the most optimal point in space and time.
The exit for the long trade is on the purple line and the exit for the short trade is on the blue line.
It also has an RSI exit to minimize the risk of a sudden reversal in the wrong direction while in trade.
You can set TP and SL to see the effects of it on the chart. Be aware that these change a lot of trades so use it wisely.
The labels are connected to alerts to notify you of a possible entry or exit.
This script uses the Ultimate RSI by ChrisMoody, thanks for creating this Chris !
This script also uses the Market Direction Indicator by LazyBear, great script !
You can use the MD Filter to filter out some bad trades. It decreases losses but also some profits.
Experiment with the settings, each pairing needs different settings.
--> Use this script at your own risk. Do your own research, never invest money you're not willing to lose and never put your trust in one indicator !
To my best knowledge this script doesn't repaint. I never use the close and only use high/low when value can't be untrue again. If you find repainting in this script PLEASE let me know !
Feel free to contact me for questions or feedback.
Enjoy the script :)
Bjorgum AutoTrailOne Time Trade Risk Management
Incorporating the new interactive feature, this script is meant as a one time trailing stop for the active trader to manage positional risk of an ongoing trade. As a crypto trader or Fx trader, many may find themselves in a position late into the evening, or perhaps daily life is calling while a trade progresses in their favor. Adding a trailing stop to a position thats trending can help to keep you in the trade and lock in gains if things turn around when you are unable to react.
To use the trail, the user would add the script to the chart. Once added, a set of crosshairs will appear allowing the user to choose a point to begin. Often choosing to start a trail from a swing high/ low can be an ideal option. This tends to provide some protection for a stop by placing it under support for a long trade or above resistance for a short trade.
Price based trail
The trail will automatically plot and the offset is a factor of the distance from price action selected by the crosshairs. If placed above price action the script will plot a short trail, if placed below it will trail for a long position.
Additionally, there are several other trail types other than price based. There is also percent based, which offsets the trail as a percent from close. A hard stop is placed at the cross hair value, then once the distance is exceeded by the percentage specified, the trail begins.
There are 2 more volatility based trails. There is a PSAR trail which can provide quicker and tighter stops that accelerate with the trend locking in gains faster, and an ATR trail that keeps a distance from price action as a function of volatility. Volatility levels can be adjusted from the menu.
Volatility based trail (ATR)
Volatility based trail (PSAR)
Lastly, within the code for more the more technical savvy, is some starting setups for string alerts to be sent to exchanges via 3rd party or custom API applications. Some string manipulation is required for specific providers to meet their requirements, but there is some building block alerts that will take the ticker symbol, recognize the asset your trading (Fx, Crypto, etc) and take input quantity or exchange names from the settings via inputs.
Complex strings can be built to perform almost any trade related task when to comes to alerts via web hook. A little setup this way with some technology to back your system can mean a semi-automated half man, half machine setup that actually manages your trail stop while you cannot. For those that don’t go this far, there is some basic alert functionality that well trigger when a trail is hit so you can react and make a decision.
Please note that for now, interactive mode is engaged only when the script is added to the chart. Additional stops, or for adjustments to be made it is best to add a new version. Also as real trades could be at play managing an actual position, alerts are designed to go off only once to ensure no duplicate orders are sent meaning alerts are not reoccurring. Once an alert is triggered, a new trail is to be set up.
A modified version of the TradingView built in SAR equation was used in this script. To provide the value of the SAR on the stop candle, it was necessary to alter the equation to extract this value as the regular SAR “flips” at this point. Thank you to TradingView for supplying access to the built in formula so that this SAR could behave the same as the built-in function outside of these alterations
Example of SAR value maintained in trigger candle
Cheers and happy trading.
Average Highest High and Lowest Low Swinger StrategyThis is a full price action strategy designed for trending markets such as crypto and stocks.
Its purely made on calculations for the highest high and lowest low using 2 different length , a faster and a slower one.
With those we make multiple averages.
Rules for entry:
For long: our close of the candle is above both the average using fast and slow line
For short: our close of the candle is below both the average using fast and slow line
Rules for exit
We always exit when we have an opposite order
Caution
This strategy use no risk management system, so be careful with it
If you have any questions, let me know
Pivot Reversal Strategy + alerts via TradingConnector to indicesSoftware part of algotrading is simpler than you think. TradingView is a great place to do this actually. To present it, I'm publishing each of the default strategies you can find in Pinescript editor's "built-in" list with slight modification - I'm only adding 2 lines of code, which will trigger alerts, ready to be forwarded to your broker via TradingConnector and instantly executed there. Alerts added in this script: 14 and 22.
How it works:
1. TradingView alert fires.
2. TradingConnector catches it and forwards to MetaTrader4/5 you got from your broker.
3. Trade gets executed inside MetaTrader within 1 second of fired alert.
When configuring alert, make sure to select "alert() function calls only" in CreateAlert popup. One alert per ticker is required.
Adding stop-loss, take-profit, trailing-stop, break-even or executing pending orders is also possible. These topics have been covered in other example posts.
This routing works for Forex, indices, stocks, crypto - anything your broker offers via their MetaTrader4 or 5.
Disclaimer: This concept is presented for educational purposes only. Profitable results of trading this strategy are not guaranteed even if the backtest suggests so. By no means this post can be considered a trading advice. You trade at your own risk.
If you are thinking to execute this particular strategy, make sure to find the instrument, settings and timeframe which you like most. You can do this by your own research only.
Consecutive Up/Down Strat + alerts via TradingConnector to ForexSoftware part of algotrading is simpler than you think. TradingView is a great place to do this actually. To present it, I'm publishing each of the default strategies you can find in Pinescript editor's "built-in" list with slight modification - I'm only adding 2 lines of code, which will trigger alerts, ready to be forwarded to your broker via TradingConnector and instantly executed there. Alerts added in this script: 12 and 15.
How it works:
1. TradingView alert fires.
2. TradingConnector catches it and forwards to MetaTrader4/5 you got from your broker.
3. Trade gets executed inside MetaTrader within 1 second of fired alert.
When configuring alert, make sure to select "alert() function calls only" in CreateAlert popup. One alert per ticker is required.
Adding stop-loss, take-profit, trailing-stop, break-even or executing pending orders is also possible. These topics have been covered in other example posts.
This routing works for Forex, indices, stocks, crypto - anything your broker offers via their MetaTrader4 or 5.
Disclaimer: This concept is presented for educational purposes only. Profitable results of trading this strategy are not guaranteed even if the backtest suggests so. By no means this post can be considered a trading advice. You trade at your own risk.
If you are thinking to execute this particular strategy, make sure to find the instrument, settings and timeframe which you like most. You can do this by your own research only.
RSI Strategy with alerts via TradingConnector to ForexSoftware part of algotrading is simpler than you think. TradingView is a great place to do this actually. To present it, I'm publishing each of the default strategies you can find in Pinescript editor's "built-in" list with slight modification - I'm only adding 2 lines of code, which will trigger alerts, ready to be forwarded to your broker via TradingConnector and instantly executed there. Alerts added in this script: 12 and 17.
How it works:
1. TradingView alert fires.
2. TradingConnector catches it and forwards to MetaTrader4/5 you got from your broker.
3. Trade gets executed inside MetaTrader within 1 second of fired alert.
When configuring alert, make sure to select "alert() function calls only" in CreateAlert popup. One alert per ticker is required.
Adding stop-loss, take-profit, trailing-stop, break-even or executing pending orders is also possible. These topics have been covered in other example posts.
This routing works for Forex, indices, stocks, crypto - anything your broker offers via their MetaTrader4 or 5.
Disclaimer: This concept is presented for educational purposes only. Profitable results of trading this strategy are not guaranteed even if the backtest suggests so. By no means this post can be considered a trading advice. You trade at your own risk.
If you are thinking to execute this particular strategy, make sure to find the instrument, settings and timeframe which you like most. You can do this by your own research only.
FTB Strategy (Automated)Hey traders!
This is a profitable strategy script I created to teach my students how to automate their scripts using 3rd party APIs (more info available in my profile link at the bottom of this page).
What Is This?
This strategy is called the "Follow The Bear" strategy.
It's a forex trading strategy designed for one purpose and one purpose only: to take advantage of a recurring pattern on EURUSD's 1-Hour chart during the European market open.
The basic explanation is this:
During the European open we want to see a rally followed by a swing high shooting star / reversal pinbar candle. This typically means that traders buying EURUSD during the European/London open are now trapped long, and as price begins to retrace they are forced to sell, fueling a short-term retracement.
This strategy takes advantage of that pattern by aggressively selling short with a tight stop-loss above the pinbar candle and a conservative target.
There are many ways to trade this pattern, but this script represents my personal method for trading it.
It is not 100% accurate (no strategy is), but it does have a considerably high win rate over the past 6+ years considering its simplicity and I've been trading it for several months and can attest to its edge over the markets (at least through the Oanda data feed which is what I use).
The strategy rules are this:
Market: EURUSD
Timeframe: 1-Hour
Direction: Short Only
Timezone: 6AM-10AM GMT
Days: Tuesday, Wednesday, Thursday
Entry: Close of Pinbar Setup
Stop: 2 pips above signal candle
Target: 1:1
Risk: Up to you (backtest first! I use 1%)
The rule for the pinbar/shooting star candle pattern is that the candle must both open and close in the lower 50% of the bar's total size.
Automation
This script is already prepared to be auto-traded through a 3rd-party API that was created to relay TradingView alerts to your broker to execute and manage trades.
Sorry for the lack of information - due to TradingView's house rules I cannot go into any more detail here, but if you're interested in automating this script there is more info available in the resources offered under my profile link at the bottom of this page.
Disclaimer
The material and the resources offered here are for educational purposes only. Always do your own research and only execute trades based on your own personal judgement.
Trading foreign currencies can be a challenging and potentially profitable opportunity for investors. However, before deciding to participate in the forex market, you should carefully consider your investment objectives, level of experience, and risk appetite. Most importantly, do not invest money you cannot afford to lose.
There is considerable exposure to risk in any foreign exchange transaction. Any transaction involving currencies involves risks including, but not limited to, the potential for changing political and/or economic conditions that may substantially affect the price or liquidity of a currency, investments in foreign exchange speculation may also be susceptible to sharp rises and falls as the relevant market values fluctuate.
The leveraged nature of forex trading means that any market movement will have an equally proportional effect on your deposited funds. This may work against you as well as for you. Not only may investors get back less than they invested, but in the case of higher risk strategies, investors may lose the entirety of their investment. It is for this reason that when speculating in such markets it is advisable to use only risk capital.
Trading foreign exchange on margin carries a high level of risk, and may not be suitable for all investors. Past performance is not indicative of future results. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with foreign exchange trading, and seek advice from an independent financial advisor if you have any doubts.
3 Auto Fibonacci RetracementsThe Indicator displays 3 different Auto Fibonacci Retracements with top, bottom, the 0.618 and 0.382 levels.
Also it displays 3 Moving Averages with the same length as the AutoFibos.
If the MA over the 0.618 level it colors itself yellow, if between 0.618 ans 0.382 white and under 0.382 blue.
The green lines are the top of the AutoFibos, red lines the bottom, blue lines are resistance/supports and yellow lines are stronger resistance/supports.
Godtrix's Crypto HA+RSI+EMA+ATH+DCA Strategy 3.0New Updates is here! Upgrade from previous version 2.0 (Please avoid using v2.0 as it's outdated.)
Great stability, Repaint bug fixes, and New features!
==================
| Introduction: |
==================
This is a Long Term Strategy, using compounding profit method, it can generate high returns, but it also risk for losses, this can be overcome if you set Stop Loss to over 25% for bitcoin & 60% for Altcoins.
Best profit plan with this strategy is you trade on Future leverage while you hold on to your coin, so that when price goes up, your coin value goes up, and at the same time, you trade with your leverage to earn even more, easily doubling up your total profit.
Benefits:
Fully customizable and you can easily personalized it and FINE TUNE it according to the market or coin you trading on.
The strategy is based on REAL PRACTICAL trading skills, so it works in real-world.
I fixed the "repainting" issue so the backtest it shows you IS ACCURATE when you run for real-time.
We all know one indicator is not going to help you win your trades, so this strategy combines ALL three: EMA for long+short term trend, HA for short term trend, RSI for entry/exit
This strategy is designed for LONG trade (Buy low, Sell high), not for SHORT trade.
This is not day trading, it is more to mid-term trading, where there's only few trades per month
Mainly is coded to work with 3Commas bot auto trading, so you only need to key in your Bot ID & Email Token.
Bot trading NOTE:
- You need to replace the Alert Message with this: {{strategy.order.alert_message}}
- And you'll need the Bot's webhook Url set with the Alert too.
- One Alert will work for both Buy and Sell Order
- If you using other Bot service, you can enter Custom Command in Input Settings too, it works on any bot service.
Lastly,
regarding the setting advice, I would say you try playing with different settings and your objective is to achieve a backtest result that has:
1) Profitable is > 80%
2) Losing trades is nearly 0 or below 25% of your winning trades. Trick is using far stop loss %
3) Net Profit be almost same or more than "Buy & Hold Profit"
==================
| Latest Updates: |
==================
=| Tidy Up Codings |=
- Group input fields so it'll be easier to understand and find the settings
- Upgrade code for obsolete 'transp' options
=| Repaint Issues |=
- Previous v2.0's RSI has repaint issue, creating false result against real-time data. I've fixed this.
- Also done fine-tuning other parts of the codes to prevent possible repaint issues.
=| Bot System |=
- Improved Custom Bot system, so that you're able to set dynamic order size/quantity with my custom keyword: and
Base Order Example:
{ 'message_type': 'bot', 'bot_id': 1234567, 'email_token': 'abcdefgh-1234-1234-1234', 'base_order': , 'delay_seconds': 0, 'pair': 'USDT_BTC'}
=| EMA Downtrend Exit |=
- Added option for you to decide whether to close position when detected EMA Long term downtrend.
=| EMA 2 (short term) is removed |=
- After several test, I've decided to remove this because it doesn't contribute to improving the results.
=| Heikin Ashi System |=
- Improved the chart display, now you'll see the HA candle 'shadowed' behind, so you'll see both actual price candle and HA candle at same time.
- Added the system that detect the HA candle sizes to decide specifically when it's suitable for Entry and Exit.
>> For "Entry/Exit Range"
- This means after HA is valid for Entry or Exit, how many following bars are allowed to stay valid so it will match other requirements to be completely fulfilled for Entry or Exit.
>> For "Crossing Interval"
- This means after detected HA line crossover, how many HA intervals is allow to Entry or Exit
>> For "Reversed Exit"
- This function let's you decide whether to close position if after HA bull (green candle) changed into HA Bear (red candle)
=| RSI A Entry |=
- Added option to avoid Entry during NTZ (No trade Zone)
- Also added the option to avoid next same condition RSI A entry too soon
=| RSI B Entry |=
- This function is for Entry if RSI is going very low, mostly due to bigger price drops in short time, it's good for buying DIP, however we'll never be able to know when a DIP ends, so do more test on this settings before put into real use.
- Added "avoid" options to help avoid getting Entry at "false" DIP, more like a short & fast pullback which causes RSI to drop very low but actually the price is near ATH or Recent High.
- Added option for Entry with Trailing Price Lower Buy combine with a limit order that grabs low price, so whichever it fulfill first.
=| New: Avoid Entry |=
- Well, it's a pain if you bought at the top, so I've added two options that will avoid buying near ATH and Recent High.
=| Time-limit Removed |=
- Sorry that I've missed look on the script policy which I'm not allowed to put a time-limit for public scripts.
=| System Improvements |=
- HA condition detection is optimized and bug fixed
- RSI values now reads accurately on each bar despite using higher timeframe, especially when moving to next interval
=| New: Dollar Cost Averaging (DCA) Orders |=
- Although DCA strategy is not appealing for Long term strategy, but I've added it for your extra options and flexibilities.
- The settings are quite straight-forward and standard, so I won't be explaining here.
=| New: Backtest Start & End Date |=
- This is very good function when you need more accurate result starting at specific date & time.
- Also if you set the date & time for your real trading starts, it'll much result the same as your actual trading records, which helps you to see clearer and make future decisions.
Any found bugs or flaws, please feel free to PM me, I can't get notifications from comments here below, so I'll not able to reply you the soonest possible, still not sure how to turn on notification for comments, anyone who knows can PM and teach me, lol... Thanks in advance!
Well, this is free version, hope it helps! Feedbacks are all welcome :)
(To Moderators: I've fully use the "f_security()" guideline, but instead of creating a separate function, I apply directly on all security() function. Please don't ban my script before fully check if I've truly fixed repaint. Thank you.)
BITSTAMP:BTCUSD COINBASE:BTCUSD COINBASE:ETHUSD BINANCE:BNBUSDT
NVME Support & ResistanceNVME Support & Resistance is unique compared to other S/R indicators out there because it provides users with automated analysis that can be done within a second and ours generate a highlight block rather than a solid line or dotted line and a highlight block is useful as it covers a bigger range compared to having dots and flat lines. Also, the zones will update corresponding to its lookback period, so if a new support or resistance is found then the block will move until that area is confirmed.
Best with higher timeframes!
This comes with all NVME scripts!
RSI Trend CryptoDear community,
Today I want to present you one of my favorite and simple trading bots: The RSI Trend.
This bot is based on the RSI, which normally is used as a trend reversal indicator. However, here it’s used as a trend finding indicator, often with great success. This bot making long-only trades, which is quite successful in bull-markets like the one we’re currently in.
In case you want to use an emergency exit for your trade, toggle the Emergency Exit parameter. During bull-markets it’s better in the long term to keep this option off.
Currently the bot only makes one trade at a time (pyramiding = 1), for higher risk and higher rewards you can increase this parameter. More than 5 is not advised.
I’ve optimized this bot on 15min time frame. It has some decent results for most cryptos on this TF, feel free to test this out.
In case you want to hook this bot up to your exchange, feel free to edit the ALERT messages in the code.
Default Trading Rules:
Long: RSI crosses over 35
Close Long: RSI crosses under 75
Emergency Exit: RSI crosses under 10
[SK] Fibonacci Auto Trend ScouterThe FATS - Fibonacci Auto Trend Scouter automatically draws active trends from 2 different timeframes along with Fibonacci Support and Resistance levels. It also has a Sights feature for each timeframe which points from it's middle towards the current price. The tool is also highly customizable for you to take this indicator over 9000. If you like the tool and it adds value to you - share the love on the like button and visit my profile to check out my other indicators and subscribe, so you're notified of my next scripts and ideas!
Automatic Trend Lines
The indicator takes in 2 timeframes to detect High and Low values from which to draw the trend lines of each timeframe.
As the values change with price movement, the lines are updated. They are color coded for uptrend and downtrend based on the direction of each individual line. Trend lines can be set up to color with only the default value on the configurations panel.
- Toggle on/off Color Coded
- Change Default, Uptrend, Downtrend color
- Change Line Width
- Change Line Style
- Toggle on/off Line Extensions
- Change Extended Line Width
- Change Extended Line Style
- Toggle On/Off labels for 7 data points of each timeframe
Automatic Trend Sights
This is a neat feature that may help you get a better feel for the direction the current movement is heading towards in correlation with the short or medium length timeframe trends. The sight draws a line from the middle vertical point of the trend coordinates towards the current price. They are toggled off by default but can be enabled in the configurations panel.
- Toggle on/off sight on each timeframe
- Change Width
- Change Line Style
Automatic Fibonacci Levels
The tool has a very useful feature to automatically detect the highest and lowest value from the short timeframe to calculate Fibonacci support and resistant levels. To keep the chart area clean, the lines are drawn short by default towards the right side of the price but provide inputs to increase the size of the level lines towards the left and right direction. A triangle label appears to the side of each line which holds the Fibonacci level and price data inside the tooltip, hover over them to activate.
- Toggle on/off color coded
- Change Default, Resistance, Support colors
- Change line size towards the left and right side
- Change line width
- Change Resistance line style
- Change Support line style
- Toggle on/off High and Low source line
- Toggle on/off High and Low source labels