OS AlligatorOS Alligator includes Bill and Justine Williams´ indicators explained both in their "New Trading Dimensions" and "Trading Chaos: Second Edition" books. This script replicates the visual alerts shown on their graphs.
OS Alligator includes:
- Fractals (with labels for easy reading)
- Divergent Bars (signaled by top and bottom triangles)
- Zone bar colors (the bar is green when both AO and AC are green, red when both are red, and black when different)
- Zone buys and sells (subsequent AO of the same color), with letter Z
- Saucer buys and sells, with letter S
- Highest High and Lowest Low tracking (for traling stop setting)
- Balance line (Teeth) crossover alerts
and of course the Alligator's Mouth (Lips, Teeth, Jaw) with SMMA.
All these functions are customizable both in periods and in color. For example if you want to modify the Fractal or HiLo periods you can do so.
You can also add alerts based on any or all indicators.
Thank you for reading. Any comments for improvement are welcome.
-ownsov
Chỉ báo Bill Williams
A Better Fractal (Williams)DESCRIPTION:
This is a more advanced version of the classic Williams Fractal algo, using a looped barindex iterator to examine highs/lows.
You may choose ideal or regular fractals, along with the amount of bars (periods) used to calculate; the minimum being 3. Oddnums only.
Ideal fractals = fractals with each bar needing to be lower/higher than the preceding bar, with the midbar at the apex.
Regular fractals = the typical Williams fractal, wherein each bar only has to be lower/higher than the midbar (apex) only.
How to trade? Combine with other indicators and use breakout or reversal strategies, typically. Set buy/sell stops at the high/low of a fractal, for instance
... to trade the breakout when it occurs. Or, track momentum when a fractal prints and trade accordingly. Or perhaps trade with the alligator or 3 EMA.
Experiment with different types of fractals to achieve the desired result, with higher period fractals obviously offering more solid indication though with higher lag.
Note: A fractal does not print until n/2 (rounded down) bars after, where n = the period you chose.
Ultimate Buy/Sell IndicatorAn Indicator based on the William Alligator, helping to find suitable entry and exit points.
EMA RSI Engulfing StrategyBuy when above 200 EMA, 50 RSI and right after a bearish engulfing candle. SL is engulfing candle low and take profit is 2x the risk.
Smart Money Flow v.2.0 BY Stock_InshotsThis Indicator is made by combination of indicators as follows
1) Super Trend - Period 15,2.5
Signal Filtered on the closing basis of SMA High 20 for strength
2) Simple Moving Average - period 50
In which Purple indicates Uptrend
Orange Indicates down trend
3) Bill William's Fractal - This indicator indicates important candle for formation of swing of High or low with Triangle shape at the bottom & top on the chart .
After Signal one can wait for fractal candle formation also for Big risk reward Ration
Buy Setup : After signal Try to place long order near Sma50
Sell Setup : After signal Try to place Short order near Sma50
If missed wait for next Signal , Don't Run behind Price
Keep Trailing Your Stop loss with ATR Values
Note : Nothing is 100% , You may customize this indicator according to your values .
Best to use with other momentum / strength indicator before taking positions
Like RSI / Support & Resistance Levels
For Targets use BB% levels / Pivot Points / Fibonacci levels / Nearest Demand & Supply Zone
Thanks to the Trading view as i used open Source Codes in combination of this indicator. it helped a lot .
Feedback will be welcomed .
Refer Image
The Bayesian Q OscillatorFirst of all the biggest thanks to @tista and @KivancOzbilgic for publishing their open source public indicators Bayesian BBSMA + nQQE Oscillator. And a mighty round of applause for @MarkBench for once again being my superhero pinescript guy that puts these awesome combination Ideas and ES stradegies in my head together. Now let me go ahead and explain what we have here.
I am gonna call it the Bayesian Q Oscillator I suppose. The goal of the script is to solve an issue both indicators on their own suffer from. QQE signals are not new and often the problem has always been false signals for them. They are good for scalping but the difference between a quality move and a small to nearly nonexistent move following a signal is not so clear. Kivanc made his normalized version to help reduce this problem by adding colors to his histogram type verision that would essentially represent if price was a trending move or in a ranging structure. As you can see I have kept this Idea but instead opted for lines as the oscillator. two yellow line (default color) is a ranging sideways area and when there is red or green it is trending up or down. I wanted to take this to the next level with combining the Bayesian probability oscillator that tista put together.
The Bayesian indicator is the opposite for its issue as it is a probability indicator that shows which candle or price movement is more likely to come next. Red rising means possibly down move soon and green means up soon. I will not go into the complex details of this indicator but will suggest others take a look at his and others to understand the idea behind them. The point I am driving at is that it show probabilities or likelyhood without the most effecient signal device to match it. This original was line form and now it is background filled colors.
The idea. is that you can potentially get some stronger and more accurate reversal signals with these two paired together. when you see a sell signal or cross with the towering or rising red... maybe it is a good jump potentially. The same for green. At the same time it is a double added filter effect from just having yellow represent it is ranging... but now if you get a buy signal (example) and have yellow lines (example) along wi5h a red rising or mountain color background... it not only is an indication of ranging, but also that there is potentially even a counter move coming based on the probabilities. Also if you get into a good trade and see dual yellow qqe crosses with no color represented by the bayesian background... it is possible it might only be noise.
I have found them to work decently in the 1 hour timframe. Let me know your experience.
I hope everyone takes a look at the originals to understand them. Full credit goes to those guys for this to be here. Let me know how it is working out for you.
Here are the original links.
bayesian
Normalized QQE
[blackcat] L1 Enhanced Awesome OscillatorLevel: 1
Background
The awesome oscillator is just that, an oscillator by Bill Williams. In contrast to the slow stochastics, which ranges from +100 to -100, the fantastic oscillator is limitless. On the surface, one might think that the fantastic oscillator is made up of a complicated algorithm developed by a Whiz Kid from M.I.T. You will be surprised to learn that the indicator is a basic calculation of two simple moving averages. I made some improvements on it by introducing some novel moving average functions and choppiness index as L1 Enhanced Awesome Oscillator.
Function
Yellow bars for bull and fuchsia bars for bear with candles. Buying and selling signal is provided. Divergence signal is provided. Choppiness index is used as a green background color, which indicates trends when it under green color. The choppiness index is used to filter out entry signals.
Key Signal
yellow candle --> bull
fuchsia candle --> bear
yellow DIV label --> bottom divergence
fuchsia DIV label --> top divergence
red SELL label --> short entry
green BUY label --> long entry
Remarks
Feedbacks are appreciated.
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
Go_up Hello. Our task is to find the local minimum. The trade is entered on the basis of RSI and SMA according to a specific formula, which is embedded in the code. When the RSI crosses the SMA upside down, a long position is entered. You can change the length of the RSI. The longer the length, the less frequent, but more accurate the entrance, and vice versa. You can use a different time frame. The default RSI length is 25 and the time frame is 15 minutes. Use hooks for auto trading, there is an alert. I recommend using a larger number of altcoins and with the default settings or TF 5 minutes. If you want to "scalp", then use the length 15-21 and take profit 0.5-2 percent. See the history of signals and you can make the optimal strategy for yourself. Due to the strong volatility, these settings are optimal. I use position averaging over history, additional purchase occurs no more than three times, before going into a plus. Entering a trade in notifications "once per bar". To exit, you can use scripts from other authors, for example, pivot / resistance points. No repainting. If anyone has any questions, write, I will answer in detail. good luck trading, dear friends!
iTradeAIMS | The Purple MagicThe Magic Purple Line
To put it very simply, the Magic Purple Line is the Trend Line that I use for my trading.
It is a Trend line based on Trading Chaos.
Yes, it is the Red Line of the Bill Williams Alligator but...
It is the Red Line of the 5 times higher time frame
This means you will ALWAYS be in tune with the trend of the higher time frame.
that's very simple.
I arrived at this indicator by using some fractal geometric math logic.
The Redline of Bill Williams Alligator Indicator is calculated by using 8-period smooth moving average with a shift of 5 periods to the right.
Multiply 8 by 5 = 40
Multiple 5 by 5 = 25
But to get it Fractal Geometrically correct, I converted it into the Nearest Fib Numbers.
et voila, you have the Magic Purple Line
How to calculate The Magic Purple Line:
Plot a 34 Smooth Moving Average with 21 Shift
I used it like this.
I take entries using AIMS The Box indicator. I want the box to be always above the purple line for my buy orders and vice versa for shorts
E.g. Tesla Entries Marked on this chart.
Note that all entries are marked as Buy Orders because the price is above the purple line.
Hope this helps improve your trading.
If you like it, please hit the LIIKE button and Follow iTradeAIMS 🎈🎉
iTradeAIMS | The BOX IndicatorIntroduction to iTradeAIMS The Box Indicator
Here I will attempt to give a brief introduction to this amazing indicator that has revolutionised my trading since 2009.
Everything in the universe is energy and energy follows the path of least resistance. When it moves it heavily influenced by a structure.
When energy flows it reacts to the underlying structure. Electricity flows through copper wires easily compared to "my arm".
A river flows smoothly on flat plains of the land but becomes violent when flowing down a mountain. Why is this? Why does it change its behaviour?
The Science of Chaos Brings us here. Everything in the universe has an internal or underlying structure. That structure is often, but not always, hidden.
The Market has an underlying Unseen Structure. And it can be revealed by using this indicator. TSX:TSL
Anatomy of the Box
The iTradeAIMS Boxes are formed using the high and low of the fractals.
A new AIMS Box will be created whenever price makes a new high or low Fractal.
The bottom of the AIMS Box – the Lower AIMS Level - is created when a low Fractal is formed i.e. the low of a candle is lower than two candles to the left and two candles to the right.
What is the Underlying Structure of the Market?
The underlying structure of the Market is Elliott Wave .
And the Underlying Structure of the Elliott Wave is the Fractals.
This BOX is an indicator based on the Fractals.
The Upper and Lower Levels require a minimum of five bars with the top of the box being the upper Fractal; the bottom of the box, the lower Fractal
The AIMS Levels are the high and low of the AIMS Box – the upper and lower Fractals.
This indicator, by itself, provided the concept that revolutionised my trading.
What are the Benefits of Using AIMS iTradeAIMS The Box?
1. Identify Trend:
The Box will also help you identify Trending Markets.
The Stepping Up pattern it creases is an indication of UPTREND .
The Stepping Down pattern indicates DOWNTREND .
2. Identify Entry Points
The Box will help you identify Entry Points into the market.
There are two ways it helps you make entries into the market.
a) breakout entry
b) trend following entry
3. Identify Range-Bound Market
The Box helps identify a sideways range-bound market.
When the box is not creating either a stepping up or stepping down pattern, it usually indicates to a sideways or rangebound market on that time frame.
4. Help you Make Entries: Calculate Correct Positions Size and Risk Size
The BOX is the structure of the market that offers the best method of How to calculate Risk Per Trade based on the market generated information.
Calculate your Entry Level and Stop Loss level using the Box Levels on either side of the box.
Buying the Box:
Set a Buy Order a Point above the Box and Stop Loss a point below the Box Low.
Selling the Box
Set a Sell Order a Point Below the Box Low and Stop Loss a Point Above the Box High.
TSLA Entries and Exits for Tesla Stock
I took this trade on the box high of this stock OII
I shared the Idea on TradingView as a Buy Signal on OII
Check the BitCoin Entry Here
5. Stop Loss Trailing Mechanism to Lock in Profits
The box levels are used for Trailing Stops.
For Long (Buy) Orders use the box low as a stop loss level for trailing and locking-in profits.
For Shorts (Sell) Orders, use the Box High levels for trailing stop and lock in profits.
6. Support and Resistance
The Box Levels (upper and lower) clearly shows support and resistance – where price approached a level and could not go further, forcing it to retrace on itself.
Pay attention to how box levels create ranges and also indicate trends.
How to Use this Indicator with other Indicators?
This indicator is great on its own but even greater if used in conjunction with iTradeAIMS The Wave and The Gator and The Magic Purple (Script Available FREE to use on iTradeAIMS Profile)
> The market always creates an AIMS Box before it turns around.
> Every trend starts and ends with an AIMS Box.
> Entries are always taken on the breakout of the AIMS Box.
How to Get Access to This Script?
Enjoy and accept it as my gift to the TradingView Community from iTradeAIMS | This Indicator is now available to everyone for FREE.
Credits: I learned the method from Bill Williams of Profitunity.com All credits, thanks, gratitude, positive vibes, and prayers goes to Dr Williams 🥇 (RIP) and his family ❤.
Market Cap - simpleThis is a simple market cap indicator . it allows you to see the actual market cap of a stock, live, on the chart, right next to the stock price.
The indicator uses the data provided by Tradingview to calculate the market cap based on the simple calculation of outstanding shares times the price, at any given time.
The indicator can be used to compare the actual value of a stock at different times when sometimes you might discover that the market cap when the price is low is actually higher than the market cap when the price was high. That scenario might happen when the amount of outstanding shares has been changed as time goes by.
That conclusion is another nice benefit to having the indicator, on top of just having the Market Cap right in front of your eyes, always up-to-date, changing as the price is changing as well.
transparency= the higher the value, the more transparent the indicator will be. this feature allows you to see the indicator if you want to, but not letting it interrupting your chart.
Hope you enjoy it and good luck!
Awesome Oscillator & MACD Cross TacticOscillator for Tradingview based on MACD and Awesome Oscillator. This oscillator is designed to identify potential local growth or decline in prices as part of a trend movement.
For some ridiculous reason I am not allowed to attach screenshots of graphs and links on TradingView, so I hope that you will find my detailed instructions on my github page: github.com/samgozman/AO-MACD-cross-tradingview
Confirmation candleConfirmation candle include 2 price action patterns to confirm reversal.
First one is clasic engulf.
Second one is 3 candles patter that shows failed auciton.
Patterns are confirmation for trend setups, not reversal.
Harmonic IndicatorThis indicator finds all of the gartley and cypher patterns on anychart and personally I have been using them profitably with BTC, ETH, and LTC. It includes entry points for both patterns but not TP levels, that is up to you to do research on. In version 2 I am working on this, if any of you can help me with that, it would be appreciated. Goodluck!
TradiKator 03 All Market BreadthTradiKator 03 All Market Breadth ( allMB 03 by TK ) is a visual indicator that plots All NA Market Breadth ( the percentage securities for all North American main stock exchange index's that is above a certain SMA line ).
Market breadth indicates the wave-induced motion of the whole market.
Q&A
Function and Setting
1. 15 index and 1 avg. or sum.
CADTSX = CANANDA TSX
S&P100 = S&P MEGA CAP 100
S&P500 = S&P LARGE CAP 500 *including S&P100
S&P400 = S&P MIDDLE CAP 400
S&P600 = S&P SMALL CAP 400
SP1500 = S&P 1500 * = S&P500 + S&P400 + S&P600
S&PESG = S&P ESG
NDX100 = NASDAQ 100
NDXCOM = NASDAQ COMPOSITE
RU2000 = RUSSELL 1000 * LARGE and MIDDLE CAP
RU2000 = RUSSELL 2000 * SMALL CAP
RU3000 = RUSSELL 3000 * = RUSSELL 1000 + RUSSELL 2000
DJIA30 = DOW JONES INDUSTRIAL AVERAGE 30
DJTA20 = DOW JONES TRANSPORTATION AVERAGE 20
DJUA15 = DOW JONES UTILITY AVERAGE 15
DJCA65 = DOW JONES COMPOSITE AVERAGE 65 *= DJIA30 + DJTA20 + DJUA15
You can open this indicator by multi times to check the different settings with "above ? SMA" in same time like the picture shows "above 50 days , above 20 days and above 20 days plot in lines"
Also, it is possible to combine this indicator with multiple setting to give the sum of the different "above? SMA"'s the result.
2. 6 choices for above ? SMA
Above 5 days, Above 20 days, Above 50 days, Above 100 days, Above 150 days or Above 200 days,
3. 2 methods to visualize the study result
Colorful grid, Green = more securities above ? SMA , Red = more securities below ? SMA
Line plot, High = more securities above ? SMA , Low = more securities below ? SMA
ToTitans - Williams Alligator with Life LineWhat Is It?
Legendary trader Bill Williams, an early pioneer of market psychology, developed the trend-following Alligator indicator, which follows the premise that financial markets and individual securities trend just 15% to 30% of the time while grinding through sideways ranges the other 70% to 85% of the time. Williams believed that individuals and institutions tend to collect most of their profits during strongly trending periods. You also can find more detail here www.investopedia.com
Differentiation
Add Fill the line as a cloud for easier chart interpretation / trend interpretation
Add EMA 5 (Life Line) for using with Going through the cloud and Exiting from the cloud
This indicator has been used in AJ Jim class for "Type 2" approach
Suitable for
Intra Day Trading (20m-2h)
TFEX:S501!
"PM me to obtain access"
Williams Alligator + RSI + T3CCIWilliams Alligator strategy is based on indicator developed by a legendary trader Bill Williams, an early pioneer of market psychology.
The strategy is based on a trend-following Alligator indicator, which follows the premise that financial markets and individual securities trend just 15% to 30% of the time while grinding through sideways ranges the other 70% to 85% of the time. Williams believed that individuals and institutions tend to collect most of their profits during strongly trending periods.
Although Alligator is a very strong tool it has a lot of weak signals and has lag span on entries and exits. We added RSI oscillator and T3CCI to clear market noises and weak signals. Moreover the approach we intoduced to the indicator allows to enter positions and close them earlier than orginal indicator which ensures stronger signals
The strategy supports traditional and cryptocurrency spot, futures, options and marginal trading exchanges. It works accurately with BTC, USD, USDT, ETH and BNB quote currencies. Best to use with 1D timeframe charts
The strategy can be and should be configured for each particular asset. You can change filters and risk management settings to receive the most advanced accurate alerts
Advantages of this script:
Good for long and Short positions
Produces strong long-term entries and closures of positions
Stable to short-term market fluctutions
Easy configuration with a user friendly interface
Backtests show high accuracy around 85.71%
High Net Profit percentage around 21.26%
High profit factor around 82.403
How to use?
1. Apply strategy to the trading pair your are interested in at 1D timeframe chart
2. Configure the strategy: change filters values and risk management settings until Strategy tester shows good results according to mathematical expectation
3. Set up a TradingView alert to trigger when strategy conditions are met
4. Strategy will send alerts when to enter and when to exit positions
Feel free to copy and use this script for your ideas and trading!
YouKnowTheVibesThis is mainly used for trading binary options but can be used for regular forex trading as well. If price is above BOTH EMAs and PSAR then you're looking for BUY opportunities. If price is below then you're looking for sell opportunities. Wait for price to break the most recent fractal high/low and retest; wait for a confirmation candle then enter a call/put and the expiry time is THREE candles.
WiseAnalyze EMA + fractalsCombination of exponential moving averages allow to spot the trend reversal and expansion, Bill Williams fractals and support resistance zones allow to trade without drawing anything. Just follow the trend.
Study your chart. Note which EMA act as support and bounce most of tests. Most often I use 21/34 EMA for new entries.
Most powerful trend indicator is MAWV. Don't try to trade against it. If price above go long. If below - short.
Stops should be placed behind fractals. Breakout entries on price crossing fractals.
TradiKator 02 S&P500 Market BreadthTradiKator 02 S&P500 Market Breadth (MB 02 by TK) is a visual indicator that plots S&P500 Market Breadth ( the percentage of S&P500 securities that is above a certain SMA line ).
Market breadth indicates the wave-induced motion of the whole market.
Q&A
Function and Setting
1. 11 sectors for the S&P500's securities
You can open this indicator by multi times to check the different settings with "above ? SMA" in same time like the picture shows "above 50 days , above 20 days and above 20 days plot in lines"
Also, it is possible to combine this indicator with multiple setting to give the sum of the different "above? SMA"'s the result.
2. 6 choices for above ? SMA
Above 5 days, Above 20 days, Above 50 days, Above 100 days, Above 150 days or Above 200 days,
3. 2 methods to visualize the study result
Colorful grid, Green = more securities above ? SMA , Red = more securities below ? SMA
Line plot, High = more securities above ? SMA , Low = more securities below ? SMA
TradiKator is Traders' indicator.
Please visit TraiKator for more free scripts.
We also support the Chinese.
Happy new year!
Wishing you a great and successful journey in the Chinese Zodiac Bull Year.
This script is a revised version of jchang274's Multi-Sub script.
Thanks to jchang274's contribution.
Mix signal-rileksdevMix Signal Indicator by rileksdev
Indikator ini mengandungi
-3 line bewarna hjau,merah,biru
-1 indikator MACD yang sudah diubahsuai supaya boleh mengesan pergerakan awal harga akan turun atau naik.
-Support & Resistance sudah tersedia pada chart,jadi tidak perlu susah payah cari sendiri
-Buy signal & Sell signal yang keluar apabila harga akan membuat kenaikan atau penurunan
Cara guna:
Line biru: digunakan untuk intraday timetrame 5minit.
Line hijau & merah digunakan untuk Intraday pada timeframe 15minit timeframe 30minit untuk swing short term atau midterm.
MACD MOD untuk mengesan pergerakan awal harga akan turun atau naik.
Garis bintik hijau(Support) & Garis bintik merah (Resistance) yang sudah tersedia pada Chart
Buy signal apabila harga akan membuat kenaikan
Sell signal apabila harga akan membuat penurunan
Vix SpikeThis script calculates spikes Vix tops and bottoms. The Vix Market Bottom is calculated using CM_Williams_Vix_Fix Finds Market Bottoms (Chris Moody). The Vix Market Top is calculated as the inverse of CM Williams’ formula.
The highest Vix Bottom and the highest Vix Top are averaged (over the Highest Vix Lookback period).
Buys are signaled when the Vix Bottom line crosses below the Highest Vix Average.
Sells are signaled when the Vix Top line crosses below Highest Vix Average.
BINANCE:ETHUSDT 5 min
BYBIT:XRPUSD 5 min
Technical checklistNo one indicator is perfect. People always have their favorite indicators and maintain a bias on weighing them purely on psychological reasons other than mathematical. This technical checklist indicator collected 20 common indicators and custom ones to address the issue of a bias weighted decision.
Here, I apply machine learning using a simple sigmoid neuron network with one hidden layer and a single node to avoid artifacts. For the ease of data collection, the indicator matrix is first shown as a heatmap. Once an uptrend signal window is selected manually, an indicator matrix can be recorded in a binary format (i.e., 1 0 0 1 1 0, etc.).
For example, the following indicator matrix was retrieved from the MRNA chart (deciscion: first 5 rows, buying; last 5 rows, no buying):
1 1 0 0 0 1 1 1 1 1 0 1 0 0 1 1 0 1 1 1
1 1 0 0 1 1 1 0 0 0 1 0 1 1 0 1 0 1 1 1
0 0 1 1 0 1 0 0 0 1 1 1 0 0 1 0 0 1 0 0
1 1 0 0 0 1 1 1 1 1 1 0 1 0 0 1 0 1 0 0
0 0 1 1 0 1 1 1 0 1 1 1 0 1 1 1 0 1 0 0
1 1 0 0 1 0 1 0 0 0 0 1 0 0 0 1 0 0 1 1
1 1 0 0 0 0 1 0 0 0 0 1 0 0 1 1 0 1 1 1
0 0 0 0 1 0 1 0 0 1 1 0 0 0 0 0 0 1 0 0
0 0 0 0 0 0 1 0 0 0 1 0 0 1 0 0 0 1 1 1
0 0 0 0 1 0 1 0 0 0 1 0 1 0 0 0 0 1 1 1
This matrix is then used as an input to train the machine learning network. With a correlated buying decision matrix as an output:
1
1
1
1
1
0
0
0
0
0
After training, the corrected weight matrix can be applied back to the indicator. And the display mode can be changed from a heatmap into a histogram to reveal buying signals visually.
Usage:
python stock_ml.py mrna_input.txt output.txt
Weight matrix output:
1.37639407
1.67969656
1.0162141
1.3184323
-1.88888442
8.32928588
-5.35777295
3.08739916
3.06464844
0.82986227
-0.53092333
-1.95045383
4.14441698
2.99179435
-0.08379438
1.70379704
0.4173048
-1.51870972
-2.14284707
-2.08513252
Corresponding indicators to the weight matrix:
1. Breakout
2. Reversal
3. Crossover of ema20 and ema60
4. Crossover of ema20 and ema120
5. MACD golden cross
6. Long cycle (MACD crossover 0)
7. RSI not overbought
8. KD not overbought and crossover
9. OBV uptrend
10. Bullish gap
11. High volume
12. Breakout up fractal
13. Rebounce of down fractal
14. Convergence
15. Turbulence reversal
16. Low resistance
17. Bullish trend (blue zone)
18. Bearish trend (red zone)
19. VIX close above ema20
20. SPY close below ema20
PS. It is recommended not to use default settings but to train your weight matrix based on underlying and timeframe.