adx efi 50 ema channel, trend pullbackHi so this strategy is based off 50 ema channel and the 15 ma crossing it to generate signals. But with my adjusted strategy it's a 10 rma crossing 50 ema channels and a 5 and 9 wma to help see pullbacks. 50 period bollinger bands to gage volatility a0nd help during range markets. The strategy signals are generated when longer period efi is above 0 and shorter period efi is below zero and price has pulled back near 50 ema to buy long. And the reverse for shorts, I made this to help me trade more mechanically and to trade 1 minute time frame, that's where the strategy seems to Excell the most, I developed it on eur usd but a brief check seems like it still is profitable on gbp usd aud usd usd jpy I only trade the forex market so not sure about stocks and crypto. If you get signals I would place buy stops and sell stops above high and low of respective signal candle and let price take you into trade. Also adx 20 has to be greater than 20 to take trades. Let me know if this is helpful. I've only been coding for a month so it might look sloppy the way it's coded also there are a few other buy and sell conditions left in the source code if you want to switch between different buy and sell triggers, they all produce good results on 1 min timeframe
Moyennes mobiles
NSDT HAMA Candles STRATThis is a STRATEGY based on our popular HAMA Candles Indicator.
It is an "Always On" strategy, meaning it will stay in a Long position until the Short criteria shows up, and then it will close the Long position and immediately enter a Short position.
Since this is a strategy, we added a few more components. The most notable one is the grid at the top right that shows the statistics of whatever the current settings are. The user can change the MA lengths and see the potential results update in real time.
Since this is Always On and uses Moving Averages, we added an ADX setting to help filter our trades in a ranging/choppy market.
The settings will need to be adjusted to find the best fit for your instrument, chart time, and risk management plan.
action zone - ATR stop reverse order strategy v0.1 by 9nckACTION ZONE-ATR MOD v0.1 DOCUMENTATION
Overview
This tradingview pine script strategy is mainly created to enrich my coding skill. It is a combination of “CDC-ACTIONZONE” and my personal studies of trading techniques in various sources e.g.book, course or blog. This strategy purposefully built to connect with my automatic trading bot. However, It will be very useful to aid your trading routine by diminishing mental distraction which possibly leads to bad trades.
How does it work?
This strategy will do a basic simple thing that most traders do by creating entry signals on both sides long/short and also set the stop loss. Furthermore, It will also reverse the order (from long to short and vice versa (if long/short conditions are met). Finally, it will recalculate the stop loss/take profit price in every complete bar to increase the chance of winning and limit our loss.
Entry rules(Long/Short)
If you have no open order, an order will be created when a fast EMA crosses(up(long)/down(short) the slow EMA(It’s as simple as that).
If you have an open order, the current order will be (sold if long, covered if short) and the opposite side order will be created.
Exit and Reverse rules(Long/Short)
If fast EMA cross (DOWN(long), UP(short)), the current order will be closed, THE OPPOSITE SIDE ORDER WILL ALSO BE CREATED.
Risk management
FLEX STOP PRICE : initial value will be set at the bar which order created. It is a fast ema (+/-) MIDDLE ATR value.
If MIDDLE ATR value rises, it will be our new stop price.
If MIDDLE ATR value falls, stop price unchanged
If Price OVERBOUGHT(long)/SOLD(short), LOW of that bar will be a new stop price.
Minimum position hold period
In order to eliminate risk of repeatedly open, close orders in sideway trends. Minimum hold period must be passed to start exit our position. However, It always respects stop loss prices. The value refers to the number of bars.
MUST READ!!!
This strategy uses only MARKET ORDER. If you trade with a bot, make sure you choose only enormous market cap tokens.
This strategy is bi-direction strategy. It will work best in the DERIVATIVE market.
It was initially designed to compete in the cryptocurrency market which has very high volume and volatility.
I only use this strategy in 1HR (acceptable change rate, optimum trade frequency)
How (should) we use it?
Choose crypto future pairs (recommend only top 10-15 market volume pairs in Binance, let’s say 1000M+ trade value)
Choose your time frame (1H is strongly recommended)
Setup your portfolio profile (Setting->Properties) such as Initial cap, order size, commission. DO NOT USE CAL ON EVERY TICK IT WILL CAUSE REPAINTING AND YOUR CAPITAL IS BLEEDING !!!
BACKTEST FIRST!! Back test is a combination of art, math and statis(and a bit of luck). You can apply to train and test methods or whatever you are familiar with. In my opinion, your test period should include UPTREND, SIDEWAY, DOWNTREND. Fine tune fast, slow ema first(my best ema length of 1H timeframe around 7-10, 17-22). Try to eliminate fault breakout trade and use other options only necessary. Hopefully we can use automatic optimization on Pine Script soon.
Don’t forget to turn off using a specific backtest date option to start your strategy.A
THIS IS NOT A PERFECT (OR EVEN PROFITABLE) STRATEGY. USE AT YOUR OWN RISK AND TRADE RESPONSIBLY. DYOR DUDE.
Pumpkin Soup Modified Indicator[Public]This trading strategy is a multi-divergence trading technique using central oscillators such as MACD, SMI, Stochastic, and RSI and MAs (EMA, SMA, WMA) and channels (Bolinger, Caltner, and Doncian).
Only the parts that can be disclosed based on personal sales strategies can be used.
The usage time is at least 1 hour to 1 day. (I recommend the 8 hour stick starting from 3 o'clock)
The MACD ma part is the sensitivity part of the signal, so please use it if necessary.
Background Color: The image of the upward and downward markets is shown in the background.
-Red, green: Downfall, upfall
-Orange, yellow: Short hit section
-Silver, black: Beware of buying and selling.
Middle value (Support Resistance): It represents the sales base of the stock bar where long and short occur, starting from the peak where diversity occurs.
-Red and green lines represent resistance and support, and yellow and blue lines represent short-term sections used for scalping.
MA was used by integrating the MA series in combination.
-The required length of MA is 5 pieces, and I wrote the length I use.
This strategy was used to raise the invitation-only indicator as a strategic indicator before raising it.
(There's no alarm because it's a strategic indicator.)
------------------------------------------------------------------------------------
이 매매 전략은 MACD, SMI, Stochastic, RSI 등 센터드 오실레이터와 MAs(EMA, SMA, WMA)와 채널(볼린저, 캘트너, 돈치안)을 이용한 다중 다이버전스 매매기법입니다.
개인적인 매매전략을 근본으로 공개할 수 있는 부분만 사용할 수 있게 올립니다.
사용시간대는 최소 1시간봉에서 1일봉입니다. (3시봉부터 8시간봉을 추천드립니다)
MACD ma 부분은 시그널상 민감도부분으로 필요시 사용하시길 바랍니다.
Backbround Color : 상승장과 하락장에 대한 이미지를 배경으로 나타내었습니다.
빨간색, 초록색 : 하락장, 상승장
주황색, 노랑색 : 단타 구간
실버색, 검은색 : 매매 주의 구간
Middle value(Support Resistance) : 다이버전스가 생기는 봉을 기점으로 롱과 숏이 발생하는 주가봉의 매물대를 나타냅니다.
빨간선과 초록선은 저항과 지지를 나타내며, 노란선과 파란선은 스캘핑용으로 사용되는 단기 구간을 나타냅니다.
MA는 MA계열을 복합적으로 통합하여 사용하였습니다.
필요한 MA의 길이는 5개정도로 제가 사용하는 길이로 작성하였습니다.
본 전략은 인바이트 온니 지표 올리기전 전략 지표로 올리는 용도로 사용되었습니다.
(전략 지표라 알람이 없습니다.)
※ 전략지표 매매 포인트에서 매매 물타기 불타기 적용
Setup 9.1 Larry WilliamsThis Strategy was created according to Larry Williams 9.1 Setup. This is based on the Exponential Moving Average of 9 days. Although this might be used in any timeframe, it is most common on the Daily Timeframe.
I have developed this strategy to be used on both Long and Short Position, using the drop down list.
- Setup 9.1 (Lond Position)
It looks for tickers where the close is below EMA9. Once close gets above EMA9 we set this candle as 9.1. The entry point happens one tick above the 9.1 candle. The stop loss is set to be one tick below the lowest of this candle. The exit takes place once close is below EMA9
- Setup 9.1 (Short Position)
It looks for tickers where the close is above EMA9. Once Close gets below EMA9 we set this candle as 9.1. The entry point happens one tick below the 9.1 candle. The stop loss is set to be one tick above the highest of this candle. The exit takes place once close is above EMA9
To cut the noise and have a better trend direction on the EMA9, on both Long and Short, I used the code below for the setup.
setup91B = fastMA >fastMA and fastMA >fastMA and fastMA >fastMA and fastMA >fastMA and fastMA fastMA
setup91S = fastMA fastMA and close > fastMA and close < fastMA
If you have any questions, let me know !
Seer by EY84This is a strategy based on Exponential Moving Averages or Volume Weighted Moving Averages against Adaptive fib resistance / support level and profit percentage which can be definetly defined by user and targeting small profits(profits will be raised by leverages).
In this strategy, there are predefined values which are collected one by one with statistical background and backtests. This gives an advantage to see which ratios are working better for each symbol.
Also this statistics are re-evaluated monthly and if there is a need they are goging to be changed with the help of libraries. Also IT IS RECOMMENDED TO USE IN HOURLY INTERVAL GRAPHICS!!!!
When we deep dive to strategy, it is based on profit percentages. it is similar to the MOST system. MOST only changes the way with default value of %2. But this hardcoded strategy is not working well with each Symbol.
So this is the point where Statistics are involved.
For Ex. while BTC is suits well with %2, it does not do wonders for RSR or RUNE which is 4-5% for each.
Library stores these values as a predefined options. Also it is allowed to change these predefined values within the settings of this strategy.
what is next ? Lets see how are we closing the positions.
Script checks cross of EMA / VWMA and adFib to decide open a position. In reversal / crosses, adFib line had been set to defined Fib. Percentage level. This sets the Full Position close / SL value for current order.
OK! we got the SL but how we get the profit ?
Now this is the place where Profit Percentage (PP) parameter involved. After the position opened it is waiting for PP to be reached. After PP had been reached, close signal had been raised for the HALF of the OPEN ORDER (with the BAR CLOSURE!!).
so tricky part has come here. Remaining position is still open and when "total available profit with remaining amount" had been reached to PP it wil raise the Close Half signal will be raised.
what happens to the SL position ? TWO possible scenarios will be raised here.
Case 1. Reversal on the adFib (short-to-long or long-to-short) will trigger full close signal.
Case 2. If the level drops the previous signal system will generate full close signal again.
Example 1:
Long Order Open : 100$
Half Close Signal : 110$
Case 1: adFib Reversal occurs : 105$ ==> Triggers Full Close Signal with Short Order.
Case 2: Price falls : 100$ ==> Only Triggers Full Close Signal.
Example 2:
Long Order Open : 100$
Half Close Signal : 110$
2. Half Close Signal : 121$
Case 1: adFib Reversal occurs : 115$ ==> Triggers Full Close Signal with Short Order.
Case 2: Price falls : 110$ ==> Only Triggers Full Close Signal.
Beside of these, strategy is also includes editable 4 EMA, 1 WMA, 1 AVWAP and Bollinger Bands Plotting (2.5x Multiplier) who wants to use them as a supportive statistics.
All feedbacks are welcome.
Linear Channel - Scalp Strategy 15MSimple way how to use Linear Regression for trading.
What we use:
• Linear Regression
• HMA as a trend filter
Logic:
Firstly we make simple linear regression moving. It is the white line which appears on the chart.
Then we make second line (named: band2) on the chart by multiplying linreg and value difference.
The third step is to ad HMA as a trend filter.
The trade open when price is below band2, but still upper than Hullma. The trade close when price again upper than linreg.
Automated Bitcoin (BTC) Investment Strategy from Wunderbit Automated Bitcoin (BTC) Investment Strategy from Wunderbit Trading
This strategy is designed for the automated long-term investment in Bitcoin. The BTC investment strategy is primarily suitable for long-term investors who want to increase the percentage of their investments through timely trading long-term transactions. The main feature is the difference from the indicator of long-term investment. Based on their statistics, this figure is 2 times less. That is, if we just bought Bitcoin and held it, we would receive 2 times less than if we applied the BTC Investment strategy.
This strategy uses the intersection of the triple exponential moving average and the least squares moving average. We also control the profit you will make during an uptrend by implementing a trailing stop based on the ATR indicator.
This is a spot market-only strategy and can be used primarily for long-term investors. The strategy is designed to create an automatic version of investing using a webhook.
Automation allows you to safely ignore the state of your portfolio and exclude emotions.
In order to create a cryptocurrency bot for this strategy, you need to:
1. Create alerts and link the URL to the webhook.
2. Connect the TradingView strategy with automated trading service.
ADX+BB %B+AO+EMA Strategy [PineMyths] #2Indicator List
ADX (14,14)
Bollinger Bands %B (20,close,2)
Awesome Oscillator
EMA(5), EMA(21), EMA(50), EMA(200)
Strategy Rules and Conditions
LONG Side
EMA(5) > EMA(21)
EMA(50) > EMA(200)
BB %B > 0.75
ADX > 15
Awesome Oscillator > 2
SHORT Side
EMA(5) < EMA(21)
EMA(50) < EMA(200)
BB %B < 0.25
ADX > 15
Awesome Oscillator < -2
Stop: Fixed %2
Take Profit: Fixed %1
BTC 30m ScriptWhat are your thoughts on this script? I connected it to Coinbase Pro via AWS lambda for auto-trading. I'm waiting for BTC to start bullish again before turning it on in production. Thoughts? Thank you! John
MA Bollinger Bands + RSI This script uses the standard deviation of a given moving average along with an RSI direction.
When: rsi crossover neutral line + price crossover lower deviation boundary => long
When: rsi crossunder neutral line + price crossunder upper deviation boundary => short
SuperTrend+EMA Strategy [PineMyths] #1Indicator List
EMA(20) (Built-in)
SuperTrend(10,3) (Author: Kıvanç Özbilgiç)
Strategy Rules and Conditions
LONG Side
SuperTrend indicator is bullish (Green)
EMA(20) above SuperTrend
Bar open is above EMA(20)
Price touches EMA(20)
SHORT Side
SuperTrend indicator is bearish (Red)
EMA(20) below SuperTrend
Bar open is below EMA(20)
Price touches EMA(20)
Stop: SuperTrend indicator value that when the entry conditions are met
Take Profit: 2 x Risk
Up & Down Trend following trading strategy for BTC/USDT 3hThis strategy is based on multi time frame technical indicators such as;
1. RSI (10,50,100)
2. MFI (10,50,100)
3. RVI (10,50,100)
4. BOP (10,50,100)
5. Super Trend
6. SAR indicator
7. Higher highs and lower lows
8. SMA (9,500)
9. EMA (9,200)
After evaluating different parameters provided by those indicators, script is in a possition to determine optimul positions to enter in to market as well as exit from the market. In some cases stratergy will exit fully or partially depends on the situation. Other than that, this strategy is in a possition to calculate and specify the quantity you need to buy or sell depending on market situation. You can specify amount available for investment and how many times you are going to average (if downtrend). Parameters are optimised to BTC/USDT, 3h standerd candlestic chart.
goodluck
5min Williams Fractals scalping (3commas)Another strategy I'm learning Pine Script on. It is inspired by a MoneyZG youtube strategy called "Easy 5 Minute Scalping Strategy (Simple to Follow Scalping Trading Strategy)".
Again this is a one order per trade strategy compatible with the 3commas bot (works also with the free 3commas subscription). This strategy is based on the signals from Williams Fractals, taking the signals in reverse - red triangle indicates a bottom and hence we go long. The green triangle indicates a top so we go short. By default these signals are only accepted if they occur between the two Emas. However, you can also turn this off and when a WF signal comes in, only the current price has to be between the Emas. Stop loss is set to the current Ema slow and the take profit is a multiple of the distance to the slow ema.
Like previously I have added different filters as well as the ability to view essential things like the WF signal and Emas. I hope the script will help you to be more successful and if so it would be great if you could share here your setups, or tips on what would be good to refine to make it an even a more profitable strategy. Kind of a community approach so that we help each other out :).
Instructions for the 3commas connector:
1. First, you need to prepare 3commas Long/Short bots that will only listen to custom TV signals.
2. Inputs for the 3commas bot can be found at the end of the user inputs.
3. Once you have entered the required details into the inputs, turn on 3commas comments. They should appear on the chart (looks messy).
4. Now you can add the alert where you should paste the 3commas Webhook URL: 3commas.io
5. For the alert message text insert the placeholder {{strategy.order.comment}} and delete the rest.
6. Once the alert is saved, you can turn off those 3commas comments to have a clearer chart.
7. With a new alert, the bot and trade should launch.
In the near future I would like to publish more scripts that will carry similar elements as the first two, incl. compatibility with 3commas (I don't have access to another bot system). I will choose some strategies myself, but I will also be glad for some tips on what strategy would be good to do and is still missing here on Tradingview (short youtube videos or brief strategy manuals would be great).
Thanks and keep it up
PS: My screen values starting at Long Target Profit and ending at Pullback NOT greater than: 1.5; 1.5; 0; ON; 1; 2; OFF; 17; 36; ON; 0.05; ON; Chart; 14; 46; 50; 48.5; 51; OFF; 1; ON; 4; 2.
CCI Level ZoneThis strategy uses CCI 1000 as zones Buy sell if greater than level 100. will be seen as an uptrend If it's lower, it's a downtrend.
So we will use RSI. To trade in its zones, using the RSI crosses the level line, and when the RSI crosses the level line, it waits to buy with Stochastic.
fiveema// © CarterTsai
//@version=4
strategy(title="ema_example", shorttitle="ema_example", overlay=true)
plot(ema(close, 12), title="12ema", color=color.white, linewidth=1)
plot(ema(close, 144), title="144ema", color=color.yellow, linewidth=1)
plot(ema(close, 169), title="169ema", color=color.orange, linewidth=1)
plot(ema(close, 576), title="576ema", color=color.blue, linewidth=1)
plot(ema(close, 676), title="676ema", color=color.green, linewidth=1)
yuyutsu-banknifty-beta"yuyutsu-banknifty-beta" indicator is a strategy especially made for NSE/BSE Banknifty. Strategy has various sub strategies which can be selected to check back tested accuracy and profit factor. Strategies works best on 3m /15m for intraday. Sub strategy "Swing" can be applied on either nifty and banknifty.
I have also added checkboxes for 3m/15m which implictly selects best combination for desired results.
Below are the sub strategies which user can use and perform back testing.
HMA
Daily Weekly Closing
Daily Monthly Closing
Pivot
Previous day open close
Gap up/down
75m analysis
ORB
Swing
TDI
VMWA
VWAP
Ripster clouds
3 Indicator Strategy (StochRSI, MFI & EMA) With Safety OrdersThis strategy uses Stochastic RSI, Money Flow Index and EMA with settings for lower time-frames.
It also features safety orders based on 3 different take profit and stop loss methods.
Recommended Indicator Settings for lower time-frames;
Stoch RSI: 1,1,100,100
MFI: 30
EMA: 100
Take Profit/Stop Loss Settings:
There are 3 TP/SL types available;
- Pips -> based on minticks
- Base Value -> manually entering a value for the actual profit/loss.
- Opposite Signal -> e.g. if the current open order is long, strategy waits for the next short signal.
EMA 9 & 20 Cross StrategyThis is for 9 and 20 Exponential Moving Averages to identify buy and sell opportunities
200DMA last DOM - ajhImplements and backtests a simple 200 day moving average trend following rules based on last day of month to limits trades to 12 per year.
From the book : 5 BEST Moving Average Strategies (That beat buy and hold) by Steve Burns and Holly Burns
Click on the cog to set the input date range eg; 2000-01-01 to 2016-12-31
The book back tested SP500 returns from 2000-2016 317% using this method vs 125% buy and hold only with less drawdown.
Simple 200 day moving average test and trading on last day of month.
(you may find it trades on next available day close to end of month as not all dates can be traded weekends etc..)
Rules are ;
1. if last day of month and stock over 200 day moving average, then go long 100%
2. if last day of month and stock under 200 day moving average, then close long 100% and goto cash.
Aims to miss market declines and keep you long for upside.
Note: Have found doesn't work well in choppy markets moving sideways like the FTSE100 for same period 2000-2016 and causes losses. Also for many stocks.
ETF 3-Day Reversion StrategyIntroduction: This strategy is a modification of the “3-day Mean Reversion Strategy” from the book "High Probability ETF Trading" by Larry Connors and Cesar Alvarez. In the book, the authors discuss a high-probability ETF mean reversion strategy for a 1-day time-frame with these simple rules:
The price must be above the 200 day SMA and below the 5 day SMA.
The low of today must be lower than the low of yesterday (must be true for 3 consecutive days)
The high of today must be lower than the high of yesterday (must be true for 3 consecutive days)
If the 3 rules above are true, then buy on the close of the current day.
Exit when the closing price crosses above the 5 day SMA.
In practice and in backtesting, I’ve found that the strategy consistently works better when using an EMA for the trend-line instead of an SMA. So, this script uses an EMA for the trend-line. I’ve also made the length of the exit EMA adjustable.
How it works:
The Strategy will buy when the buy conditions above are true. The strategy will sell when the closing price crosses over the Exit Moving Average
Plots:
Green line = Exit Moving Average (Default 5 Day EMA)
Blue line = 5 Day EMA (Used as Entry Criteria)
Disclaimer: Open-source scripts I publish in the community are largely meant to spark ideas that can be used as building blocks for part of a more robust trade management strategy. If you would like to implement a version of any script, I would recommend making significant additions/modifications to the strategy & risk management functions. If you don’t know how to program in Pine, then hire a Pine-coder. We can help!
Pivot Point BreakoutThis is a strategy taken from Perry Kaufman's book, Trading Systems and Methods.
Just like the title says, it's a breakout strategy. It works by buying when the current high is higher than the last pivot high, and selling when the low is lower than the last pivot low.
It does not have a good success probability, and relies on the good reward to risk ratio. Definitely not recommended for someone with weak hands.