Zweig Market Breadth Thrust Indicator StrategyThe Breadth Thrust Indicator is a technical indicator which determines market momentum, signaling the start of a potential new bull market.
The Breadth Thrust Indicator was developed by Martin Zweig, an American stock investor, financial analyst, and investment adviser. According to Zweig, the concept is based on the principle that the sudden change of money in the investment markets elevates stocks and signals increased liquidity. In other words, this indicator is all about how quickly the NYSE's advancing and declining numbers go from poor to great in a compressed time period.
A "Thrust" indicates that the stock market has rapidly changed from an oversold condition to one of strength, but has not yet become overbought. This is very rare and has happened only a few times. Dr . Zweig also points out that most bull markets begin with a Breadth Thrust.
More info can be found at  www.investopedia.com
I have inspired by indicator introduced in TradingView by  LazyBear  and adopted the logic from there.  Thanks LazyBear !!!
Though indicator signals the new Bull market, but I have not found much information how to use it in daily market.  So I had come up with a strategy, which would allow us to trade SPY, QQQ , AMEX and securities under these markets.
I have used  MA setting  as 65  (since Zweig indicator setting was 10 days , based on that I set 65 for Hourly chart ...  10d x 6.5 Hrs  = 65 in my startegy).  You have to change this setting if you change the timeframe.  Also , note that this strategy is for Stock Market only.
Strategy Rule/Settings
===================
Select the market type based on your security symbol.   
SPY => use NYSE 
QQQ => use NASDAQ
any other security => check exchange it was listed and select the corresponding market.
if you dont know , use COMBINED option
BUY
====
when indicator cross 0.40 from below
Note:  
1.  see how well it picks the bottoms ... example :  Nov 2020 ....
2.  setting 0.45 is also produces good results , only thing is you get more signals.  
EXIT
=====
Exit when indicator cross down from 0.60 .  I have used RSI (5) for partial exits.   These two are available in settings
Close the whole position when indicator crossing down  0.40
STOP LOSS
=========
defaulted to 5%
Please Note , I have tested SPY , QQQ on Horly chart with MA 65.  You need to chnage the MA setting based on your time frame and check the results.
WARNING
========
For the use of educational purposes only
Mohanee
RSI of MACD Strategy  [Long only]This strategy uses the RSI on MACD indicator.   
BUY
====
When RSI indicator crossing over 30 or 35  line   and  price above slow ema
Note: when the position already taken, you may  reenter  on the  purple candle
Partial Exit
==========
Partial profit taking option is available in settings. If this is selected ,  1/3 position exited when RSI indicator crossing down 80 line
Close
=====
When RSI indicator crossing below 15
Stop Loss
=========
I havent used hard stop loss in this strategy.    Reason is , when price going down , indicator may go up ... so just wanted to ride along with indicator ...
Stop loss mentioned in the settings is used in calculation of   how many units can be be purchased based on risk level
Tested with SPY and QQQ ETFs on hourly chart
Warning
=========
For the eductional purposes only ...
This is not a financial advise.   please do your own research   before taking any trading decission
Ultimate Oscillator [Long] StrategyAfter I published Short Selling strategy with RSIofUO , I have been working for Long side strategy with same indicator.
but for Long strategy , I have used only  the Ultimate Oscillator ... (Not the RSI of UO)  
Logic behind this is , when UO goes below oversold level , high chance of possible reversal from there ...
Ultimate Oscialltor values , I have used are 5,  10 and  15
Signal Line 9 
Above values are best/defaulted based on testing the strategy multiple symbols
BUY
when UO  crossing up  buyLine and close > open ( if the cross over is already done , it will wait for 3 candles to see a green bar i.e close>open )
Note when the bar color changes to orange , that means startegy is ready to take LONG position on next bar.  But dont jump here , waith for the startegy take the Long Position :-)
Add
Signal appears when there is divergence (marked in yellow color ) ... strategy doesnt add the position , it is ony indicating you  could add to existing  OR if you missed the BUY signal you could enter here
Partial Exit
when UO  crossing down partial exit level 
Exit
When UO  crossing down sell line 
StopLoss
stop loss defaulted to 3%
Please note , I have slightly modified stop loss exit in this strategy.   
Even though price hits 3% stoploss , strategy wont wind up the position ... 
First , it will check if RSIofUO is above 30 , then it will hold on to the Long position.
Very reason behind this is , price is falling down and UO is going up ... That means there is bullish divergence here .. so it might turn this losing position to profitable one or  will exit you with less than 3% loss.
Tested with SPY , QQQ , TSLA on 30mins to 4hrs. Though winning rate is average , net profit is exponential ...   
Best working on 30 mins and 1 HR chart for  QQQ
Warning
For the eductional purposes only ... 
This is not a financial advise , before taking trading decission please do your own research 
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
RSI of VWAP [SHORT selling]This is SHORT selling version of  RSIofVWAP strategy.   Settings  and Logic  are totally different from LONG side version , hence I am publishing it as a new strategy.
Settings
============
VWAP of RSI  Length 15
Slow EMA Length 200
Short entry level  25
Cover short level 70
stop loss  5
SHORT Entry
============
condition1 :  When RSIofVWAP  crossdown below 25  and VWAP is below ema200
condition2:   When weekly RSIofVWAP crossdown  70  and VWAP (note : session vwap  , not weekly vwap)   is below ema200
condition3:  Use VIX value , if you want to short when the price is above ema200
             vwap RSI crossing down 70 and  VIX RSI is cossing up 70
             
             enter short ... This is like falling knife :-)
             
             I need to add the code -- later
if any of above condition is TRUE ,  SHORT entry will be taken
Take Profit
============
When close less than  short entry price  and  RSIofVWAp is crossing up 25   , take profit ...close 1/3 of the position
Exit
============
When RSIofVWAP  crossing up 70 level
Stop Loss
============
Stop Loss is set to 5%  
Note:
1. When strategy is in SHORT position ,  background and bar color changes to  gray
2. When strategy is already in short position ,  possible entries are shown in yellow background
3. RSI Length 15 is  working most of the equities  on hourly chart.  ( RSI length 9 and 14 also works good , but not for all ...  You may want to try which setting works for your symbol)
4. weekly VWAP  (blue color) is also  plotted by default ... you can disable it  if you dont want to see it.     But there is advantage keeping it on the chart ,  you can notice whenever weekly VWAP crosses above 70 line , trend is UP ... if you have LONG position you can hold on it ... Hurray :-)
Warning
============
For the educational purposes only
BBofVWAP with entry at Pivot PointThis strategy uses  BB of VWAP and  Pivot point  to enter and exit the Long position.
settings 
BB length  50
BB Source VWAP
Entry
When VWAP crossing up BB midline  and  price/close is  above  weekly PivotPoint  ( you can also use Daily pivot point )
Exit
When VWAP is crossing down BB lower band
Stop Loss
Stop loss defaulted to 5%    
Note : Long will position will be exited  on either VWAP crossing down BB lower band or stop loss is hit - whichever comes first  .  Being said that some time your stop loss exit is less than 5%  which saves from more losses.
 Entry is based on weekly Pivot point , so  any time frame below weekly will work perfect.  I have tested t on 30 min , 1 HR , 4 Hr , Daily charts.  Even weekly setting shows good results , that will work for long term investing style.
if you change Pivot period to Daily ,  chose time frames below Daily.
I also noticed this strategy mostly do not enter Long position in a down trend.   Even it finds one ,  it will be exited with minimal loss.
Warning
For the use of educational purposes only
VWMA_withATRstops_strategyThis strategy follows the trend when price is above VWMA indicator.  I have modified entry and exit rules to get most out of it.
Instead of entering LONG when price crosses above VWMA,    I have  used  RSI(14)  of VWMA .  that way it skips the false signals. (some extent)
ENTRY
========
1.  VWMA  setting is 33
2. When RSIofVwma is above 30 enter Long  ( and  also checks if  price already  broke the  ATR Stop above line )
Stop Loss and Exits
==================
1. Exit is when price breaks the   ATR stop loss 
2. ATR setting is set as same VWMA Length and  multiplier is 3.5   
3. STOP Loss that I mentioned in the settings is being used to calculate the how many units can be purchased based on risk of capital value.   
Note:  There is NO hard stop loss.  having above ATR stop loss works as Trailing stop loss
Warning
=======
For the educational purposes only
EMA_cumulativeVolume_crossover[Strategy]This strategy  is back test  for EMA_cumulativeVolume_crossover 
BUY
When ema50 crossover cumulative volume of 100 period
Exit
When ema50 cross down cumulative volume of 100 period
Partial Exit
for the partial profit I have used  stopLoss value , but up side.   When price is above partial profit and crossing down EMA 50 , exit 1/3 position
Please note when you select this setting, you see spike number of trades, that is because you closing partial number of trades.   which increases the winning rate  but  reduces the total net profit.
Stop Loss
Defaulted to 8%
Added parameter to take LONG or SHORT trades ...  on SHORT side not very good results ... you can review it and provide feedback how to improve the performance.
Short Selling
Reverse above BUY conditions
I have tested  LONG trades  on SPY , QQQ and AAPL  on  1 Hour and 30 mins timeframes.   for AAPL  on DAY timeframe it shows crazy results :-)
Note
For the use of educational purposes only.
EMA_cumulativeVolume_crossover [indicator]while I was doing some research with exp MA  crossovers and volume indicator , I have noticed  that when ema 50 is  above  cumulative volume of 100 period , shows to capture nice profits in that trend.  Shorting also (ema50 cross down volume of 100 period) also shows nice results.
BUY
When  ema50 crossover  cumulative volume of 100 period
Exit
When ema50 cross down cumulative volume of 100 period
Short Selling
Reverse above BUY conditions
Back ground color shows blue when ema50 is above  cumulative volume of 100 period,  shows purple when  ema50 is below cumulative volume of 100 period
I will publish the strategy for back testing later today 
Warning 
For the use of educational purpose only
RSI of VWAPThis strategy  inputs  the vwap as source   to RSI  indicator.
ENTRY
When RSIofVwap   crossover 70 and price is above ema200
partial exits
when RSIofVwap reaches 90 level   take a portion of profit 
Exit
When RSIofVwap  crossdown  30
stoploss
defaulated to 5%
Risk Level
Defaulted to 10%.   Based on this  startegy calcuclates hiw many units can be purchased adhering to stoploss value
Note:  code doesnt draw the RSI (vwap)  indicator to the chart.    if you want to see how these signals are generated ,  you can select RSI  and VWAP  of 14 period length.
warning 
For educational purposes only
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
EMA_HMA_RSI_StrategyThis strategy BUYS when  HMA is below EMA  (default setting is 200)   and  HMA turning to green  and   RSI 13 is below 70
Adds to existing position when current price is below BUY price and  RSI crossing above 30 or 40
Exits the long position when HMA crosses down EMA 
when you select Take Profit setting ,   partial profits are taken when  current price > BUY price and RSI 13 crossing down 80
Bar color changes to purple when RSI13 is above 80  (if only in Long position exists)
Tested for SPY  QQQ AAPL  on hourly and 30 mins chart
Warning :  For educational purposes only
Aroon Oscillator StrategyThis is simple strategy based on Aroon Oscillator.   I have found that using  length  144 or 169 on hourly chart shows excellent results.   
Tested on  SPY , QQQ and AAPL.     Especially when you look at  AAPL results , it has  60%  profitable in recent trades.  ( Dont assume this will be same for other stocks or ETFs)
Aroon Oscillator  setting :  169     (    169 is square root of 13   ...    you can also use fib level 144 ,  which is square root of  12  )
BUY
When Aroon Oscillator crosses above zero line
Add
if Long position is already opened,   and  current close is  less than  BUY price and   RSI 13  crossing above 30 line
Exit
when Aroon Oscialltor crosses  below zero line
Stop Loss 
default stop loss has been set to 5%
Note:  I have not plotted RSI to the chart.  Please include  RSI 13  to see how position gets added ...  Also add  ema 169 to see how the price is aligned with the Aroon Oscillator
Warning 
For the educational purposes only
Golden Triangle StrategyGolden Triangle strategy setup is a variation of the buy-the-dip strategy, by Charlotte Hudgin.
You can find the detailed explanation here  by Thomas N. Bulkowski   thepatternsite.com
BUY
===
1. price should be trading above sma50
2. when it touches sma50 first time , check the starting rallypoint of where it initiated
3. from the above point   to current close , see if you have white space , then draw the triangle
4. then check for volume confirmation ( current volume should be greater than last 4 )   ---  I have slightly changed this to fit into hourly strategy  by adding  condition close>vwap
EXIT
====
1. Exit when close crossing down sma50 with at least 2% profit   (slightly modified original condition)
StopLoss
========
2. stop loss is set to 6%
Warning
=======
For the use of educational purposes only
VWAP and BB strategy [EEMANI]This strategy combines VWAP and BB indicators
BUY RULE
1. EMA50 > EMA 200
2. if current close > vwap session  value 
3. check if  price dipped BB lower band for any of last 10 candles
EXIT RULE
1. price closes above BB upper band 
STOP LOSS EXIT
1. As configured --- default is set to 5%
warning: for the use of educational purposes only
ADX strategy (considering  ADX and +DI only )I have been checking the strategies on ADX indicator.  
I have found that +DI  crossing  above ADX line  under  threshold 30  and   exit on crossdown when ADX above 30 has better results   than just following crossovers of +DI and -DI ,    ADX crossing above 30 .
BUY Rule
========
fast ema  is above  slow ema    (default 13 and 55 , you can change these values in settings)
+DI  cross above ADX    well beloe threshold level  (default 30)
Exit reule
========
when  +DI  cross down ADX   , well above on threshold level 
Stop Loss
=========
Default is set to 8%
Take a look and let me know how your symbol  works with this strategy
Note : Bar color changes to yellow when the BUY condition is met.
Bar color and Background color   shows  to blue  --- if Long position is active 
fast ema and long ema doesnt print on the chart -- please add manually to the chart
Warning :  for the use of educational purposes only
RSI W Pattern strategyThis strategy is similar to RSI V pattern strategy, but it looks for W pattern in RSI chart.
RULES
======
BUY
1. ema20 is above ema50
2. RSI5 crossing up  30 from oversold area
3. and RSI5 must be below overbought area  (default value set to 65)
Add to existing Position
1. You can add on the next W pattern OR
2. if RSI5 is crossing up from below 20
Exit
1. when RSI5 reaches 75
Note: This is for short term/swing  trading .  which gets on when price  dip in trending and quickly gets you out on RSI overbought area
RSI Divergence Indicator (with alerts)Many have requested  me for  indicator version with alerts for the  RSI Divergence strategy. Here is the one ...
Please note alert triggers in delay by number of bars defined in the settings. (same as strategy) ...
Bar color also changes when alert triggers ...
Yellow Bar  shows  BUY
Purple Bar  shows  EXIT   ( Exit the Long position ...  NO SHORTing )
On each Yellow Bar can be added to existing position
On each Purple Bar , exit  partial position OR  exit the whole position
Appreciate your feedback. 
Warning
Use for education purpose only ...
RSI5_50 with DivergenceThis is variation of RSI  Divergence strategy.
I have added a filter (long term RSI)  to the Rules.   strategy BUYs when RSI 50 period is above 50 line  and there is divergence on the short term RSI
settings
=========
short term RSI period  5
long term RSI period 50
stopLoss    is 8%   --- if setting is enabled
BUY Rule
========
RSI 50  is above 50 line
short term RSI is showing divergence
Add to existing
==============
if already in position, BUY when shorTermRSI  is crossing above 20
TakeProfit
=========
when longTermRSI reaches 60,65, 70 and 75 level , take partial profits .
(not when crossing down --- This may affect on profits , because when price goes down , it goes very fast )
Exit
=====
when longTermRSI  is crossing down 30
OR  stopLoss value hits
Note: When I tested this with GOOGL stock , I have got excellent results ...     any experts there , please check everything is good with scripting ...
Happy Trading
RSI V Pattern IndicatorThis is the indicator version of  RSI V Pattern strategy
alertconditions added.
Note:   This beta version , I still need to fix  the  color for the Exit  when trade is not in Long ...
RSI V Pattern strategyThis strategy based on RSI  for  swing trading or short term trading 
Strategy Rules
=============
LONG
1. ema20 is above ema50  --- candles are colored  green on the chart
2. RSI value sharply coming up 
    
    previous candle1  low is previous candle2 low  and  previous candle1 RSI value is less than  previous candle2
    current candle RSI value is greater than previous candle1  and crossing above 30
    
    above which makes a V shape  on RSI indicator,  colored in yellow on the chart  ,  price bar is colored in yellow
3. Enter Long when the above V pattern occurs 
EXIT LONG
1. when the RSI reaches  70 , close half position and move stop loss to up 
2. when RSI reaches high value 90,  close 3/4 position
3. when RSI crossing below 10  OR  stopLoss hit  , whichever happens first  , close whole position
Note : take profit levels are colored in blue on RSI and Price candles
I  have tested SPY , QQQ on daily chart , performance results are  with  80% win rate  and  more than 3 profit factor
Happy Trading  
RSI Divergence Indicator strategyThis strategy is based on RSI divergence indicator.
RSI period setting 5
Go Long when Bull or Hidden Bull is shown
Exit when RSI  goes above 75  OR  when bear condition appears





















