ODSR - Open Driven Support and Resistance LevelsODSR is a support and resistance levels generator indicator which uses Open of the Day, Week or Month (basis time frame selection by user) to calculate support and resistance levels and plot it on chart.
Background:
I have been using various indicators which could generate support and resistance levels using different data points available on chart. After analyzing multiple indicators I felt there is a need of an indicator which uses Open of the day, week or month as base data and then do further calculations and generate support and resistance levels.
Logic
This indicator takes open of day, week or month candle and then compare how far was the high and low from open. It then calculate the range and add it for analysis, it does same for all the candles declared in look back period of the indicator. Once it have all the data it calculates average difference of high and low from open price. It then compare how many times that average range has been exceeded by high or low made on specific day. If high or low has exceeded the average range it then calculate how by how many point new high or low has exceeded the average range. It then use that difference to predict next level of Support and Resistance. It then check if high or low has still exceeded the support or resistance range indicator predicted using points difference it found from when price exceeded initial average range. Indicator repeat the process till 7 levels of support and resistance has been generated by indicator.
Usage
As indicator use Open price data to generate support and resistance levels therefore once it has open price of the Day, Week or Month candle it will plot the levels on charts. Open price is plotted in thin black dot line, anything above it would be considered as resistance levels. Anything below dotted line would be considered as support levels. The far the level from open less possibility it will be tested by the price. Therefore if price breaks one level it may try to test next level or can return back to Open price as well.
Along with support and resistance indicator also calculate VWAP moving average which smoothen the normal VWAP line and allow use to identify long term trend on chart. Points table display the average difference between levels price has exceeded in past.
Please do share comments, feedback or questions if you have any. If you liked the indictor please do share it with others too.
Generator
Chirped Sine Wave GeneratorINTRODUCTION:
The title pretty much sums up what this tool is, but not what it's for. It's NOT an indicator, just a chirped sine wave generator intended as a developer tool. Basically it sweeps from a very high frequency near the "Nyquist frequency" by chosen starting, step, and repetition rates to an ever decreasing lower frequency. This is typically viewed best on ALL, 5Y, or 1Y charts starting at bar_index==0 onward. Also, with the chart interval being intraday, you may use (ALT + SHIFT + ◀) keyboard shortcuts to jump back to barstate.isfirst. I will say, to witness a much broader scope of the sweep, having 4K is better for viewing it with the highest detailed resolution when making comparisons.
VISUAL AIDS:
When a frequency steps to another frequency a label displays the cycle period of the new frequency. This may be disabled to remove it's obstruction of view when overlaying indicators on top of it. I also included RMS levels that may be enabled.
USAGE:
As you can see above, I sourced TV built-in indicators to the "cSine Wave" plot, having varying results across the varying frequencies generated. Oscillating indicators and filters (ema, sma, etc...) of all sorts can be applied to it to inspect lag, amplitudes, or anomalies that render across the flux on the sweeping sine wave. Keep in mind market data has near infinite frequencies existing at any given time that can pop up or disappear instantly, so performance in theory on this swept synthetic waveform does not equate to performance on ANY ticker. It's gives you "ONE" totally different perspective to evaluate novel indicators.
OBSERVATIONS:
Witnessing the antiquated RSI on higher short frequencies, you will see it has a few issues, hmm. The amplitude is clamped near 50 at the Nyquist frequency growing with increasing amplitude in a funnel like shape. That doesn't imply it's a bad indicator, only there could be room for improvements... potentially. Wilder was calculating the RSI on paper basically, and the calculations were made as simple as possible in late 1970's. With advances in modern computing, many exotic permutations of RSI now exist attempting to improve upon it's original characteristics. EMA sourced to this tool appears in similar fashion to the RSI with it's own peculiarities. I suspect this occurs because EMA and RSI both use an IIR filter. CCI has a better representation across the spectral flux in this case, but that doesn't imply it's a perfect indicator on market data either. CCI could be improved as well...
REVELATIONS:
The chirped sine wave is only revealing a partial story about RSI's, EMA's, and CCI's attributes. In conclusion, how various frequencies affect our indicators, can be a bit more visually obvious using this tool, but it doesn't reveal all. For example, a 3D-RSI tells a different story when viewed in that perspective. Using a chirped sine wave, observations of ringing, weird frequency excitations, or no plot (na) may elude to more serious issues with an algorithm. In many cases, I often move the testing indicator pane to overlay the chirped sine wave pane for a more direct and precise inspection on 4K. I hope that gives you a better idea of this developer tool's intention and it's potentially limited but profound usage. I will be employing this upon nearly indicator fit for evaluation that I can utilize, upgrade, or invent in the future...
Synthetic Price Action GeneratorNOTICE:
First thing you need to know, it "DOES NOT" reflect the price of the ticker you will load it on. THIS IS NOT AN INDICATOR FOR TRADING! It's a developer tool solely generating random values that look exactly like the fractals we observe every single day. This script's generated candles are as fake as the never ending garbage news cycles we are often force fed and expected to believe by using carefully scripted narratives peddled as hypnotic truth to psychologically and emotionally influence you to the point of control by coercion and subjugation. I wanted to make the script's synthetic nature very clear using that analogy, it's dynamically artificial. Do not accidentally become disillusioned by this scripts values, make trading decisions from it, and lastly don't become victim to predatory media magic ministry parrots with pretty, handsome smiles, compelling you to board their ferris wheel of fear. Now, on to the good stuff...
BACKSTORY:
Occasionally I find myself in situations where I have to build analyzers in Pine to actually build novel quantitative analytic indicators and tools worthy of future use. These analyzers certainly don't exist on this platform, but usually are required to engineer and tweak algorithms of the highest quality with the finest computational caliber. I have numerous other synthesizers to publish besides this one.
For many reasons, I needed a synthetic environment to utilize the analyzers I built in Pine, to even pursue building some exotic indicators and algorithms. Pine doesn't allow sourcing of tuples. Not to mention, I required numerous Pine advancements to make long held dreams into tangible realities. Many Pine upgrades have arrived and MANY, MANY more are in need of implementation for all. Now that I have this, intending to use it in the future often when in need, you can now use it too. I do anticipate some skilled Pine poets will employ this intended handy utility to design and/or improved indicators for trading.
ORIGIN:
This was inspired by the brilliance from the world renowned ALGOmist John F. Ehlers, but it's taken on a completely alien form from its original DNA. Browsing on the internet for something else, I came across an article with a small code snippet, and I remembered an old wish of mine. I have long known that by flipping back and forth on specific tickers and timeframes in my Watchlist is not the most efficient way to evaluate indicators in multiple theatres of price action. I realized, I always wanted to possess and use this sort of tool, so... I put it into Pine form, but now have decided to inject it with Pine Script steroids. The outcome is highly mutable candle formations in a reusable mutagenic package, observable above and masquerading as genuine looking price candles.
OVERVIEW:
I guess you could call it a price action synthesizer, but I entitled it "Synthetic Price Action Generator" for those who may be searching for such a thing. You may find this more useful on the All or 5Y charts initially to witness indication from beginning (barstate.isfirst === barindex==0) to end (last_bar_index), but you may also use keyboard shortcuts + + to view the earliest plottable bars on any timeframe. I often use that keyboard shortcut to qualify an indicator through the entirety of it's runtime.
A lot can go wrong unexpectedly with indicator initialization, and you will never know it if you don't inspect it. Many recursively endowed Infinite Impulse Response (IIR) Filters can initialize with unintended results that minutely ring in slightly erroneous fashion for the entire runtime, beginning to end, causing deviations from "what should of been..." values with false signals. Looking closely at spg(), you will recognize that 3 EMAs are employed to manage and maintain randomness of CLOSE, HIGH, and LOW. In fact, any indicator's barindex==0 initialization can be inspected with the keyboard shortcuts above. If you see anything obviously strange in an authors indicator, please contact the developer if possible and respectfully notify them.
PURPOSE:
The primary intended application of this script, is to offer developers from advanced to even novice skill levels assistance with building next generation indicators. Mostly, it's purpose is for testing and troubleshooting indicators AND evaluating how they perform in a "manageable" randomized environment. Some times indicators flake out on rare but problematic price fluctuations, and this may help you with finding your issues/errata sooner than later. While the candles upon initial loading look pristine, by tweaking it to the minval/maxval parameters limits OR beyond with a few code modifications, you can generate unusual volatility, for instance... huge wicks. Limits of minval= and maxval= of are by default set to a comfort zone of operation. Massive wicks or candle bodies will undoubtedly affect your indication and often render them useless on tickers that exhibit that behavior, like WGMCF intraday currently.
Copy/paste boundaries are provided for relevant insertion into another script. Paste placement should happen at the very top of a script. Note that by overwriting the close, open, high, etc... values, your compiler will give you generous warnings of "variable shadowing" in abundance, but this is an expected part of applying it to your novel script, no worries. plotcandle() can be copied over too and enabled/disabled in Settings->Style. Always remember to fully remove this scripts' code and those assignments properly before actual trading use of your script occurs, AND specifically when publishing. The entirety of this provided code should never, never exist in a published indicator.
OTHER INTENTIONS:
Even though these are 100% synthetic generated price points, you will notice ALL of the fractal pseudo-patterns that commonly exist in the markets, are naturally occurring with this generator too. You can also swiftly immerse yourself in pattern recognition exercises with increased efficiency in real time by clicking any SPAG Setting in focus and then using the up/down arrow keys. I hope I explained potential uses adequately...
On a personal note, the existence of fractal symmetry often makes me wonder, do we truly live in a totality chaotic universe or is it ordered mathematically for some outcomes to a certain extent. I think both. My observations, it's a pre-deterministic reality completely influenced by infinitesimal amounts of sentient free will with unimaginable existing and emerging quantities. Some how an unknown mysterious mechanism governing the totality of universal physics and mathematics counts this 100.0% flawlessly and perpetually. Anyways, you can't change the past that long existed before your birth or even yesterday, but you can choose to dream, create, and forge the future into your desires and hopes. As always, shite always happens when your not looking for it. What you choose to do after stepping in it unintentionally... is totally up to you. :) Maybe this tool and tips provided will aid you in not stepping in an algo cachucha up to your ankles somehow.
SCRIPTING LESSONS PORTRAYED IN THIS SCRIPT:
Pine etiquette and code cleanliness
Overwrite capabilities of built-in Pine variables for testing indicators
Various techniques to organize Settings panel while providing ease of adjustment utility
Use of tooltip= to provide users adequate valuable information. Most people want to trade with indicators, not blindly make adjustments to them without any knowledge of their intended operation/effects
When available time provides itself, I will consider your inquiries, thoughts, and concepts presented below in the comments section, should you have any questions or comments regarding this indicator. When my indicators achieve more prevalent use by TV members , I may implement more ideas when they present themselves as worthy additions. Have a profitable future everyone!
Random Synthetic Asset GenerationThis script generates pseudo-random asset data . Due to the nature of the random generator, it is impossible to use this indicator as input for other indicators because the instance of the script that the indicator is applied to will automatically be different from the instance that is plotted on the chart. Therefore, the idea is to use this script in other scripts (to make it possible to backtest on random data, for example).
The script has four main input parameters.
Random Number Generator Method: It supports two methods for generating the pseudo-random numbers (one by Ricardo Santos and one by Wichmann-Hill).
Seed: You can specify the seed to use. Each unique seed will generate a unique set of pseudo-random data.
Intrabar Volatility: This basically sets how volatile the generated wicks will be (0 = no wicks).
Price Multiplier: This is just a multiplier for the generated price data, so that you can scale up or down the generated price data.
You can also change the colors of the bars.
In addition to this, the indicator also generates random volume. In order to make it possible to show both volume and price, you need to have two identical instances of the indicator. One on the chart, and one in its own panel. Then, go into the Style tab in the indicator settings on the instance in the panel. Untick Up-Candles and Down-Candles boxes, and tick the Volume box.
In a similar manner, you can also plot the true range data and the candle change data as well, by ticking one of those boxes instead.
Composite Synchronous Sinusoidal Harmonics Waveform GeneratorWait, "Composite Synchronous Sinusoidal Harmonics Waveform Generator", say what?? What on earth is that, and what function does this script perform? Keep reading and discover! It's intended and provided freely to use for any TV member at any skill level, not just at the engineering level. This is also available for anyone becoming fluent with why stocks/markets fluctuated the way that they do.
Don't let the entitled name frighten you, it's actually surprisingly fun to just fiddle with. This is ALSO a ingenious PSv4 tinker toy. Change any input() and see how one subtle settings alteration dramatically changes the entire fractal. You might learn something new about this giant financial game we all are determined to play anyways. Double and triple tops, head and shoulders, bounces, cup/handle, consolidations, and MANY-MANY other things are revealed on how they come to exist and why. Funny thing is, this is occurring in minds of traders psychologically. You, me, everyone! Ponder that.
Initially, I wanted a synthetic signal "generator", where I would know for certain what the specific "composing" frequencies are for testing, spectral analysis, filtering, and pattern recognition purposes. Inherent "harmonics" affect nearly every algorithmic indicator you have seen or that may come to exist. While encountering a plethora of cycles, you may see exactly how well your indicators/filters perform when "sourced" to this script with `src = input(close, "Source", input.source)`. Keep in mind, open, high, low, and volume variables are NOT available, if they are employed in your indicators calculations. Feel free to tether this to TV built-in indicators or create your own in TV's Pine Editor, if a source input() isn't already provided. See what happens...
Educating you informatively further, there are "synchronous" irregular harmonic frequencies just like this that do in fact exist in tickers everywhere. While this script's specific generated "sinusoidals" are completely stationary, the ones you will see in REAL price action are ephemeral, emerging and disappearing at any time unexpectedly. The remarkable thing about my creation is, you may notice patterns in the generated fundamental "waveform" that are eerily similar to actual stock market fractal patterns encountered everyday. On just spontaneous random chance, I found a recognizable pattern on a watch list asset displayed above, without looking for it before publishing this. I did not cherry pick that or tune the settings to it. I just bumped up the chart interval one notch and offset the waveform quickly.
As you can witness looking closer, there are numerous pure sine waves artificially created with different amplitudes and phase shifts to form unique patterns that combine together in most unique ways appearing fractal in nature. The sine waves are not derived from any ticker price/volume that you maybe viewing, and should look similar on any time frame chosen. Don't worry about chart intervals. The combination of these with simple addition results in the most unique of waveforms in white. You will notice "dominant cycles", as Dr. John Ehlers would describe them, are the prevailers in movement. Yet those smaller cycles have enormous influence over more powerful cycles and ultimately our indicators.
One intention not included at initial release is a preset waveforms input() to instantly generate very specific patterns, such as a pseudo-square wave, sawtooth wave, and many others that may have applications in real world pattern matching. If you happen to come across very unique ones, you may inform me privately via TV chat and I will consider your gracious considerations of discovered settings for inclusion. I'm awaiting Pine arrays to arrive for that major revision. Yes, you have read that correctly. They have been in the TV contributor/developer oven for quite some time. This was revealed in a "public" announcement recently, and I decided to provide you with a "Get Ready Notification" in this script's description, wink-wink. Pine Script endowed with arrays may be used to create and test spectral decomposition analytics code, filters, or what ever else your mind can surmise utilizing this nifty generator script. You now have another tool for your TV tool belt, to aid with spawning the future evolution of indicators on TradingView. Let the tinkering commence...
Features List Includes:
Waveform offset
Nyquist noise injection
Sine wave enable/disable for all sine waves
Cycle period for all sine waves
Amplitude for all sine waves
Phase shift for all sine waves
The comments section below is solely just for commenting and other remarks, ideas, compliments, etc... regarding only this indicator, not others. When available time provides itself, I will consider your inquiries, thoughts, and concepts presented below in the comments section if you do have any questions or comments regarding this indicator. When my indicators achieve more prevalent use by TV members , I may implement more ideas when they present themselves as worthy additions. As always, "Like" it if you simply just like it with a proper thumbs up, and also return to my scripts list occasionally for additional postings. Have a profitable future everyone!
Candle Color GeneratorCandle Color Generator:
This indicator is designed to highlight the candle colors based on the combinations of Parabolic SAR (PSAR) and 2 Hull Moving Averages (HMA).
Colors:
Yellow, Red, and Green colors are used to describe the candle colors depends on its position to PSAR and 2 HMAs.
PSAR:
PSAR position above or below candle position is differentiated by Red and Green colors
HMAs:
As default settings 20 HMA is considered as lower period and 50 HMA is considered period for the calculation
Trade What You See:
This indicator will help to see how the setup of particular instrument coming up. Users/Traders can use and trade based on what they see and interpret from it.
Disclaimer:
Idea of publishing this script is to identify the strength of the instrument using multiple confirmation.
Using this indicator, changing inputs (show/hide/change period), and trading decisions are up to the users/traders.
Courtesy:
Thanks to inventors of HMA (Alan Hull), PSAR(Welles Wilder) as these inputs are used to make some calculations
Pseudo-Random Number Generators via Pine ScriptThese are my "Pseudo-Random Number Generators via Pine Script", having uniform distribution between 0 and 1. In my quest for sequential pseudo-random numbers in Pine, tinkering with mathematical chaos, I have come up with these three simple yet handy generators. I believe these may be useful in the future by developers of the Tradingview community.
NOTICE: Use it as you please, this is free code to implement into your new Pine projects. You don't have to ask for my permission to reuse these functions in your published scripts, simply because I have better things to do than answer requests for the reuse of these simplistic PRNG functions. I don't require accreditation for members to reuse these functions either. I simply don't want any credit. I only require that you respectfully put it to "good and proper use" complimenting the elaborate script you have in mind. I would however like to see some great ideas utilizing these when I randomly and accidentally come across them in the public library. I didn't know where to put this script, so I just tossed it into the "Trend Analysis" category.
The comments section below is solely just for commenting and other remarks, ideas, compliments, etc... regarding only this indicator, not others. When available time provides itself, I will consider your inquiries, thoughts, and concepts presented below in the comments section, should you have any questions or comments regarding this indicator. When my indicators achieve more prevalent use by TV members, I may implement more ideas when they present themselves as worthy additions. As always, "Like" it if you simply just like it with a proper thumbs up, and also return to my scripts list occasionally for additional postings. Have a profitable future everyone!
Smart Labelling - Range FilterThis is a labelling module based on a range filter . Notice that the trick here is to use fibonachi numbers . Use smaller range multiplier for higher TFs. This module may serve as a signal generator to be passed through a signal filter.
Quote from the original author:
This is an experimental study designed to filter out minor price action for a clearer view of trends. Inspired by the QQE's volatility filter, this filter applies the process directly to price rather than to a smoothed RSI. First, a smooth average price range is calculated for the basis of the filter and multiplied by a specified amount. Next, the filter is calculated by gating price movements that do not exceed the specified range. Lastly the target ranges are plotted to display the prices that will trigger filter movement.
Simple Square Wave GeneratorThe title pretty much sums up what purpose this tool serves. It is NOT an indicator, just a simple square wave generator. I built this from scratch to test transient responses of filters I have devised to visually inspect the performance of smoothers, moving averages, lag, etc... I'm not sure if anyone may find it useful, but I figured you might be able to source the square wave TO another indicator as long as your indicator/filter you have has: price = input(close, "Source", source), plot(yourMovingAverageOrFilter(price, integerFromInput)). Look for the lowest "SSqWG" in your source selection. I coupled the built-in CCI and RSI to show how it's easily possible. Features include a "Wave Length (Bars)" setting in the "Format" panel, the square wave phase is shift-able to the left and the right, and there is also an amplitude adjustment as well. Let me know if you have any ideas on how you may personally use this if you wish to elaborate briefly. I would like to thank the entire TV development team for making the "Apply Indicator to" feature. That's some really cool tech for tethering indicator windows together, so we can now Frankenstein our scripts together while inspecting the different wave form results in separate windows. That's some revolutionary thinking, awesome job Tradingview DEV team!
Godmode Oscillator 3.2This is nothing other than an update and slight modification to the original Godmode Oscillator published by xSilas
The update done by sco77m4r7in and myself.
Change Log:
Repaired the multi exchange option for BTC
Added additional 'Caution!' dots with color coding.
white = Early Caution signal
yellow = standard 'Caution!' signal
red = Extreme Caution signal
Be sure to give everyone a big thanks!
Original Godmode Script and Tutorial by xSilas :
Godmode Oscillator, fresh bread generator, free to use!Greetings Mates,
!!! If you want to use this tool for free you have to to following steps:
1) say thanks to LEGION who coded the first version.
2) say thanks to LAZYBEAR cause we ripped some code snippets from him.
3) say thanks to Ni6HTH4wK who coded the latest version.
4) say thanks to xSilas who gave the idea.
5) I know i said its a FREE Tool and you dont need to donate me cause i have Godmode :), but lets have a litte thought on all the people that are a bit poorer than us. It would be really great if we get some DOLLARS for a great charity action for children.
6) Feel free to spend some Bitcoins to this Address: 1BNjs1Prsux8YQawVWYfiYoxzoKzfReckX
(i start and going to spend 1 BTC) (! the spended amount is revealed at the end!)
7) If you know said thankyou to everybody and may spend some dollars we can go on with Godmode trading.
8) Enjoy the Tool, merry Xmas and cheers for another great volatile bitcoin year :).
GODMODE OSCILLATOR, FRESH BREAD GENERATOR, FREE TO USE!Greetings Mates,
!!! If you want to use this tool for free you have to to following steps:
1) say thanks to LEGION who coded the first version.
2) say thanks to LAZYBEAR cause we ripped some code snippets from him.
3) say thanks to Ni6HTH4wK who coded the latest version.
4) say thanks to xSilas who gave the idea.
5) I know i said its a FREE Tool and you dont need to donate me cause i have Godmode :), but lets have a litte thought on all the people that are a bit poorer than us. It would be really great if we get some DOLLARS for a great charity action for children.
6) Feel free to spend some Bitcoins to this Address: 1BNjs1Prsux8YQawVWYfiYoxzoKzfReckX
(i start and going to spend 1 BTC) (! the spended amount is revealed at the end!)
7) If you know said thankyou to everybody and may spend some dollars we can go on with Godmode trading.
8) Enjoy the Tool, merry Xmas and cheers for another great volatile bitcoin year :).
---------------------------------------------------------
Godmode How To:
1) Spikey Pattern ^
Godmode spikes with 0-5 caution dots, great OTE Signal.
2) Snake Pattern ~
extreme pressure building, more movement
in same direction following.
3) Rounding Pattern U
more than 5 caution dots, rounding
pressure building "normally" more to come