Best Crypto DEMA Strategy Long onlyThis is a crypto strategy suited for big time frames like 3h+.
THIS IS A LONG ONLY STRATEGY , SUITED TO BEAT BUY AND HOLD !
It's a very risky strategy because it has no stop loss at all, so be extremely careful with it.
This strategy is made of 2 DEMA a fast and a slow one.
We have two rules : entry it's when we have a crossunder between the slow DEMA and the fast DEMA. We exit when the opposite happens, in this case, when the slow is above fast.
For this example I used an initial capital of 1000 eur, using 100% of it always, and a commission of 0.2% per each deal.
Analisis Trend
Crypto Long only Strategy 3h+ timeframeToday I bring another crypto strategy that works greatly with pairs like BTCEUR, ETHEUR, for 3h+ time frames.
Its a risky strategy because we have a hard stop loss of 25% of our capital which can be modified.
The idea behind its simple, we have a candle which is made from open+high+low+close / 4 , and we make the decision based on this one.
We only go long with this strategy .
For entry: if we have 5 ascending candles we enter, and we exit when we have 4 descending candles.
For this example, I used 100% of the initial capital(1000 EUR/USD), with a commission of 0.1% per each deal.
At the same time, the max capital that can be lost in a trade is going to be the equity risk, in this example 25% .
Overall we can see that's more or less around the same level as buy and hold strategy
Phoenix085-Strategies==>MTF - Average True Range + MovAvgFIRSTLY, Here are a few who have influenced my pinescripting immensely recently:
@JustUncleL
@BigBitsIO
@TheArtofTrading
@QuantNomad
@SquigglesNiggles and many many many more.
Overview:
> This indicator is a simple crossover of Moving Averages.
> In addition I am using ATR rising as an indication for Trending Price.
> The entry is made once the smaller moving average crosses the bigger moving average, and also the Closes above the Smaller moving average.
> but the only twist here is,
- the ATR source is One timeframe Higher(In this case same as the session).whereas the source for the Moving averages is one Timeframe Lower.
>i.e., if the Session is 1D, the Indicator checks if the ATR is rising in the DAILY TIMEFRAME,
*_* the trade entry is made once the MOVING AVERAGE crossover happens on ONE TIME FRAME lower, as per example, ATR --> 1D = MA -->4H.
> Moving Average ->
- Thick -> Bigger MA,
- Thin and Transparent -> Smaller MA,
> Also, the Color of the Thicker MOVING AVERAGE Changes as Below:
- When LongCondition is satisfied --> Color=Lime
- When ShortCondition is satisfied --> Color=Red
- When neither condition is satisfied --> Color=Gray
NOTE:
1) There is a limitation in using the Securities function for FREE USERS --> Only 500 bars are allowed. So to use the indicators with more data, you need an upgraded TV account.
2) Strategy still needs Fine tuning, but for now, use the Thicker moving average color LIME FOR LONG ENTRIES and RED FOR SHORT ENTRIES.
This is Free for Use and share
Renko Strategy V2Version 2.0 of my previous renko strategy using Renko calculations, this time without using Tilson T3 and without using security for renko calculations to remove repaint!
Seems to work nicely on cryptocurrencies on higher time frames.
== Description ==
Strategy gets Renko values and uses renko close and open to trigger signals.
Base on these results the strategy triggers a long and short orders, where green is uptrending and red is downtrending.
This Renko version is based on ATR, you can Set ATR (in settings) to adjust it.
== Notes ==
Supports alerts.
Supports backtesting time ranges.
Shorts are disabled by default (can be enabled in settings).
Link to previous Renko strategy V1:
Stay tuned for version V3 in the future as i have an in progress prototype, Follow to get updated:
www.tradingview.com
Backtest Signal To Noise This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
© HPotter 05/01/2021
The signal-to-noise (S/N) ratio.
And Simple Moving Average.
Thank you for idea BlockchainYahoo
WARNING:
- For purpose educate only
- This script to change bars colors.
Buy - Take Profit OR Stop Loss % BasedScript looks back for a certain period of time and than enter when price close above that look back period ema. Once enter it does not care for how many times price cross above or below. Once entered, it will either hit percenatage based take profit of stop loss.
OBV Pyrthe pyramide strategy based on coinrule script
the strategy is based on OBV scalper that i publish in past
seems very proftible for btc but the question is if this is because it bullish now
if i remove the filter then it will lose but the filter make it very profitable
wish all members best new year
this script work best for 1-5 min chart
Relative Returns StrategyLooks like an ultimate strategy for buy and hold investors.
This is designed based on the indicator :
Converting that into strategy with little optimization yield this. One change here is, instead of using the return percentage directly, we are using moving averages on both of them.
Buy condition : Moving Average on stock return crosses over that of index return.
Sell condition : Moving Average on stock return crosses under that of index return.
Strategy Template[Benson]A strategy template with following user inputs:
1. backtest start date
2. tp% and stop loss%
3. trail stop price and trail stop offset
The long and short condition is ma crossover and corssunder by default.
You can change the logic with your own.
Maximized Moving Average Crossing (by Coinrule)Using the crossings of two Moving Averages to trade in a trading strategy is a Trend-Following approach. As the name would suggest, to be successful, it requires the asset to be on-trend.
The general limit of a common strategy based on Moving Averages is that they underperform when the market is less volatile or trading sideways. When volatility compresses, the indicators get very close one to another, crossing each other very often. That's exactly the condition when trend-following strategies underperform.
To improve this strategy, it's useful to filter the buy signal using the RSI. When the RSI is close to overbought conditions, that means that the coin is likely trading in an uptrend. Strong uptrends usually come with RSI values that stay overbought for long periods, creating interesting opportunities.
Setup
Buy condition: the MA9 crosses above the MA50, and at the same time, the RSI has a value greater than 55.
Sell condition: the MA9 crosses below the MA50.
The strategy is optimized to provide better results on the 1-hr time frame, but it could work well also on higher time frames, such as the 4-hrs.
The strategy assumes each order to trade 30% of the available capital and opens a trade at a time. A trading fee of 0.1% is taken into account.
DMI Modified StrategyAs promised a strategy of my DMI Modified indicator! (See link below for indicator).
=== How does it work? ===
Instead of plotting the positive direction of +DI and negative direction for -DI, we subtract the +DI with the -DI on scales of 100 to -100.
The result is plotted with a oscillator to identify the current trend.
DMI Modified supports multiple moving averages (default is EMA with length of 9). You can disable moving averages smoothing in settings.
//== About the Strategy ==
Buys when the line crosses over the Zero line.
Sells when the line crosses under the Zero line.
The DMI modified strategy is pretty much clean, without any filtering besides the DMI Modified and a moving average to smooth it.
Works best to catch a trend and more suitable for 1 hour and above time frame. Stay tuned for updates.
On sideways you will get more false signals. as i said , it's a clean version without much bells and whistles for you to experiment.
== Oscillator Colors ==
GREEN : Strong Up Trend as DMI Modified is above zero line and DMI modified is ascending.
LIGHT GREEN: Still up trend but weakening as DMI modified is above zero but descending.
RED: Strong Downtrend as DMI Modified is below zero line and DMI modified is descending.
LIGHT RED: Still down trending but weakening as DMI modified is below zero but ascending.
== Notes ==
Short is enabled by default.
Bar coloring is disabled by default.
== Links ==
DMI modified indicator:
Like if you like and Enjoy! Follow for more upcoming indicators/strategies: www.tradingview.com
Bull Call Spread Entry StrategyThis strategy script uses the "Spread Entry Strength" overlay indicator script I designed to show entry timing optimized for an Option Bull
Call Spread.
As for this strategy...
The defaults for the strategy itself are as follows:
Period for strategy: 1/1/18 to 12/1/2021. This can be changed to a different period using the settings.
Condition for entry:
Bull Spread Entry Strength >= "Overlay Signal Strength Level"
Limit entry is used, price must be <= close when signaled
Entry occurs by next day or the order is cancelled
Condition for exit (uses a timed exit):
Bars passed since order entry >= 30 (6 weeks..~42 calendar days)
Thursday (day before "option" expiration date... assuming weekly options exist)
All of the user settings from the overlay are pulled into this for customization purposes. Details of the actual Spread Entry Strength overlay are as follows (copied from my shared indicator):
2 background shadings will occur:
The background will shade blue if the ticker is prime for a Bullish Call spread.
The background will shade purple if the the ticker is prime for a Bearish Put spread.
In theory, if the SE Strength is at one of the extremes of the Bear or Bull side, then a spread is prime for entry.
To calculate this, 8 conditions receive a 1 or zero dependent on whether the condition is true (1) or false (0), and then all of those are summed. The primary gist of the strength comes from Nishant's book, or my interpretation thereof, with some additives that limits what I need to review (such as condition 8 below.)
The 8 Bull Conditions are:
1) Bollinger Bands are outside of the Keltner Channels
2) ADX is trending up
3) RSI is trending up
4) -DI is trending down
5) RSI is under 30
6) Price is below the lower Keltner Channel
7) Price is between the lower Bollinger Band and the Bollinger basis.
8) Price at one point within the last 5 bars was below the lower Bollinger Band
The 8 Bear Conditions are the inverse conditions (except the first):
1) Bollinger Bands are outside of the Keltner Channels
2) ADX is trending down
3) RSI is trending down
4) +DI is trending up
5) RSI is over 70
6) Price is above the upper Keltner Channel
7) Price is between the upper Bollinger Band and the Bollinger basis.
8) Price at one point within the last 5 bars was above the upper Bollinger Band
There is a "market noise" filter that will filter out shading when another market move is considered, i.e. if you don't want to see the potential trade when QQQ moves more than 1% then do the following in the settings:
Check "Market Filter"
Enter QQQ in the "Market Ticker To Use"
Enter 1 in the "Market Too Hot Level"
Press Ok
Obviously, the same holds true for the "Market Too Cool Filter."
Second release notes:
Overlay Signal Strength Level - You can set your own "level" for the overlay in the settings, instead of having to change the script code itself. I have the default set to 6. A lower number shows more overlays, a higher number shows fewer (i.e. more conditions have been met.).
Provide Narrative (Troubleshooting) - Narrative label created with several outputs that will show after the last bar. This narrative needs to be turned on in the settings, as the default is "off" ... unchecked.
Remove Strength Indicator When Squeezed - when checked no overlays will be produced regardless of "scoring." Default is off.
Show Squeezes (Will Override Indicator When Concurrent) - overlays an orange background when the ticker is in a squeeze. I am still working on the accuracy here, but it's usable. This will override the strength indicator as well. This needs to be turned on, if you want it.
Short SMA Period - period used to calculate the short SMA, used in the narrative only, at this point in time.
Medium SMA Period - period used to calculate the medium SMA, used in the narrative only, at this point in time.
Long SMA Period - period used to calculate the medium SMA, used in the narrative only, at this point in time.
Outside of the settings... a few calculation adjustments here and there have occurred and some color shading adjustments to allow for the adjustable level setting.
Simple RSI strategyso this script just take it as teaching how to make easy strategy
many time we try complex one and we fail
thanks to coinrule for his very smart method of pyramid
i just here in this very simple rsi strategy want to show how even lame strategy like RSI can be very profitable:)
1. we exit by take profit
2. we make sure that for exit by take profit the stop loss will be far lets say 10% or more
3. this shit only work good in up trending markets:)
why regular rsi strategy not working? because the exit is shity ... it depend on false top that based on RSI above 70 or 80 in general.
in bullish state this will exit us faster then we desire and will cost us loss . in bearish state rsi will not go so high and we exit too late so the stop loss is our our only saver
here by exiting by% we get much better results
so what happen if the trend is bearish? you can can try to do the same just reverse order to create more shorts (sometime it work sometime is not)
end conclusion in bullish trending market even shifty strategy is good
the only reason this one work is actually because of the script of coinrule so i want to thank him on this
happy new year to all TV members
Linear Regression - Reverse Up/Down StrategyFor my first foray into pine script I took the code from the generic "Consecutive up/down" and flipped the logic. I added a linear regression filter to try and stay with the overall trend. ATR added for visual, I eventually want to use it as part of the money management.
Rules to open trade or close the opposite:
IF the linear regression slope is >=0 AND the last candle closes lower, BUY
IF the linear regression slope is <=0 AND the last candle closes higher SELL
Rules to close the opposite:
IF the linear regression slope is >=0 AND the last candle closes higher, close any open SELL
IF the linear regression slope is <=0 AND the last candle closes lower, close any open BUY
Trading Inside Gap - 15 min chartThis code is for educational purposes.
Following are the major takeaways from this code
1. Identify the first bar of the series.
2. Using security function to obtain data from a higher Time frame
3. Use of function strategy.risk.max_intraday_filled_orders
4. closing trade at the end of the session
The code is in raw form and can be refined/modified to improve results
ABUs EurorampThis strategy backtests the opening ramp of Europe at 9am European time, which is 2am Chicago time ( CME ES timezone ) on the ES Futures Contract.
The following conditions are embedded in the strategy:
- Market entry at 2 am Chicago time
- Size = 2 contracts
- Stop = -5 points
- TP 1 = +3 points (1 Contract)
- Stop to Break even (entry + 0.5) after TP 1 is reached
- Set a TP 2 stop to +5 if entry is +10 points
- Close all positions EOD RTH
As the script entry / stops / TPs work on candle closes, best is to use the strategy on the 5min chart.
Optimized Trend Tracker STRATEGY & SCREENEROptimized Trend Tracker - OTT STRATEGY & SCREENER screens the BUY and SELL signals (trend reversals) for 20 user defined different tickers in Tradingview charts.
Simply input the name of the ticker in Tradingview that you want to screen.
Terminology explanation:
Confirmed Reversal: OTT reversal that happened in the last bar and cannot be repainted.
Potential Reversal: OTT reversal that might happen in the current bar but can also not happen depending upon the timeframe closing price.
Downtrend: Tickers that are currently in the sell zone
Uptrend: Tickers that are currently in the buy zone
Screener has also got a built in OTT indicator which users can confirm the reversals on graphs.
Screener explores the 20 tickers in current graph's time frame and also in desired parameters of the OTT indicator.
Also you can optimize the parameters manually with the built in STRATEGY version.
Optimized Trend Tracker indicator :
Built in Moving Average type defaultly set as VAR but users can choose from 8 different Moving Average types like:
SMA : Simple Moving Average
EMA : Exponential Movin Average
WMA : Weighted Moving Average
TMA : Triangular Moving Average
VAR : Variable Index Dynamic Moving Average aka VIDYA
WWMA : Welles Wilder's Moving Average
ZLEMA : Zero Lag Exponential Moving Average
TSF : True Strength Force
Tip: In sideways VAR would be a good choice
You can use OTT default alarms and Buy Sell signals like:
1-
BUY when Prices are above OTT
SELL when Prices are below OTT
2-
BUY when OTT support Line crosses over OTT line.
SELL when OTT support Line crosses under OTT line.
3-
BUY when OTT line is Green and makes higher highs.
SELL when OTT line is Red and makes lower lows.
IMPORTANT: SCREENER ONLY EXPLORES AND SCREENS FOR THE 2nd SIGNAL TYPE:
BUY when OTT support Line crosses over OTT line.
SELL when OTT support Line crosses under OTT line.
AM_ZLWMA Crossover_xDear All,
Please find updated version of Zero lag WMA crossover. In addition to this added 20/50 EMA to get better results.
Settings:
ZLWMA = 8 identified by Blue line
Fast WMA = 21 identified by Red line
EMA Period 20/50
How to Trade:
Buy: Wait for positive crossover (Blue cross above Red) to happen trade can be taken there but to get better results post crossover once price move above EMA 20 then buy can be initiated.
Sell: Wait for negative crossover (Blue cross below Red) to happen trade can be taken there but to get better results post crossover once price move below EMA 20 then sell can be initiated.
Reason to wait for confirmation of price action above / Below moving average is most of the time it happens that even after crossover happens sometimes it was just a pull back and from there it could be a possibility for reversal. Once price action confirms moving above / below EMA20 then trade will be initiated.
Please comment and ask for any doubt
KISS Strategy: SMA + EMA//Hello my fellow investors
//I am creating a simple non-cluttered strategy that uses 3(+1) simple means to determine: viability, entry, and exit
//1) Has a consistent trend been maintained for several days/weeks
//2) SH SMA crossover LG SMA = Bullish entry/LG SMA crossover SH SMA = Bearish entry
//3) Use the Slope factor & Weeks in Trend (WiT) to dertermine how strong of an entry signal you are comfortable with
//4) Exit position based on next SMA cross and trend reversal or stop loss%
//3+1) For added confidence in trend detection: Apply MACD check - buy--> MACD line above signal line and corssover below histogram \\ sell --> MACD line below signal line and crossover above histogram.
//*)This code also allows you to determine your desired backtesting date compliments of alanaster
The chart shown has:
Starting Capital: $10,000
Investment percent per trade: 1.5%
Stop Loss: 20%
Take Profit: 100%
Combo Backtest 123 Reversal & Key Reversal Up 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
A key reversal is a one-day trading pattern that may signal the reversal of a trend.
Other frequently-used names for key reversal include "one-day reversal" and "reversal day."
How Does a Key Reversal Work?
Depending on which way the stock is trending, a key reversal day occurs when:
In an uptrend -- prices hit a new high and then close near the previous day's lows.
In a downtrend -- prices hit a new low, but close near the previous day's highs
WARNING:
- For purpose educate only
- This script to change bars colors.
Buy The Dips in Bull Market (by Coinrule)During a Bull market, beating the market, it's challenging. Trading strategies that buy the dips represent one of the best approaches to surf the trend and optimize the returns.
The main obstacle is to gauge the dip's magnitude properly and set up the take profit level accordingly. The RSI is an excellent tool to catch price drops as it adjusts the entry to the asset's current volatility. Nevertheless, using the RSI as an indicator for exit is not an optimal solution in trending markets as it may end up with two scenarios:
The price reverts before reaching overbought conditions. That is the case when the trend is not that strong at that moment. Leaving the position open could result in missed profit opportunities.
The price rebounds strongly, leading the RSI quickly in overbought conditions too soon so that the strategy sells too early.
One interesting option is to combine a trigger based on the RSI to catch the dip and then use two moving averages to spot the right time to seel when the price is entirely back on-trend.
The Setup
The entry-signal comes when the RSI is lower than 35 and the MA9 is above the MA200, indicating that the asset is currently in an uptrend.
The sell-signal comes when at the same time, the price is above the MA9, and the MA9 is above the MA50.
This setup was optimized on the 15-min time frame after over 150 backtests.
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.
Combo Backtest 123 Reversal & Key Reversal Down 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
A key reversal is a one-day trading pattern that may signal the reversal of a trend.
Other frequently-used names for key reversal include "one-day reversal" and "reversal day."
How Does a Key Reversal Work?
Depending on which way the stock is trending, a key reversal day occurs when:
In an uptrend -- prices hit a new high and then close near the previous day's lows.
In a downtrend -- prices hit a new low, but close near the previous day's highs
WARNING:
- For purpose educate only
- This script to change bars colors.
RSI of Ultimate Oscillator [SHORT Selling] StrategyThis is SHORT selling strategy with Ultimate Oscillator. Instead of drectly using the UO oscillator , I have used RSI on UO (as I did in my previous strategies )
Ultimator Oscillator settings are 5, 10 and 15
RSI of UO setting is 5
Short Sell
==========
I have used moving averages from WilliamAlligator indicator --- settings are 10(Lips), 20(teeth) and 50 (Jaw)
when Lips , Teeth and Jaw are aligned to downtrend (that means Lips < Teeth < Jaw )
Look for RSIofUO dropping below 60 ( setting parameter is Sell Line )
Partial Exit
==========
When RSIofUO crossing up Oversold line i.e 30
Cover Short / Exit
=================
When RSIofUO crosisng above overbought line i.e 70
StopLoss
========
StopLoss defaulted to 3 % , Though it is mentioned in settings , it has not been not used to calcuate and StopLoss Exit... Reason is, when RSIofUO already crossed 60 line (for SHORTING) , then it would take more efforts go up beynd 60. There is saying price takes stairs to climb up but it takes elevator to go down. I have not purely depend on this to exit stop loss, however noticed the trades in this stratgey did not get out with loss higher than when RSIofUO reaching 70 level.
Note
======
Williams Alligator is not drawn from the script. It is manually added to chart for illustration purpose. Please add it when you are using this strategy , whch woould give an idea how the strategy is taking Short Trades.
This is tested on Hourly chart for SPY
Bar color changes to purple when the strategy is in SHORT trade
Warning
========
For the eductional purposes only