Library "FunctionDiscreteCosineTransform" Discrete Cosine Transform (DCT) The Discrete Cosine Transform (DCT) is a mathematical algorithm that converts a series of samples of a signal, typically in the time domain, into another domain called the frequency or spectral domain. It's commonly used for data compression and image/video coding applications such as...
The Historical Correlation tool aims to provide the historical correlation coefficients of up to 10 pairs of user-defined tickers starting from a user-defined point in time. Users can choose to display the historical values as lines or the most recent correlation values as a heat map. 🔶 USAGE This tool provides historical correlation coefficients, the...
The end of month effect is a well known trading strategy in the stock market. Quite simply, most stocks go up at the end of the month. What's even better is that this effect spills over to the next phew days of the next month. In this script we backtest this theory which should work especially well on SP500 pair. By default the strategy buys 2 days before the...
This library is designed to aid traders and developers in calculating risk metrics efficiently across different asset types like equities, futures, and forex. It includes comprehensive functions that calculate the number of units or contracts to trade, the value at risk, and the total value of the position based on provided entry prices, stop levels, and risk...
The "Evolving R" script is a script that allows to calculate a dynamic reward-to-risk ratio at any given point of time during the trade. Its fundamentals are based on Tom Dante's concept of an evolving reward-to-risk. The script requires a user to input their preferred stop loss price and the target price for a specific asset, and calculates the ratio between two...
Changes candle color when close is within the top 25% or bottom 25% of candle range (High - Low) on the last candle update. Due to limitations of barcolor command, I'd suggest that you turn OFF the candle borders (chart settings--> right click on chart --> settings -->symbol and uncheck the border option) to ensure that the bar color is easily identifiable.
The "ATH Distance Heatmap" is a powerful visualization tool designed for traders and investors who seek to quickly assess the relative performance of assets against their All-Time Highs (ATH). By mapping the percentage distance of current prices from their historical peaks, this script provides a unique perspective on market sentiment, potential recovery...
Heyo fellas, In today’s dynamic economic landscape, understanding the relationship of market prices to other economical factors like inflation rate is crucial. The Inflation Correlation Indicator is designed to provide traders with a clear visualization of this relationship. By correlating average inflation rates from selected countries with market closing...
🟧 GENERAL The script works on the Monthly Timeframe and has 2 main settings (explained in FEATURES ). It uses the US CPI data, reported by the Bureau of Labour Statistics. 🔹Functionality 1: The main idea is to plot the distance between the CPI line and the 5 year moving average of the CPI line. This technique in mathematics is called "deviation from the moving...
Calculates the AWR based on Dr. Coles formula. Takes the last 12 weeks (not including the current one) highs and lows, adds them and then divides by twelve, give the average weekly range. Then takes the AWR and show the playing field based on the high and low of the current weekly candle. Must be used on the weekly chart to get the data needed then manually plot...
Hello there! Publishing my first strategy. It's going to be time based strategy for Educational purpose . The script buys and sells every a few bars. By default it's 2 bars (But you can change it), so I would recommend to use it on day time frame. As a result you will get 50 Percent Profitable for almost any instrument. Net Profit is always random (Depends...
Get a clear view of US market liquidity and monitor its status at a glance to anticipate movements on risky assets. The Idea The BML aggregates and analyzes total USD market liquidity in trillions of dollars. It is used to monitor the liquidity of the USD market. When liquidity is good, all is well. If liquidity is low, the US will maneuver and sell treasury...
█ Description This Pine Script indicator implements fractional differentiation, a mathematical operation that extends the concept of differentiation to non-integer orders. Fractional differentiation is particularly significant in financial analysis, as it enables analysts to uncover underlying patterns in price series that are not evident with traditional...
This indicator shows "SSR" on the chart when SSR "Short Sale Restriction" is activated on the ticker. SSR "Short Sale Restriction" or "alternative uptick rule" is a rule introduced by the SEC that prohibits shorting on the bid when a stock has dropped more than 10% from the prior days close in the regular trading hours. It will stay activated for the day it has...
Another useful indicator is here! Kalman Filter is a quantitative tool created by Rudolf E. Kalman. In the case of trading, it can help smooth out the price data that traders observe, making it easier to identify underlying trends. The Kalman Filter is particularly useful for handling price data that is noisy and unpredictable. As an adaptive-based algorithm, it...
The Index Investing indicator simplifies decision-making for adding to Index ETF's Long-term investments. By utilizing a percentage discount methodology, it highlights potential opportunities to enhance portfolios. This straightforward tool aids in identifying favorable moments to invest based on calculated price discounts from selected reference points, making...
Range Percentage is a simple indicator utility to clearly display and dynamically alert on where a chosen series falls between two bounds, either series themselves or constant values. To set up, select between series or value for upper and lower bounds. Only the chosen options will be used by the indicator, though you may enter the non-selected option. Configure...
Hello there! My second Educational strategy, as the first one is also time based. For strategy.entry the script uses open price of the bar at specific time of the day and for strategy.close uses close price of the bar. By default time set to 02:00 and 22:00 o'clock. But I would recommend to use World Stock Markets Opening and Closing Times or Timing that works...