Random Market «NoaTrader»This is a simple script for generating random data shown as candles. The purpose of it is the following:
1- To see what works here. If everything is random and something is working, is there really any reason behind it?
2- To see what NOT works here! this is probably the most interesting part. Human behaviors are more likely to generate bubbles so theories like Elliot waves don't work here but do work on real charts! that is an interesting thing!
3- To find out the exact parameters defining a market which is a bit more complicated and deeper. If you look closely to candles you can say that it is not natural like other candle charts. If you have watched different timeframes enough, you have a sense of the difference between them. Why? What is natural? The volume? The wicks? The seasonality? The amount of randomness? The cycle of momentum change? ... If you can generate candles more similar to real ones it means you know the details of market much better!
P.S: the random function of trading view works differently on different symbols and timeframes..
Random
Random Signal Generator
Random Signals Indicator generates random long and short signals on the chart. Please note that these signals are purely random and should not be used for actual trading decisions. The indicator allows you to set the minimum number of bars between signals and adjust the sensitivity of the random generation. Use this indicator for educational or testing purposes only, and always rely on proper trading strategies and analysis for real trading.
---
Индикатор случайных сигналов генерирует случайные сигналы на покупку и продажу на графике. Обратите внимание, что эти сигналы полностью случайные и не должны использоваться для принятия реальных торговых решений. Индикатор позволяет установить минимальное количество баров между сигналами и настроить чувствительность генерации случайных значений. Используйте этот индикатор только для образовательных или тестовых целей, а при реальной торговле полагайтесь на надлежащие торговые стратегии и анализ.
Random Price Action Visible Chartplots randomly generated price (closing basis) from LHS of the chart. Re-plots each time you scroll
-just a curiosity really; perhaps a lesson in seeing patterns where there are none; 'fooled by randomness' etc.
-always anchors/starts from the real close of the asset on the visible Left hand side of the chart.
-adjust ATR as you like (bigger = probably more reliable/realistic).
-adjust ATRmultiple as you like (discretionary; basically how many ATR ranges above/below last bar's random close, will the maximum random value above/below be; default is 1.5x (arbitrary).
Chop and explode (ps5)Description : This is a renovated version of my previous mod that was based on the original script from fhenry0331.
Added are:
a data cleaning function
a seasonal random index function
an updated scaler and
a signalling procedure.
-
The following description is moved here from the old script.
The purpose of this script is to decipher chop zones from runs/movement/explosion spans. The chop is RSI movement between 40 and 60. Tight chop is RSI movement between 45 and 55. There should be an explosion after RSI breaks through 60 (long) or 40 (short). Tight chop bars are colored gray, a series of gray bars indicates a tight consolidation and should explode imminently. The longer the chop the longer the explosion will go for. The tighter the better. Loose chop (jig saw/gray bars on the silver background) will range between 40 and 60. The move begins with green and red bars.
Couple it with your trading system to help stay out of chop and enter when there is a movement.
Random Buy Success Rate CalculatorI created a prior Success Rate Calculator to help me quantify the success rate of my invite-only indicator "SB Master Chart". Happy with the results of the calculator, I decided to create a calculator for a random buy.
This is a table addon that calculates in real-time the success rate of a random buy. I think this simple calculation can give you a good indication if you want to invest in a stock and what the odds are for it being profitable at anytime during your holding period. A stock with a low score might be one that you stay away from.
There are two configurable options.
Lookback Success Calculations (Bars)
This setting is used to determine what the success is for a random buy. For example. The script tracks purchases made at every bar and check the results bars in the future to see if at any time during that time it closed above the buy cost basis.
For example if the setting is 5, we would want a close above our cost basis within 5 bars from the random buy.
The longer you are willing to hold a stock, the higher you should set this setting. If you want to buy/hold a stock for 20 days, set it to twenty to see your odds of being profitable during that time period.
Lets use the daily chart as a quick example.
If today the signal goes off and we have a settings of five, in five days (5bars) if there is a close above todays close, we count that as a success. If there is not, we count that as a failure.
Start Date Settings
This setting is used to limit the amount of data we gather for testing. For example, we may want to only know how many successes we want since the start of the year. This is the default setting, you can set it for an earlier date in time if you wish to gather more data.
Future todo updates: Adjust cell color based on values. Right now its defaulted to green.
Function - Probability Chebyshev Inequalityfunction to calculate Chebyshev Inequality. wich can be used to compute the probability that we will diverge from what we expect to obtain.
reference:
- www.omnicalculator.com
- github.com
- statisticstopics.wordpress.com
- en.wikipedia.org
Coin Flipper ProHave you ever wondered how your win rate compares with flipping a coin? Well now you can check with Coin Flipper Pro!
This script produces a random position direction like flipping a coin and sets up a long or short trade based on you desired risk % and target ratio.
Have fun!
Random Walk ReversalUses the Random Walk script as a tool for predicting trend reversals instead of trend strength.
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.
Example: Monte Carlo SimulationExperimental:
Example execution of Monte Carlo Simulation applied to the markets(this is my interpretation of the algo so inconsistencys may appear).
note:
the algorithm is very demanding so performance is limited.
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!
Smoothed RWI(Random Walk Index)Smoothed Random Walk Index.
It gives slightly slower but less false signal than stochastic.
If it draws double bottom with higher low, long entry is considered.
If it draws double with lower high, short entry is considered.
For more accuracy, another smoothed RWI with slower setting is needed.
If fast setting RWI draws lower high AND slower setting RWI is also going down(red color),
short entry is considered with more confidence.
[RS]Function - Normaly Distributed Pseudo Random GeneratorEXPERIMENTAL:
Function to generate a normally distributed pseudo random value.
if you find that something doesn't add up, please leave a message bellow.
Optimized Random Average (Linear) mcbw_This is a moving average with a customizable random kernel. You can shape your kernel by selecting your parameters in the settings window. This is not something that is immediately ready to mess with by just applying it on the chart, it is very useful for people who are researching indicators and developing new tools. To see the shape of your kernel you can plug it into google or wolfram. This indicator and the related ones are rather technical in nature, so feel free to comment any questions you may have and to see if anyone has asked your question.
Read more here:
Happy studying and enjoy your life!
2019 will be absolutely insane!
Function Pseudo Random GeneratorFunction to return a pseudo random number.
you can constrict it to a range and provide a seed to step through on the same bar.
thanks to Duyck, for the link.
Alert BatchesThis script lets you separate alerts into batches, and trigger each batch in either sequential order or (pseudo)random order. You can also specify the number of batches being used.
This is helpful when you have alerts to be triggered on every candle, but the number of alerts causes API errors if they are all executed at once.
Random signal generatorThis script uses a new technique to give truly random output, which can be used to accurately compare real indicators with pure chance.