EMA_cumulativeVolume_crossover[Strategy V2]This is variation of EMA_cumulativeVolume_crossover strategy.
instead of cumulative volume crossover, I have added the EMA to cumulative volume of same EMA length.
when EMA crossover EMACumulativeVolume , BUY
when already in LONG position and price crossing over EMACumulativeVolume*2 (orange line in the chart) , Add more
Partial Exit , when RSI 5 crossdown 90
Close All when EMA cross down EMACumulativeVolume
Note
Black Line on the chart is the historical value of EMACumulativeVolume . when EMA area is green and price touch this line closes above it , you can consider consider BUY
I have tested it on SPY , QQQ and UDOW on hourly chart.
EMA setting 25 is working for all of these.
but SPY produces better results on EMA 35 setting
warning
This strategy is published educational purposes only.
무빙 애버리지
SignalCAVE Strategy BuilderYou can create strategies without writing single line of Pine Script code!
Do backtesting, set alerts and explore algorithmic trading with using SignalCAVE Strategy Builder on TradingView.
SignalCAVE Strategy Builder for TradingView
SignalCAVE is a tool that help you to create strategies in TradingView. SignalCAVE offers flexible strategy builder panel enabling users to backtest and set alerts with custom conditions (selected indicators and parameters).
CAPABILITIES
You can define rules and conditions for “Long” and “Short” signals.
“Stop Loss” or “Take Profit” functions can be activated with providing percentage values.
“Only Long”, “Only Short” or both “Long and Short” signals can be used at the same time.
Available Indicators
EMA, SMA, WMA, HMA, RSI, MACD, Stochastic, Bollinger Bands, SuperTrend, Parabolic SAR, DMI, ATR, CCI, CMF, ROC, Ichimoku, OHLC Prices
How to Set Strategy Rules?
On SignalCAVE strategy settings screen, there are four types of input groups. You can populate these input boxes based on your strategy.
A: First indicator’s parameter and index value selection area
First Input: First indicator selection.
Second Input: First indicator’s parameter selection. If you want to use default parameters, select “Default Parameters”. If you want to use custom parameters, select “Custom Parameters”. If your selection was custom, then you need to fill “P:A” input boxes to assign your custom parameter.
Third Input: First indicator’s index selection. Default parameter is “0”, If you want to get previous value of indicator/price, you can type positive numbers.
?: Condition and Interval selection area.
You can select “Upper (>), Lower (<), Upper or Equal (>=), Lower or Equal (<=), CrossOver (⬆), CrossUnder (⬇)” conditions and time frame interval for calculation both first (A:) and second (B:) indicator.
B: Second indicator’s parameter and index value selection area
First Input: Second indicator selection.
Second Input: Second indicator’s parameter selection. You may use either default parameters, or custom parameters. If your selection was custom, then you need to fill “P:B” input boxes to assign your custom parameter.
Third Input: Second indicator’s index selection. Default parameter is “0”, If you want to get previous values of indicator/price, you can type positive numbers.
P:A First indicator’s custom parameter settings. If selected indicator has less then four parameters, you can fill unnecessary fields with “0” value.
P:B Second indicator’s custom parameter settings. If selected indicator has less then four parameters, you can fill unnecessary fields with “0” value.
DASHBOARD
After you build the strategy with SignalCAVE, you can see rules and conditions on dashboard with chart view screen.
Hint: By adding multiple times of SignalCAVE strategy on your chart screen, you can build more then one strategy.
STRATEGY TESTER / BACKTEST RESULTS
You can see strategy backtest results from “Strategy Tester” panel.
By changing parameters or strategy rules (strategy optimization), you may get better results. These results does not guarantee a success for future trades.
ALERT SETTINGS
If you want to get notify about your strategy outputs (Long Entry, Long Exit, Short Entry, Short Exit, Stop, Take Profit) you can set an “Alert”.
You can click “Alert” button to create a new alert. Make sure on “Conditions” selection must be “SignalCAVE” strategy.
Paste to “Message” field exactly the text below.
{{strategy.order.alert_message}}
Hint: By setting a single alarm, you can get notifications for all outputs.
Do your alerts modifies when you change the strategy conditions or parameters?
While the strategy got updated, its alerts still use the strategy’s state from the time when we made the alert (TradingView Wiki, 2018b).
This has the advantage that, once we made a script alert, we can change the script’s input options, change chart settings, or remove the script from to the chart. All of that won’t affect our existing alert. That gives a lot of flexibility to keep interacting with the chart and script.
But there’s also a disadvantage: if we do want our script’s alerts to change, we first need to remove the existing alerts. Then we have to create and configure new alerts based on the indicator’s updated code or settings.
GANN_EMA_VWAP_BY_THEHOUSEOFTRADERSGANN LEVELS + VWAP + 3 EMA= 50,100 & 200
GANN LEVELS = Eg. 10.25 = BLUE, 10.50 = PINK, 10.75 = BLUE, 11 = RED (VIP LEVEL)
MA Cross + Strategy by RealmixTwo Moving Average with crossmarker and strategy when both indicators are crossing for a possible position
FCMS - Time in x Timing - The Market - StudyTime in x Timing - The Market
█ DISCLAIMER
THIS IS NOT AN INVESTMENT ADVICE
The use of strategy functions doesn't compile recurring investments/contributions as used in this study, so disregard the results of the strategy tester.
As seen in the style/plots lists, I calculate the results in internal variables to analyze historical results.
prnt.sc
Anyway, this is only a historical study and past performance is no guarantee of future results
█ CONCEPTS
There is a discussion about Timing x Time in the market.
The point of this discussion is between buying in the better moment, against exposing yourself to the market as soon as possible.
Anyone who argues that the most important factor is the time exposed to the asset, no matter when, is usually based on the SP500 asset.
As shown in the image above, a hypothetical investor who made a single investment of US $ 1500.00 in December 1999, was trapped by a volatility of approximately 10% in the period, followed by a loss of around 50% in the following years. In December 2012, this investment was finally positive, and after 20 years it accumulated a gain of 180% - without reducing inflation in the period.
█ Timing the news
When an asset reaches a new historic high, the idea of "time in the market is the best strategy" gains momentum, after all, at this "moment" everyone previously exposed to the asset is making a profit, regardless of inflation or any benchmark.
█ Time in the market
Considering using this strategy, we can define 3 points for a brief analysis:
1. Asset
SPX is used as a reference for this type of statement due to the difficulty of finding another one with such consistency, liquidity, ease of access and time of history.
2. Long Term
We cannot consider it a long term strategy, as it never has a predetermined term
3. Recurring contributions.
To generate an average cost spread over periods of high and low, opening the possibility to realize positions with profit in eventual needs.
As shown in the image below, if this hypothetical investor made monthly contributions since the date of the first contributions, he would have the possibility of making profits between the period from October 2004 to September 2008, returning to the loss until October 2010, and then with a profit of 100% over the total amount invested.
Below, an example of an asset in a downtrend with the final balance returning below the total volume invested.
█ First Conclusion
> Recurring contributions (3) to an asset (1) during a downtrend will increase the loss for an indefinite period (2).
> Recurring contributions (3) to an asset (1) during an uptrend are more important than immediate exposure to the asset, regardless of the term (2).
> Recurring contributions (3) in an asset (1) in a region of possible long-term top (2), will negatively affect profitability even considering the resumption of the upward trend in an indefinite period.
█ Timing the market
As shown in the image below, following the strategy above: a single contribution in the amount of US$ 1000.00 at the worst moment (Dec / 2017), the hypothetical investor would have hold a loss of over 80%. At the moment it accumulates 89% of profit, having reached the maximum of 200% at the beginning of the year.
By making monthly contributions since the date of the first contribution, this investor would have the possibility to make profits from May 2019, accumulating 335% profit at the moment.
Adding the condition of buying the maximum cost of 10% above the average price of the last 200 days, the final result is little affected, and reduces losses in the initial investment period.
Adding the condition of taking profit of 50% of the position when the price is above the average of the last 200 days, and reinvesting 50% of the cash obtained in the next purchase opportunity (paying a maximum of 10% above the average of the last 200 days), the profit cumulative final price drops to 270%, but the realized profit already exceeds the total amount invested, which eliminates future risk of the operation. (favorable risk-return ratio)
Adding the condition to reinvest 50% of the cash flow, with the condition to buy when the price is below 20% away from the average of the last 200 days, the final result would be more than 400% of retained earnings, and realized profit in cash greater than the total amount invested.
█ Other Assets
It's possible to analyze other assets, including dividend yield and earnings for the equity formula. This way we can analyse assets more fairly.
ITSA4
BOVA11
█ Final Conclusion
> Exposing yourself early to a good opportunity may be good, but the risk of doing so at the wrong time could delay your projects indefinitely.
> Investment recurrence is the main driver for your future results.
> Setting a maximum value for making entries reduces short-term fluctuation but, in the long run, the effect is almost imperceptible.
> The realization of profits at favorable times considerably reduces the risk and volatility of the balance, in addition to providing cash for better opportunities in the short and medium term.
> Taking advantage of part of this cash flow for purchases in moments of opportunity, enhances future earnings.
Even an extremely simple strategy like the one used in the examples above, offers a better risk return for the investor compared to the immediate exposure to an asset.
Thus arises the desire to study more sophisticated strategies, as we will see in the future
█ Challenges
Time in the market
- Find good assets (1) to make recurring contributions (3) for an indeterminate period (2).
Timing the market
- Reading the markets to position yourself in favor of the more probable trends at certain times with predetermined terms.
MACD Trendprediction Strategy V1A trend following indicator based on the MACD and EMA. In this case, signals are not generated by crossing the signal lines as with the MACD, but as soon as the distance between the signal lines increases or decreases. A profit factor of 1.6-3.5 is achieved.
Ein Trendfolge-Indikator, auf der Basis des MACD und EMA. Dabei werden Signale nicht wie bei dem MACD per Kreuzung der Signallinien generiert, sondern sobald ein der Abstand der Signallinien zu oder abnimmt.
CMF Velocity with 200EMA StrategyThis is a demonstration of my new Indicator - CMF Velocity - in a profitable trading strategy. It is able to take shorts when the close is less than the 200 EMA, and longs when the close is greater than the 200 EMA.
RatingsThis strategy script is a modified version of the built-in 'Technical Ratings' strategy script.
English:
www.tradingview.com
Russian:
www.tradingview.com
Changes:
1) Added option to disable long and short positions (checkboxes 'Long' and 'Short').
2) Added date selection option.
3) The default commission is 0.1% (original 0%).
4) 100% of capital is used by default (5% in the original version).
Freelancer30169656This indicator is make for educational purpose.
This Indicator actually try to identify a price action. It uses 30 W moving average for Trend analysis.
The moment it crosses above the 30 W moving average,
up trend starts. But the start should be Good. The moment it crosses 30 W moving average ,
that particular candle should have high volume than average and
the RSI should be also above or equal to 50.
The preferred Time frame is to be used is Weekly.
1-> When price crosses above 30 weeks moving average,
2-> the volume should be Three times the 50 volume average.
3-> The RSI (14) should be above 50.
In this indicator neither plots moving average nor volume average nor RSI. It only plots a single Green arrow below the that
satisfy all 3 conditions.
That green arrow indicates BUY signal.
No exit criteria is defined here.
Simple MACD + 200EMA StrategyThis script is based on classic MACD / 200EMA strategy.
It takes a Long trade when MACD line crossup Signal line, when both below Zero line, and Close price above 200 EMA.
It takes a Short trade when MACD line crossdown Signal line, when both above Zero line, and Close price below 200 EMA
It seems to have decent results with 1:1.5 Risk/Reward, with 30min TF (on cryptocurrency market)
It has a number of 1 per day on average.
FEATURES
ORDERS
You can have both Long and Short, or disable one.
STOPLOSS
Stoploss is based on last swing (high or low). You can adjust the lookback period of the swing.
TAKE PROFIT
For now, there is 2 possibilities for TP :
Using adjustable Risk/Reward ratio (Trailing Stoploss need to be at 0)
Using adjustable Trailing Stoploss percentage (RR Ratio need to be at 0)
Results below are with this parameters :
Start date 01/01/2021
1:1.5 RR ratio
100USD Initial capital
100USD Order Size
0.01% Commission fees.
KSR Strategyself input Moving Average crossover with trend indicator which eliminates most of false signal
DEMA/EMA & VOL (Short strategy)Hello,
I am trying to build a short momentum strategy that is based off of the DEMA crossing under the EMA, but because many momentum strategies send too many signals, I have also implemented a volatility condition based on the average true range percentage (ATRP). Essentially, as momentum moves downwards + volatility (ATRP) moves upwards, it shorts the security. However, I am having an issue with exiting trades. I think this would be a great strategy if I could simply get the strategy to exit the trades. Does anyone mind looking through the source code and tell me what I might be doing wrong? In return, I would hope that this strategy could be useful to you in same way! Thank you for looking!
Bear & Bull Zone Signal StrategySince I love to mix and match, here is something fresh and that actually works on the breakout of Ethereum without losing your ass on lagging indicators.
It blends some of the nice parts of my previous scripts while moving to big boy pants with a twist on the Fibonacci retracement using SMA and EMA at multiple levels to do a sanity check.
Is it too good to be true? Nope, just what happens when a Solution Architect starts messing around with crypto and applies engineering and mathematics to the mix. You get a strategy that really doesn't have high profit losses when you tweak it just the right way.
What's the right tweak you ask?
1. Start with a 30 minute timeframe and set your window start date to the date the market began the bear or bull run
2. Make sure you can see your strategy performance window (not the graph one)
3. Set Stop Loss and Target Profit to 50%
4. Use your mouse wheel or up and down arrows and mess around with the RSI, go down one at a time but no lower than 7. Whichever value displayed the highest long or short gain is the one to pick.
5. Now select long or short only based on whichever one shows the highest gain.
6. Now go to K and D, leave K as 3 and check what happens when D is 4 or 5. Leave D at the value that gives you the highest gain.
7. Now go to EMA Fast and Slow Lengths. Leave Fast at 5 and check what happens when the Slow is moved up to 11 or 12, do the gains go up. If not, check what happens when Slow is moved down to 9, 8, or 7. Whichever gives you the highest gain, leave it there. Now go mess with the fast length, keep in mind that fast must always be less than slow. So check values down to 3 and up to 6. Same concept, mo money...leave it be.
8. Now go mess with the Target Profit, I start at 5, hit enter, then go to 7, hit enter, then 9...up by 2 until I get to 21 to make sure I don't hastily pick a low one and always keep in mind between which values the gain switched from high to low. For example, in this example I published at 11 it was $5k and at 13 it was $3700 for the gains. So after I got up to 21 I went back to 11 and started going up by 0.01 steps until the value dropped, which was at 11.19 so I set it at 11.18.
9. Now stop loss is trickier, you've maximized the gains, which means if you set the stop loss at a low value you will sacrifice gains. Typically by this point your loss is less than 10% with this script. So, my approach is to find the value where the stop loss doesn't change what I've tweaked already. In this example, I did the same start at 5 and go up by 2 and saw that when I went to 17 it stopped changing. So I started going back down by 0.5 and saw at 15.5 the gains went lower again. Now I started going back up in steps of 0.01 and at 15.98 it went back to the high gain I already tweaked for. I kept stop loss there and unleashed the strategy on ETH.
So far so good, no bad trades and it's been behaving pretty well.
ChBrkOutStrategySMAThis script relies on channel breakout strategy and the exit condition is defined by the SMA crossover, this works well on futures and Indices
yin+yang StrategyThis strategy is the combination of 16 different indicators that collectively give you a signal for a long and short position.
It will mostly give you 8-9 successful trade out of 10.
have fun.
Moving Average Color StrategyHello,
Strategy based on scrips "Moving Average Color Direction Detection" from Dreadblitz published on Aug 9, 2019.
You can chose MA type, length and reaction setting to adjust to time frame/ticker. Always seemed like RSI is ahead of actual price action
and just messing around with MA on the RSI .
Couple I found:
SPXS / SPXL 20M timeframe, MA 32 Reaction 2 (HullMA) 50% of equity so you dont lose everything :)
UVXY / SVXY 20M MA 32 Reaction 6 (HullMA) 50% of equity so you dont lose everything :)
APPLY to RSI , or any indicator really and play with Adjustments.
Ganntime Grid Bot Long Strategy with frostybotThe grid strategy customized specifically for Frostybot. It use the tradingview webhook implement the safe orders mechanism of 3commas, and different position sizes can be selected according to the market direction. Currently, only long is supported.the default configration is suitable for some pair.but you can change it by yourself. Everyone is welcome to experience.
Morun Astro Trend MAs cross StrategyAstrology machine learning cycles indicator signals with technical MAs indicators strategy, based on signals index of Github project github.com
EMA & SupertrendStrategy has been built based on the crossover of 21 EMA (EMA 1) and 55 EMA (EMA 2). Along with with strategy, user can alter the period of EMA 1 & EMA 2 based on their suitability.
When EMA 1 crossover EMA2 or when prices closes above EMA 1 and EMA 1 is greater than EMA 2, strategy will generate Buy signal.
Position gets closed when price closes below EMA 2.
200 EMA, 233 EMA and Supertrend has been added for study purpose.
Jaws Mean Reversion [Strategy]This very simple strategy is an implementation of PJ Sutherlands' Jaws Mean reversion algorithm. It simply buys when a small moving average period (e.g. 2) is below
a longer moving average period (e.g. 5) by a certain percentage and closes when the small period average crosses over the longer moving average.
If you are going to use this, you may wish to apply this to a range of investment assets using a screener for setups, as the amount signals are low. Alternatively, you may wish to tweak the settings to provide more signals.
Context can be found here:
LINK
Wave Trend w/ VWMA overlayThis is a trend-following strategy and indicator which combines the Wave Trend Strategy (Lazy Bear) by thomas.gigure with the cRSI + Waves Strategy with VWMA overlay by Dr_Roboto .
You may update the parameters of the Wave Trend oscillator or the VWMA indicator to match your own preferences. You may also adjust the Base Quantity used for determining trade size (as described below) to suit your account size and risk tolerance.
The strategy identifies potential signals based on the on the Wave Trend oscillator, originally ported to TradingView by LazyBear. When a signal is produced by the Wave Trend oscillator, trade size is determined by the VWMA.
When the VWMA is trending against the direction of the Wave Trend signal, Base Quantity x 1 is used
When the VWMA is trending neutral, Base Quantity x 2 is used
When the VWMA is trending with the direction of the Wave Trend signal, Base Quantity x 4 is used
The strategy includes the ability to limit trade signals to certain defined periods of time ("Sessions") during the trading day and, optionally, to close any open position at the end of either or both "Sessions." This may be enabled/disabled via the Limit Signals to Trading Sessions? option on the "Inputs" tab of the strategy's "Settings" window.
If you are trading on a daily chart (or longer) you must disable the Limit Signals to Trading Sessions? in order for the strategy to produce signals.
3 EMA Stochastik RSI ATR SL TP only LONGHey there!
Here i will show you the 3 EMA RSI Stochastic Crossover strategy with an ATR SL and TP.
The strategy works as follows:
For long positions, the EMA's must be in the following order:
The 8 E M A must be above the 14 E M A and the 14 E M A must be above the 50 E M A.
The buy signal is given to us by the Stochastic RSI indicators.
The K line must cross the D line above. The following candle must then close above all E M A's.
The stop loss is determined by three times the value of the ATR.
The take profit is determined by two times the value of the ATR.
In this strategy only long positions are traded.