EMAC - Exponential Moving Average Cross - OptimizedEMAC - Exponential Moving Average Cross - Optimized
This is the full Strategy version with the best currently known optimized inputs with the average best settings across the following 26 tickers:
QQQ
TQQQ
SPY
SPXL
AAPL
AMZN
TSLA
BYND
CRWD
DDOG
ESTC
FSLY
MDB
NVDA
PINS
PTON
ROKU
SHOP
SQ
TDOC
TWLO
APPS
CHWY
DKNG
ETSY
FVRR
For the short Study version of EMAC that has been optimized for TradersPost alerts only please see EMAC - Exponential Moving Average Cross - Study
For the original full Strategy version with many editable inputs please see EMAC - Exponential Moving Average Cross
Trendfollowing
Maximized Scalping On Trend (by Coinrule)" The trend is your friend. " This is one of the most famous and valuable teachings that experienced traders can give to newbies. There is a reason for that.
No matter your views about where the price moves, what matters is where the price heads to . The market is always right, and ultimately it decides who gets the profit and who has to take a loss.
The purpose of this strategy is to spot when it's the most suitable time to buy an asset profiting from a potential short-term price increase. The strategy tends to open trades frequently, closing them on average in one and a half days.
ENTRY
The buy order is placed on assets that present strong momentum when it's more likely that it is about to increase further in the short term.
To capture momentum on the asset, the rule strategy requires:
the MA50 greater than the MA100
the RSI greater than 50
The rule, then, places the order when
The price crosses above the MA9.
EXIT
This strategy comes with a stop loss and a take profit which adapt dynamically to market conditions.
The trade is closed in profit when the RSI is greater than 70 , as the trend could experience a pull-back.
Alternatively, the trade is closed when the RSI is lower than 30 , being this a sign of weakening of the trend.
Pro tip : The 1-hour time frame has proven to return the best results on average. The strategy can also work well in the 15-min time frame if you want to increase the trades' frequency.
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.
Breakout FinderHelo All,
I got many requests for a Breakout script and here it's. This script searches the breakouts/breakdowns and draw square if there is one.
The options:
"Period" is used to find Pivot Points
"Max Breakout Length" is the maximum length to search breakouts
"Threshold Rate %" is channel width of the breakout area. calculated using highest/lowest of last 300 bars.
"Minimum Number of Tests" is the minimum number of tests that the Price tried to break the S/R level
and some options for coloring and linestyle
Lets see some examples:
in this example "Minimum Number of Tests" is 2 so the Price must have tested to break resistance area 2 times and then it breaks it as seen in the screenshot:
in following example Threshold rate is %10, so the channel width is very big:
as you can see in followinf screenshot you can choose different colors and line styles:
Alerts added ;)
Enjoy!
MTF Trend WidgetThis indicator identifies trends in multiple higher timeframes (D, W, M) and shows them in a widget off to the right of the chart.
It's meant to be used as an alternative filter for "trading with the trend." Typically people use moving averages of varying lengths for this (i.e. if over 200 MA it's an uptrend, etc.), but I wanted to see if it might be more effective to see if the higher timeframes were actually trending or not in a certain direction.
For the purposes of this indicator, an uptrend is defined as higher highs and higher lows. So if currently in a downtrend and the highs are broken, the indicator will flip to an uptrend because now we have a higher high. Vice versa for downtrends.
The user can choose the lookback period for defining these highs/lows (the pivot points). A smaller lookback number will give you more frequent pivot points.
The user can toggle on visibility of all historical pivot points to make sure the frequency and placement of the swing highs/lows is to their liking.
The user can show the support/resistance lines of those most recent swing high/low points on the multiple timeframes as well.
When these lines are breached, that is when the trends change, so you can see if you are close to changing any longer term trends.
My hope is that this gives people a quick glance at the overall trend without having to cycle through different timeframes.
Indicator PanelHello All,
This script shows Indicator panel in a Table. Table.new() is a new feature and released today! Thanks a lot to Pine Team to add this new great feature! This new feature is a game changer!
The script shows indicator values for each symbol and changes background color of each cell by using current and last values of the indicators for each symbol. if current value is greater than last value then backgroung color is green, if lower than last value then red, if they are equals then gray.
You can choose the indicators to display. Number of columns in the table is dynamic and is changed by number of the indicators.
You can choose 5 different Symbols, 6 Indicators and 2 Simple or Exponential Moving averages, you can set type of moving averages and the lengths. You can also set the lengths for each Indicators.
Indicators:
- RSI
- MACD ( MACD and Signal and Histogram )
- DMI ( +DI and -DI + and ADX )
- CCI
- MFI
- Momentum
- MA with Length 50 (length can be set)
- MA with Length 200 (length can be set)
In this example RSI, MACD and MA 200 were chosen, you can see how table size changes dynamically:
Enjoy!
Qullamaggie BreakoutThe intent of this strategy is to buy breakouts with a tight stop on smaller timeframes in the direction of the longer term trend. Default longer term trend is the daily, but the user can choose any timeframe to use for the SMAs (which act as filters and trailing stops).
Exit the trade using a trailing stop of a close below either the 10 MA or 20 MA (user choice) on that larger timeframe as the position moves in your favor (i.e. whenever position price rises above the MA). This is one area where this script could use a little work or some human intervention - when the trade is entered right in the vicinity of the moving averages, you get some whipsaw. Not sure how to avoid that at this point though if you want to look at those longer term moving averages as your exit criteria.
Option of using daily ATR as a measure of finding contracting ranges and ensuring a decent risk/reward. (If the difference between the breakout point and your stop level is below a certain % of ATR, it could possibly find those consolidating periods.)
BAM's Weighted ROCTraders,
BAM's Weighted ROC is a Momentum indicator. ROC stands for 'Rate of Change' therefor this indicator plots the reading of a weighted average Rate of Change. In its current form it uses 4 periods en 4 weightings. The periods are set to 21/63/126/252 which corresponds to the number of trading days in each 1/3/6/12 months. The weightings are set to emphasize the more recent periods where the 1-month period counts for 40% of the signal, the 3-monthh period for 30%, the 6-month for 20% and the 12-month for 10%. These settings, both periods and weightings, are customizable. The current settings are meant to serve the widely used 1-day time interval chart setting. Feel free to alter the time frame and adjust the parameters accordingly; eg I like trading the weekly chart on a 10/20/30/40 period settings.
BAM's Weighted ROC can be used as a trendfilter for Trend Following trading systems or as an entry signal for Swing trading systems, or both. In the current setting the indicator is set to trend-following; it turns green when positive (above 0), indicating positive momentum. And red when negative (below 0), indicating negative momentum. In the most basic form one can trade a well diversified portfolio of assets using the indicator as guidance for entry and exit signals as it flows back and forth between positive and negative. Another use for the indicator lies in Swing Trading systems. In this approach the transfer from declining momentum into ascending momentum can be interpreted as a shift in momentum from negative to positive, and therefor constitute an entry opportunity. A combination of the 2 signals is of perfectly viable too, wait for positive momentum (reading above 0) in combination with a upward shift from one bar to the other. Use the reverse logic as an exit signal. In these examples the indicator is used in a stand-alone fashion. But off course it can also be used in conjunction with other indicators.
I personally use the two functions, trend-following en swingtrading, in tandem (combined)
for further reading into the rational behind Trend Following trading systems I recommend the following sources:
- Free Read: Google for 'Meb Faber, Global Asset Allocation' he gives out free copies on his website. Meb is a well known character in the Momentum-factor arena.
- Easy read: 'Following the trend' By Andreas Clenow. I don't think there is any Trend Following trader that doesn't know this chaps work.
- sophisticated Read: Trend Following with Managed Futures by A. Greyserman and K. Kaminski. This one is for those who seriously mean business!
Good luck out there, pls consider that the momentum factor holds an edge, at least based on historical performance, but this out-performance (most often) lies in the low single digits.
Pls be aware that use of this indicator is at your own risk. All info provided is solely presented for educational purposes.
Kind regards,
Bam
RSI Trend Indicator [paRSI]The Relative Strength Index ( RSI ) is a measurement used by traders to assess the price momentum. It is scaled from 0 to 100. when RSI reads below 30, it is usually interpreted as oversold and when RSI is above 70 it is usually interpreted as overbought. However, it is usually not profitable to trade based on overbought and oversold signal.
RSI Trend Indicator or as I like to call it "paRSI" ("Parsa (my name) + RSI") shows that when RSI is above a specific number (default value = 60) it indicates bullish trend and when RSI is below a specific number (default value = 40 ) it indicates bearish trend. Lastly when RSI is below the 2 specified numbers it indicates a neutral trend.
I don't recommend trading based on this single indicator. If you're a trend trader this might be useful tool in addition to your own strategy
Usage:
If the created pattern has worked previously on the chart, you could enter on the first stages of the green or red section (depending on the market's trend).
It is not recommended to trade in any direction when there is no color
*THIS IS A TREND FOLLOWING STRATEGY AND DOES NOT WORK ON ALL MARKETS*
Support Resistance ChannelsHello All,
For Long time I was planning to make Support/Resistance Channels script, finally I had time and here it is.
How this script works?
- it finds and keeps Pivot Points
- when it found a new Pivot Point it clears older S/R channels then;
- for each pivot point it searches all pivot points in its own channel with dynamic width
- while creating the S/R channel it calculates its strength
- then sorts all S/R channels by strength
- it shows the strongest S/R channels, before doing this it checks old location in the list and adjust them for better visibility
- if any S/R channel was broken on last move then it gives alert and put shape below/above the candle
- The colors of the S/R channels are adjusted automatically
You can set/change following settings:
- Pivot Period
- Source : High/Low or Close/Open can be used
- Maximum Channel Width %: this is the maximum channel width rate, this is calculated using Highest/Lowest levels in last 300 bars
- Number of S/R to show : this is the number of Strongest S/R to show
- Loopback Period: While calculating S/R levels it checks Pivot Points in LoopBack Period
- Show S/R on last # Bars: To see S/R levels only on last N bars
- Start Date: the script starts calculating Pivot Point from this date, the reason I put this option is for visuality. Explained below
- You can set colors/transparency
- and You can enable/disable shapes for broken S/R levels
Examples:
You can change colors as you wish:
here " Show S/R on last # Bars " set 100:
Sometimes visuality may corrupt because of old S/R levels, to solve it you need to set "Start Date" in the options to start the script in visual part (last 292 bars)
here in first screenshot it doesn't look good (shrink), then on second screenshot I set the "Start Date" it looks better, if you change time frame don't forget to set it again :)
Enjoy!
Trend Surfers - Premium Breakout + AlertsTrend Surfers - Premium Breakout Strategy with Alerts
I am happy today to release the first free Trend Surfers complete Breakout Strategy!
The strategy includes:
Entry for Long and Short
Stoploss
Position Size
Exit Signal
Risk Management Feature
How the strategy works
This is a Trend Following strategy. The strategy will have drawdowns, but they will be way smaller than what you would go through with buy and old.
As a Trend Following strategy, we will buy on strength, when a breakout occurs. And sell on weakness.
The strategy includes a FIX Stoploss determined by an ATR multiple and a trailing Stoploss/Takeprofit also determined by an ATR multiple.
You can also manage your risk by entering the maximum % you are willing to risk on every trade. Additionally, there is an option to enter how many pairs you will be trading with the strategy. This will change your position size in order to make sure that you have enough funds to trade all your favorite pairs.
Use the strategy with alerts
This strategy is alert-ready. All you have to do is:
Go on a pair you would like to trade
Create an alert
Select the strategy as a Trigger
Wait for new orders to be sent to you
Every Entry (Long/Short) will include:
Market Entry (Enter position NOW!)
Stoploss price
Position Size
Leverage
* If you do not wish to use leverage, you can multiply the Position Size by the Leverage. But doing that, you might end up with a position greater than your equity. Trading on Futures is better in order to have accurate risk management.
Exit signals:
When you receive an exit signal, you need to close the position ASAP. If you want to keep your results as close as possible to the backtest results, you need to execute quickly and follow what the strategy is telling you.
Do not try to outsmart the strategy
Leave your emotion out of trading! If you trust the strategy, you will have way better returns than if you try to outsmart it. Follow each signal you receive even if it doesn't seem logical at the moment.
Become a machine that executes. Don't look at fundamentals. Follow the trend! Trust the strategy!
I hope you enjoy it!
Robust Channel [tbiktag]Introducing the Robust Channel indicator.
This indicator is based on a remarkable property of robust statistics , namely, the resistance to the presence of data points that deviate significantly from the established trend (generally speaking, outliers ). Being outlier-resistant, the Robust Channel indicator “remembers” a pre-existing trend and thus exhibits a very peculiar "lag" in case of a sharp price change. This allows high-confidence identification of such price actions as a trend reversal, range break, pullback, etc.
In the case of trending and range-bound market conditions, the price remains within the channel most of the time, fluctuating around the central line.
Technical details
The central line is calculated using the repeated median slope algorithm. For each data point in a lookback window of a user-specified Length , this method calculates the median slope of the lines that connect that point to all other points inside the window. The overall median of these median slopes is then calculated and used as an estimate of the trend slope. The algorithm is very efficient as it uses an on-the-fly procedure to update the array containing the slopes (new data pushed - old data removed).
The outer line is then calculated as the central line plus the Length -period standard deviation of the price data multiplied by a user-defined Channel Width Factor . The inner line is defined analogously below the central line.
Usage
As a stand-alone indicator, the Robust Channel can be applied similarly to the Bollinger Bands and the Keltner Channel:
A close above the outer line can be interpreted as a bullish signal and a close below the inner line as a bearish signal.
Likewise, a return to the channel from below after a break may serve as a bullish signal, while a return from above may indicate bearish sentiment.
Robust Channel can be also used to confirm chart patterns such as double tops and double bottoms.
If you like this indicator, feel free to leave your feedback in the comments below!
Bollinger Band with RSI
Using combination bollinger band and RSI indicator as guide to predict price volatility and the best entry point. The strategy logic is pretty straightforward where we're interested with close price that touches the lower bollinger band ; there are only two scenarios that will happened after the price reaches the lower band; the price might rebound from the lower bollinger band or drop lower and continue downtrend. To confirm the price movement, we use a second indicator which is the RSI to further investigate the price trend. For example, if the price reaches the lower bollinger band but the RSI value is not in the oversold region, we can conclude that the price will go lower and continue downtrend. If the RSI value is in the oversold region, we can use this price area as our entry point.
Stop loss is necessary to avoid losing too much capital if the RSI value lingers too long in the oversold region.
Best take profit area is when the price rebound above the middle bollinger band area/upper bollinger band or when the RSI reaches overbought region; whichever comes first.
Long entry:
RSI < 30 & close price < lower bollinger band
Exit entry:
RSI > 70
Default stop loss: -25%
Multi Moving Average Crossing (by Coinrule)Moving Averages are among the most common trading indicators. They are straightforward to interpret and effective to use.
One of the limitations of using moving averages is they can provide buy and sell signals with a relatively high lag , making it very difficult to spot the lows and tops of the trend.
Moving averages calculated with a low number of periods like the MA9 (the average of the previous nine price periods) react very fast to price moves providing prompt signals. On the other side, more signals may end up with more false-signals and more trades in a loss.
On the contrary, moving averages calculated with a higher number of periods like the MA100 (which considers the previous one hundred price periods) give more reliable signals, but with a delay.
A system catching the crossing of the MA50 over the MA100 is a good compromise for successful long-term strategies. It provides, on average, reliable buy signals.
The Multi Moving Average Crossing Strategy tries to optimize the exit without waiting for the same opposite crossing (MA50 below MA100). It uses the MA9 crossing below the MA50, instead, to spot a better time for selling.
The setup is as follows.
BUY when the Moving Average 50 crosses above the Moving Average 100
SELL when the Moving Average 9 crosses below the Moving Average 50
The higher is the time frame to calculate the Moving Averages, the better is the overall performance of the strategy. The 4-hour (or 6-hour) time frame seems to be the best, even if it results in fewer trades. If you want to trade more still with good results, the 1-hour time is a good compromise.
Advantages of the strategy
This strategy seeks to catch those that are more likely relevant uptrends and close the trade relatively quickly. More trades mean more opportunities. This is especially effective if you run the strategy on all the available coins on the market, as you could do with Coinrule.
Generally, a Multi Moving Averages approach beats the classic crossing strategy involving only two Moving Averages. We backtested a sample of twenty trading pairs to assess the benefits empirically.
The results show that the Multi Moving Average Strategy
outperforms 13 out of 20 times
has 95% higher average return
has 67% higher median return
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.
Donchian Channels Strategy by KrisWatersDoncian Channels is a trend tracking indicator developed by Richard Doncian. The upper line of the channel is determined by the highest value seen by the price in the defined period, the lower line of the channel is determined by the lowest value seen by the price in the defined period. The middle line takes the average value of the lower and upper channels.
Strategy Settings:
- Can apply only LONG positions.
- Can apply only SHORT positions.
- Use LONG/SHORT both.
- You can use ATR as a second exit condition. If ATR stop disabled, Donchian upper or lower channel value is use for the exit rule to long and short positions.
Strategy can be able to optimize by changing channel lengths and timeframe.
EMA 3/5/10/20/50/100/200Trend follow the fastest moving stocks with the right EMAs to trail your stops.
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.
Divergence for Many Indicators v4Hello Traders,
Here is my new year gift for the community, Digergence for Many Indicators v4 . I tried to make it modular and readable as much as I can. Thanks to Pine Team for improving Pine Platform all the time!
How it works?
- On each candle it checks divergences between current and any of last 16 Pivot Points for the indicators.
- it search divergence on choisen indicators => RSI , MACD , MACD Histogram, Stochastic , CCI , Momentum, OBV, VWMACD, CMF and any External Indicator !
- it checks following divergences for 16 pivot points that is in last 100 bars for each Indicator.
--> Regular Positive Digergences
--> Regular Negative Digergences
--> Hidden Positive Digergences
--> Hidden Negative Digergences
- for positive divergences first it checks if closing price is higher than last closing price and indicator value is higher than perious value, then start searching divergence
- for negative divergences first it checks if closing price is lower than last closing price and indicator value is lower than perious value, then start searching divergence
Some Options:
Pivot Period: you set Pivot Period as you wish. you can see Pivot Points using "Show Pivot Points" option
Source for Pivot Points: you can use Close or High/Low as source
Divergence Type: you can choose Divergence type to be shown => "Regular", "Hidden", "Regular/Hidden"
Show Indicator Names: you have different options to show indicator names => "Full", "First Letter", "Don't Show"
Show Divergence Number: option to see number of indicators which has Divergence
Show Only Last Divergence : if you enable this option then it shows only last Positive and Negative Divergences
you can include any External Indicator to see if there is divergence
- enable "Check External Indicator"
- and then choose External indicator name in the list, "External Indicator"
- External indicator name is shown as Extrn
- related external indicator must be added before enabling this option
Coloring, line width and line style options for different type of divergences.
Following Alerts added:
- Positive Regular Divergence Detected
- Negative Regular Divergence Detected
- Positive Hidden Divergence Detected
- Negative Hidden Divergence Detected
Now lets see some examples:
Hidden Divergences:
Regular and Hidden Divergences together:
Showing first letters of indicators:
You can see only the number of indicators which has divergence:
You can see only divergence lines without indicators names and numbers:
option to used different label/line/text colors:
You have option to see only last divergences:
You can change Pivot Period, in following example Pivot Period = 15:
You can use Close or High/Low as Source for Divergence
You can include external indicators and get divergences on it:
Wish you all a happy new year!
Enjoy!
Neapolitan BandsThe Neapolitan Bands were derived from Jean Marc Guillot's 2001 IFTA trading strategy. In his study published by the International Federation of Technical Analysis titled, "Using Indicators from the Derivatives Markets to Forecast FX Moves" Guillot utilizes multiple bollinger bands of various deviations to determine trends and reversals, entries and exits. I isolated this particular part of his overall trading strategy because it has been a useful trend following indicator for me.
Some basics:
Neapolitan Bands can help identify points that a trend starts and ends, as well as reversals when price is ranging.
These bands are typically paired with another indicator like Guillot did to help separate/time trend or reversal signals. (He used MACD, Slow Stochastic, and RSI)
Parts of this indicator:
The period is by default 55 to identify "intermediate" trends. Not short or long term ones.
The blue area shows the 1st standard deviation. This is the "normal range" where price "likes" to be.
The green area shows the 2nd standard deviation and identifies/defines trends. Closes in this area are used for entering trends long or short.
The red area shows the 3rd standard deviation that shows either a spot to take profit/enter a reversal trade, or a point where the market is free falling.
Trend trading rules:
Entry and exit signals for trends are based on price closing above and below the 1st standard deviation, or blue area. If you expect a bullish trend, you buy once price enters the upper green area.
Guillot recommends setting a stop loss to the MA period of the Neapolitan Bands. So if it's 55 periods, you set the stop loss at the 55 SMA.
Reversal trading rules:
For reversals Guillot says, "In a trading range, bands act as supports and resistances. In extreme conditions reversals can occur within or past the 2nd standard deviation." For us, this means that technically anywhere in the green or red areas, a reversal can occur when the price is ranging. Typically this happens at the edges of the bands.
The "edge to edge" trade:
This is a strategy I took from Ichimoku Clouds and applied to the Neapolitan Bands. An "edge to edge" trade is when price closes back into the blue area from one edge, and price travels all the way to the other edge of the blue area. This can apply going from the edge of one green area to the other edge.
Note that this is one piece of Guillot's trading system, and not the whole thing. On top of that I have modified the original parameters to suit the function of trend following, and added an extra bollinger band. Using a shorter period like 20 is more optimal for shorter expected trends or reversals, and it's what Guillot used himself.
Thanks to Sean Nance for reminding me the indicator looks like ice cream! ( coming up with the name :P )
Trend-following RSI Strategy According to classical technical analysis, an RSI above 70 should signal overbought conditions and, thus, a sell-signal. Cryptocurrencies represent a whole new asset class, and they reshape the classical concepts of technical analysis. FOMO-buying can be very powerful, and coins can remain in overbought conditions enough to provide excellent opportunities for scalping trades on the upside.
Building a trend-following trading strategy based on the RSI, which is generally considered a contrarian indicator, may sound counter-intuitive. Over 200 backtests prove that this is a very interesting long-term setup.
The setup is optimized on a 4-hours time frame and trading cryptocurrencies versus USD or stable coins.
The strategy tries to catch coins on sustained uptrends to take advantage of further upside.
The strategy's buy-signal triggers when a coin has an RSI above 70 on a 4-hours time frame.
The strategy sells the coin if a profit of 6% is achieved. Alternatively, it closes the position if the RSI drops below 55, indicating a possible weakening of the trend.
The strategy assumes each order to trade 30% of the available capital. A trading fee of 0.1% is taken into account. The fee is aligned to the base fee applied on Binance, which is the largest cryptocurrency exchange.
BuyHighSellLow - Pivot pointsAnother version of buy-high sell-low strategy. This time using pivot points.
Strategy is simple:
Buy when price closes above R1 of pivot point level
Sell when price closes below S2 of pivot point level.
Use Resolution parameter to define pivot points. Higher the resolution, longer the trade time will be. If resolution is set to same as symbol, strategy will consider Higher Timeframe Multiplier to derive pivot point resolution.
Uncheck HideBands to see bands created from pivot points.
Another Buy-High Sell-Low strategy published is using donchian channel (Link below)
Moving Averages as Support Resistance MTFHello Traders!
As most of you know that Moving Averages with the lengths 50, 100, 150 and 200 are very important. We should use these this moving averages to figure out S/R levels, the possible reversals points, trend direction etc. we should check these moving averages on Higher Time Frames as well. for example if you look at the chart with 5mins time frame, you should also check it in 1hour and 4hour time frames to see to big picture and main trend. this is important as trend is your friend and you should not take positions against the trend.
I developed this script to show them clearly and make the chart understandable. 1 resistance line above the price and 1 support line below the price, it shows the moving average type, length, time frame and S/R level.
You have option to show SMA or EMA and to include/exclude current time frame, because you may want to see only MAs from higher time frames. you should set higher time frames accordingly.
if you add all moving averages for current and higher time frame the chart looks very crowded as following example:
The script makes it clear to understand the chart better, here an example:
It can show when S/R was broken and you get alert. here an example:
You have coloring and style options, you can change line style and colors as you wish:
Enjoy!
BB21_MA200_StrategyThis strategy follows the trend and keeps you in the trend until it breaks SMA 200
SMA setting is 200
BB setting is 21
BUY
====
when BB is (lower band and upper band) above SMA 200 and price crossing above BB middle line
Partial Exit
==========
When Lower BB crossing down SMA200 , exit 30%
Total Exit
=========
When BB middle band crosses down SMA200 , exit ALL
Stop Loss
======
default is set to 5%
Risk Management
================
This is new parameter I have introduced in my strategies. Default value is 10% . That means , if your capital is 10000 , you are willing to risk 10% of it ... i.e 1000.
It doesnot mean that you are buying shares/units for 1000 only. It is different ...see below
Your trade size is calculated based on Risk% .... capital x risk 5 / stop Loss units
for further explanation you can check Alexander Elder's risk management rule. He mentioned 2% rule for 100K account. But most of us dont have 100K accounts .. . so I have defaulted 10% on 10K account. You can change this values and see the results. It wont change the number of trades or profit factor. It will increase the net profit.
Warning
=======
For educational purposes only