Weierstrass Function (Fractal Cycles)THE WEIERSTRASS FUNCTION
f(x) = ∑(n=0)^∞ a^n * cos(b^n * π * x)
The Weierstrass Function is the sum of an infinite series of cosine functions, each with increasing frequency and decreasing amplitude. This creates powerful multi-scale oscillations within the range ⬍(-2;+2), resembling a system of self-repetitive patterns. You can zoom into any part of the output and observe similar proportions, mimicking the hidden order behind the irregularity and unpredictability of financial markets.
IT DOESN’T RELY ON ANY MARKET DATA, AS THE OUTPUT IS BASED PURELY ON A MATHEMATICAL FORMULA!
This script does not provide direct buy or sell signals and should be used as a tool for analyzing the market behavior through fractal geometry. The function is often used to model complex, chaotic systems, including natural phenomena and financial markets.
APPLICATIONS:
Timing Aspect: Identifies the phases of market cycles, helping to keep awareness of frequency of turning points
Price-Modeling features: The Amplitude, frequency, and scaling settings allow the indicator to simulate the trends and oscillations. Its nowhere-differentiable nature aligns with the market's inherent uncertainty. The fractured oscillations resemble sharp jumps, noise, and dips found in volatile markets.
SETTINGS
Amplitude Factor (a): Controls the size of each wave. A higher value makes the waves larger.
Frequency Factor (b): Determines how fast the waves oscillate. A higher value creates more frequent waves.
Ability to Invert the output: Just like any cosine function it starts its journey with a decline, which is not distinctive to the behavior of most assets. The default setting is in "inverted mode".
Scale Factor: Adjusts the speed at which the oscillations grow over time.
Number of Terms (n_terms): Increases the number of waves. More terms add complexity to the pattern.
Order
Predictive Order Blocks [CryptoSea]The Predictive Order Blocks Indicator is a unique and innovative tool that enhances market analysis by identifying support and resistance blocks based on standard deviations from a median line. Unlike traditional indicators that rely solely on the close price, this indicator leverages the median line and standard deviations to form areas of interest, rather than targeting a single price point. This approach provides a more accurate representation of market structure, especially during periods of consolidation and expansion.
Key Features
Multi-Term Length Analysis: The indicator offers short, medium, and long-term settings, allowing traders to customise the analysis based on their preferred trading strategy and timeframe. This flexibility ensures that the tool is adaptable to various market conditions and trading styles.
Standard Deviation-Based Order Blocks: The core functionality of the indicator revolves around calculating standard deviations from a median line to form support and resistance blocks. These blocks provide a clearer and more reliable picture of market structure compared to single-point levels. By focusing on areas rather than exact price levels, the indicator helps traders identify zones where price is likely to react, leading to more informed trading decisions.
Dynamic Box Creation: The indicator dynamically creates breakout boxes based on user-selected standard deviation ranges. These boxes are formed at the start of market expansion following periods of consolidation. This feature is particularly useful because it highlights key levels where price is likely to retrace after breaking out, providing traders with actionable insights during market transitions.
Proximity-Based Gradient Colors: The indicator features gradient colors that change based on the price's proximity to the standard deviation bands. This visual aid helps traders quickly assess the current market condition and the potential significance of the support and resistance blocks.
Adaptive Display Options: To accommodate different trading preferences, the indicator includes options to toggle the display of the trend line (median line) and the standard deviation bands. This flexibility allows traders to customise their chart view to match their analysis style, whether they prefer a more clutter-free view or a detailed breakdown of market levels.
In the example below, the indicator shows the bands compressing during a period of consolidation, highlighting the potential for a breakout.
How it Works
Median Line Calculation: The indicator calculates the median line using a user-defined period. This line serves as the central reference point from which the standard deviations are calculated. By using the median line instead of just the close price, the indicator provides a more stable and reliable baseline for identifying support and resistance areas.
Standard Deviation Bands: Around the median line, the indicator calculates multiple standard deviation bands. These bands represent areas where price is statistically likely to find support or resistance. By focusing on these areas, traders can better anticipate where price might react, rather than relying on arbitrary levels.
Dynamic Box Creation and Expansion Detection: The indicator monitors the compression and expansion of the standard deviation bands. During periods of low volatility (squeeze), the bands compress, indicating consolidation. Once the bands start expanding, it signals the potential for a breakout. At this point, the indicator dynamically creates predictive order blocks based on the selected standard deviation range. These blocks highlight key levels where price might retrace or react, providing traders with valuable entry and exit points.
Color-Coded Proximity Alerts: To further enhance usability, the indicator uses color gradients to indicate how close the current price is to the calculated bands. This visual representation helps traders quickly assess the potential significance of the price's current position relative to the support and resistance areas.
In the example below, the indicator shows the bands expanding with the price, triggering the formation of the predictive order block.
In the final example, the price retraces into the order block before bouncing back to the upside, demonstrating the effectiveness of the identified support area.
Alerts
Trend Line Alerts: The indicator provides alerts when the price crosses above or below the trend line (median line). This feature is crucial for traders looking to identify potential trend changes early, allowing them to act quickly on emerging opportunities.
Band Alerts: Alerts are also triggered when the price crosses above or below the upper or lower bands for each standard deviation level. This helps traders identify potential breakout or breakdown scenarios, ensuring they are notified of significant market movements as they happen.
Customisable Alert Conditions: To cater to different trading strategies, the indicator allows users to set alert conditions for each standard deviation band and the trend line. This level of customisation ensures that traders receive alerts that are relevant to their specific trading style and market analysis.
Application
Strategic Decision-Making: The Predictive Order Blocks Indicator assists traders in making informed decisions by providing detailed analysis of potential breakout zones. By identifying key support and resistance areas, the indicator helps traders plan their entries and exits with greater precision.
Trend Confirmation: The indicator reinforces trading strategies by identifying key levels where price is likely to react. This confirmation is crucial for traders looking to enter trades with higher confidence.
Customized Analysis: The indicator adapts to various trading styles with extensive input settings that control the display and calculation of order blocks. Whether you're a day trader, swing trader, or long-term investor, the indicator can be tailored to meet your specific needs.
Visual Clarity: With customizable color settings and display options, the indicator enhances chart readability, allowing traders to quickly and easily interpret market data.
The Predictive Order Blocks Indicator by CryptoSea is an invaluable addition to a trader's toolkit, offering depth and precision in market trend analysis to navigate complex market conditions effectively.
Order Block v1Hello Traders :)
I am Only Fibonacci.
While coding this indicator, I examined many concepts and decided to blend them.
I took the method shared by most traders and added different perspectives and options.
First of all, you can choose how many order block regions you want to see on the screen.
Note: The levels displayed on the screen are the sum of bears and bulls.
You can also choose whichever you want to see, bearish or bullish.
You can specify the precision of pivot points.
Whether you want to select a zone with a body or a zone with a wick, you can see this in the settings.
You can extend the regions infinitely with the right extension option.
Support & Resistance IndicatorThe MACD Support & Resistance indicator is an enhanced tool to better visualize potential supply (resistance) and demand (support) zones based on the MACD indicator. It combines the strength of the MACD with recent price highs and lows to depict potential breakout or reversal areas in the market.
Features:
MACD Settings: Users can adjust the fast length, slow length, source of MACD, signal smoothing, and MA type for both the oscillator and the signal line.
Dynamic Color Settings: Customize the color of supply boxes, demand boxes, and closed boxes for improved visualization.
Table View: An optional table can be displayed showing the average MACD high and low values, with customizable table position, size, background color, and text color.
Historical MACD Average: The indicator uses a historical average of MACD pivot highs and lows to determine potential support and resistance zones.
Real-Time Zone Detection: The indicator plots 'High Boxes' when the MACD crosses above its average high and 'Low Boxes' when it crosses below its average low, which signifies potential breakout or reversal zones.
How It Works:
The MACD line is calculated using user-defined moving average types (either EMA or SMA).
Pivot highs and pivot lows of the MACD are identified over a specified period.
Historical MACD highs and lows are stored and managed for average calculation. The average MACD high and low values are then used to determine potential trading zones.
When the MACD crosses over its average high, a 'High Box' (representing a potential breakout zone) is plotted from the recent high price to the candle top.
Conversely, when the MACD crosses under its average low, a 'Low Box' (indicating a potential reversal zone) is plotted from the recent low price to the candle base.
As price progresses, the boxes can either extend (if price stays within the zone) or close if a breakout happens.
For those who prefer a tabular view, an optional table displays the average MACD high and low, enhancing the on-chart data representation.
Use Cases:
Traders can use this indicator as an additional tool to spot potential breakout or reversal areas based on the MACD's behavior against its historical average. The visual representation in the form of boxes can assist in making better trading decisions by offering a clear picture of potential supply and demand zones.
Note: As with all trading indicators, it's advisable to use this tool in conjunction with other technical analysis methods or indicators for more informed decision-making.
Will my limit order be filled ?Hi
This is a small script that tries to assess the probability that a limit order sent at x % from the last close will be filled in the next y bars.
It is based on historical data and can be useful to decide where to place your limit orders and to determine how far from the price you can put the limit order to get an X% chance of getting filled.
It displays this result for both long and short entries and you can specify if you want to fill orders with wicks or not.
2nd 3rd 4th Order PivotsThis indicator calculates pivots of 2nd, 3rd and 4th order in the current timeframe.
The idea is borrowed from the book "The Art and Science of Technical Trading" by Adam Grimes:
"A pivot high is a bar that has a higher high than the bar that came before it and the bar that comes after it"
"Second-order pivot highs are first-order pivot highs that are preceded and followed by lower first-order pivot highs.
The type of picot calculation can be found as well in script "Higher Order Pivots" by rumpypumpydumpy. However, this script is different in the following ways:
1. Shows pivots of order 2, 3 and 4
2. The chart timeframe can be different than the pivot timeframe, allowing e.g. to map daily pivots to intraday charts via lines
3. Labels and/or lines can be used to show pivot points
4. Use of extended session data can be enabled/disabled, independently from the current chart settings
5. To disable older pivots, a starting time for the pivot calculation can be set
Please consider following limitations:
1. Maximum of 500 drawing objects per chart. Use Notification option to keep track of when running out of chart objects.
2. Lookback history: The max lookback history is limited by the currently selected timeframe. E.g. on a 5min timeframe, 20000 bars (Premium Plan) result in approx. 5 months of lookback period, meaning you may want to verify with a 30 min or higher chart to get a complete picture of pivots.
Binance_Min_Limit_Order_amount_libraryLibrary "Binance_Min_Limit_Order_amount_library"
TODO: This library give us the minimum Limit Order amount for the contract in Binance.
m_qty(n_v, m_fee, t_fee, cost, m_t)
TODO: it give us the Minimum Qty for the trading in Binance
Parameters:
n_v : TODO: min_notional_value. 5 dollar is the minimum notional amount in Binance at the moment.
m_fee : TODO: maker_fee %
t_fee : TODO: taker_fee %
cost : TODO: your investing money
m_t : TODO: if you want Limit_Order, put the "T", if you want Market_Order, put the "M" defval="M"
Returns: TODO: for the coin of binance on your chart,
Reference: www.binance.com
Pivot Order Blocks// How it Works \\
Order Blocks based on pivot reversal candle
When a pivot High or Pivot Low is found and confirmed, a box will be plotted on the open and close values of that pivot candle
// Settings \\
In the settings you have the ability to change the distances required to confirm an pivot High or Low
These are the lengths where the script checks to see if it is at its local high or low.
You also have the ability to change the amount of candles the box stretches over as well as the colors of the bullish and bearish boxes
// Use Case \\
Pivot points often provide Support and Resistance points on their own,
one way of marking up order blocks is by taking the pivot candle and marking that up as a resistance area where you could be looking for price to reverse
// Suggestions \\
Happy for anyone to make any suggestions on changes which could improve the script,
// Terms \\
Feel free to use the script, If you do use the script could you please just tag me as I am interested to see how people are using it. Good Luck!
Auto Order Block by D. BrigagliaThis indicator finds trend following engulfings, and draws order blocks based on the 1st candle's range (the first candle of the engulfing pattern).
It does filter the trend with simple moving averages of 21 and 55 periods, but it doesn't filter for retracements in the trend (you should consider only the order blocks that are coming from engulfings after a retracement)
BB Order BlocksUsing the Bollinger Band to mark areas of Support and Resistance
The scrip finds the highest and lowest levels of the bands to mark up futures areas of interest.
If the High/Lows are being broken on the Bollinger band, or if the look back range has expired without finding new levels, the script will stop plotting them until new levels are found
I have found many combinations which work well
Changing the band length to to levels 20,50,100 or 200 seem to give interesting results
Aswell as this changing the standard deviation to 3 instead of 2 marks up key levels.
The look back range seems to show better levels on 50,100 and 200
Let me know any changes or updates you think you could make an impact , this was just a quick basic script I wanted to share.
Order Block Finder (Experimental)The purpose of this experimental Indicator is to help identifying Institutional Order Blocks.
Often these Order Blocks can be observed at the beginning of a strong move, but there is a significant probability that these price levels will be revisited at a later point in time again. Therefore these are interesting levels to place limit orders (Buy Orders for Bullish OB / Sell Orders for Bearish OB).
A Bullish Order block is defined as the last down candle before a sequence of up candles. (Relevant price range "Open" to "Low" is marked)
A Bearish Order Block is defined as the last up candle before a sequence of down candles. (Relevant price range "Open" to "High" is marked)
In the settings the number of required sequential candles can be adjusted.
Furthermore a %-threshold can be entered. It defines which minimum %-change the sequential move needs to achieve in order to identify a relevant Order Block. If this is used, it makes sense to adjust it to the timeframe which is analyzed as of course higher timeframes usually produce bigger moves.
Channels for the last Bullish/Bearish Block can be shown/hidden.
In addition to the upper/lower limits of each Order Block, also the equlibrium (average value) is marked as this is an interesting area for price interaction.
Please note that you can optionally display a "Docu"-Label which shows some information about the indicator as a tooltip.
Remark:
As the identification of a relevant Order Block is only possible after the required number of subsequent candles has closed, this indicator "repaints" by definition. But I do not see this as an issue as the relevancy of the Order Blocks and the interaction of price with these levels usually only happens longer in the future anyway.
Order Size CalculatorScript to calculate the amount of stocks for of an order in relation to depot size (money), risk awareness, profit target and ATR