SAR+RSI+EMAs SignalsNOTE:
Indicator based strategies may expire and begin to work again. There are various ways to check the expiration of these strategies but I suggest equity curve trading (EC trading) as the best one.
Please check every single indicator based strategy to see if it’s still profitable or it has been expired to avoid losses.
Principles:
I personally believe every profitable indicator-based setup need 3 factors. Actually I analyze indicator-based set up in this way!
1- Trend detector: a tool that detect the “trend”.
2- Oscillators (Discount finder): a tool that detects “discounts” in the direction of the trend.
3- Stimulus: A tool that indicates the Initiation of a movement.
There may be profitable strategies that do not use all three, because other factors are strong enough to lead us to profit, but they are rare and sometimes they hide the other forgotten factor in the main two ones.
Elements:
(Since most of traders here, are familiar with these famous indicators I will not take your time to write about their uses and formula)
SAR: As a Trend detector, regarding position of close and SAR
EMA 7 and EMA 21: As trend detectors, regarding position of EMA 7 as fast “moving average” and EMA 21 as slow one. Also we need another confirmation for trend regarding EMA 7 and closing price of the signal candle.
RSI: In this strategy RSI is used both as a discount finder and a stimulus.
For RSI being over/under 50, regarding the trend, a possible discount may have been occurred. Imagine these conditions: close>EMA7, EMA7>EMA21, close>SAR and simultaneously RSI being under 50 is really a sign of powerful uptrend which it’s RSI decreasing might be a sign of corrective move, which will be following a bullish impulsive move.
The other use of RSI is to stimulate a buy signal by “crossing” over 50 or 30 (50 as balanced point of momentum and 30 as a sign of ending an oversold) or stimulate a sell signal by “crossing” under 50 or 70 (50 as balanced point of momentum and 70 as a sign of ending an overbought).
Entry point: you can use one of the followings.
1- Open of the next candle
2- EMA 7
3- Open of the signal candle
(Totally optional but “open of the next candle” is suggested by me.)
SL: Use one of the followings.
1- SAR or some pips (regarding ATR Or your experience of this trading instrument’s fluctuations in this time frame) below the SAR
2- Fixed amount (regarding ATR Or your experience of this trading instrument’s fluctuations in this time frame)
3- Use EMA21 as dynamic SL (if a candle far enough from the initiative candle close over (for sell) below ( for buy)
Again number 1 is suggested by me.
TP: Use one of the followings.
1- Use static levels or zones of support and resistance as TP.
2- Use dynamic levels for instance band of BB or moving averages (Moving the SL is possible).
3- Use fixed R to R
And I believe static zones of support and resistance work better.
Examples:
I indicate a buy signal on the chart!
Using local level as TP worked just good.
Using EMA was better in this case.
And using a riskier level or a fixed R to R is obvious in the chart!
Since in the range markets, this strategy may not work well and at the same time, TP to SL might be too small to be worth the risk, I prefer to use levels to filter range market conditions!
I convert all those circumstances to a simple buy and sell signs on the chart!
EMA21 and SAR are still visible because it is possible that traders use them for their TP and SL.
This is how it look without EMA21 and SAR!
Another screenshot of this strategy!
I also add a check box to filter signals by another trend detector. MATD created by me to help traders detect trend!
As it’s visible, some profitable signals filtered too, but using a longer-term trend detector as an additional one, alongside the double EMAs is very useful for this strategy.
The other box “use high&low instead of close for fast EMA” makes the “EMA7 and close” trend detector an easygoing one!
Almost everything is editable here!
*** I did not invent this strategy, you can find it for free on net ***
I'll change it to a "strategy" instead of an indicator if reader like to!
Komut dosyalarını "profitable" için ara
Trailing Stoploss Bottom ActivationThe Basics
The indicator is visible on the chart as circles above and below the bar.
It will trigger an alert when the current price goes below, the low of the previous candle.
Or an alert when current price goes above, the high of the previous candle.
The indicator can be used as a trailing stoploss for (DCA/ TV) bots.
The distance between the circles and candlesticks can be adjusted. If the user prefers to set an alert e.g. a few ticks lower than the candle bottom.
What Makes It Different
The user can preset the price (of the asset e.g. BTC), where it will start looking for the condition: current price is below previous candle low (when in long position). Current price is above previous candle high (when short).
Example
In the chart above MATIC/BUSD the user has drawn a blue line at 1.70. Since there is where he expects resistance.
The user has a long position (bought at the green arrow.) The user wants to start trailing at price 1.70.
The alert will only trigger when the following conditions are met:
Condition 1 - Crossed 1.70
Condition 2 - Current candle price is below previous candle low.
In the chart above price crossed above 1.70 on 26th Oct. Current candle price (at that moment) went below previous candle low on 27th Oct, indicated with a red arrow. Here the alert will go off at 1.659 BUSD (indicated in pink).
It ignores the other two lows, indicated with orange arrows. Because condition 1 is not met.
It is possible to use multiple time frames at the same time. Some time frames might not be available depending on your Tradingview subscription.
Final Words
Disclaimer: Please use it with care and at own risk. The owner of this indicator is not liable for any financial losses.
Past performance is no guarantee of future returns.
Kama Based Regressive Strategy for NIFTY : IndicatorThis is a Indicator Script for a Strategy which is backtested here
Background
I was pretty fascinated about the use of KAMA (Kaufman's Adaptive Moving Average) with non linear time-series, and my research about its realtime usage came out pretty good,
Kama if utilised correctly with a proper set of other indicators can give us non-repainting profitable strategies with a good unit(no. of trades) of backtest!
How i came up with this Strategy ?
One bright day, I and some of my friends were discussing over some of the quantitative measures, to minimise the risks in a trade by reentering and reverse entering at a very high frequency. After a lot of brain-storming that night I came to rescue some behaviours in KAMA, which made my day that day,
I came up with a strategy that would reenter and reverse enter any positions with core goal of getting into an efficient profitable frontier. I did some coding over return assessments and it showed very promising results for certain boundary and variable conditions, you just require a good trend-filter and a good boundary break condition, i coded the boundary break conditions with KAMA, and used a simple adaptive ATR for trend filtering.
Use of the above Strategy
We all know that all things cant be coded, you just have to start right, with a well backtested profitable strategy in trading.
The above strategy is a good start towards an analysis and alert generation for taking a good backtested-profitable lookup into a security, finding where it works and where it fails, final decision always lies in the hands of the trader,
I personally use such kind of strategies to generate alerts for me to take lookup into and get ready and prepared for any good trade that is coming.
Optimisation
This strategy is non-repainting and is optimised for Nifty 5 mins
With Provision For Alerts which are :
Buy Alert
Sell Alert
Buy Adder Alert
Sell Adder Alert
Trend Change Alert for Exit
How can i get Access
Right now access to the script is limited to few people and friends as it is experimental, and it is just for a demo purpose. Meanwhile if you want to have access just private message me, don't write any comment for the access since it is against the house rules of Tradingview, use comment-box only if you wanna add something!
At last Thanks to Tradingview for making such an awesome platform.
Parabolic SARThis is a redesign of the built-in Parabolic SAR indicator. I added a proper input system, an option to highlight initial points for both lines and an option to choose points width. So, customize it as you want.
Parabolic SAR was originally developed by J. Welles Wilder and described in his book "New Concepts in Technical Trading Systems" (1978). It is a trend-following indicator that can be used as a trailing stop loss.
To know which settings for PSAR are the most profitable on your instrument and timeframe you can use this tool
Profitable Parabolic SAR
JL Swing Signal - {UT}Hello all, This signal is created based on Jesse Livermore's formula, I have tried to enhance it by including other elements to make the experience better and rewarding.
1. Swing Highs and Swing Lows:
>Identifies a swing high when the current high is higher than the highs of the specified number of bars to its left and right.
>Identifies a swing low when the current low is lower than the lows of the specified number of bars to its left and right.
>Also marks the confirmed swing highs (SH) and swing lows (SL) on the chart for visual reference.
2. Breakout Confirmation:
> Finds out when the closing price crosses above the last confirmed swing high.
> Ensures that the breakout is sustained for the defined number of confirmation bars to filter out false breakouts.
>BuySignal: A buy signal is generated only when both the breakout and hold conditions are met.
3. Trend Filter:
>EMA Calculation: A 50-period EMA is used to filter trades in the direction of the existing trend. Trades are only taken in the direction of the trend.
>Ensures buy signals are only triggered if the price is above the EMA, indicating an uptrend.
4. Volume Confirmation:
Volume Moving Average: A 20-period Simple Moving Average (SMA) of volume is calculated to compare current volume levels.
5. Profit Target:
ATR-Based Profit Target: A dynamic profit target is set based on a multiple of the ATR. This helps capture profits when the market moves in the trade's favor.
6. Exit Strategy:
Stop Loss and Profit Target: The script exits the trade if the price hits the stop loss or the profit target.
Interpretaion:
Buy Signals: Displayed with a green "BUY" label.
Stop Loss and Profit Target: Plotted as orange and green lines, respectively.
Exit Signals: Displayed with a red "EXIT" label when the exit conditions are met.
Engulfing pullbackThis Indicator searching for pullback on input Moving Average with Engulfing candle
Rules for indicator :-
Buy Signal -
1) search for pullback on ma if price above ma and come back and touches ma
2)after pullback on ma searching for bullish engulfing pattern on next candle
3)if pullback on previous candle and bullish engulfing for buy signal form
Sell Signal -
1) search for pullback on ma if price below ma and come back touches ma
2)after pullback on ma searching for bearish engulfing pattern on next candle
3)if pullback on previous candle and bearish engulfing for buy signal form
Disclaimer -Traders can use this script as a starting point for further customization or as a reference for developing their own trading strategies. It's important to note that past performance is not indicative of future results, and thorough testing and validation are recommended before deploying any trading strategy.
TradingIQ - Reversal IQIntroducing "Reversal IQ" by TradingIQ
Reversal IQ is an exclusive trading algorithm developed by TradingIQ, designed to trade trend reversals in the market. By integrating artificial intelligence and IQ Technology, Reversal IQ analyzes historical and real-time price data to construct a dynamic trading system adaptable to various asset and timeframe combinations.
Philosophy of Reversal IQ
Reversal IQ integrates IQ Technology (AI) with the timeless concept of reversal trading. Markets follow trends that inevitably reverse at some point. Rather than relying on rigid settings or manual judgment to capture these reversals, Reversal IQ dynamically designs, creates, and executes reversal-based trading strategies.
Reversal IQ is designed to work straight out of the box. In fact, its simplicity requires just one user setting, making it incredibly straightforward to manage.
AI Aggressiveness is the only setting that controls how Reversal IQ works.
Traders don’t have to spend hours adjusting settings and trying to find what works best - Reversal IQ handles this on its own.
Key Features of Reversal IQ
Self-Learning Reversal Detection
Employs AI and IQ Technology to identify trend reversals in real-time.
AI-Generated Trading Signals
Provides reversal trading signals derived from self-learning algorithms.
Comprehensive Trading System
Offers clear entry and exit labels.
AI-Determined Profit Target and Stop Loss
Position exit levels are clearly defined and calculated by the AI once the trade is entered.
Performance Tracking
Records and presents trading performance data, easily accessible for user analysis.
Configurable AI Aggressiveness
Allows users to adjust the AI's aggressiveness to match their trading style and risk tolerance.
Long and Short Trading Capabilities
Supports both long and short positions to trade various market conditions.
IQ Channel
The IQ Channel represents what Reversal IQ considers a tradable long opportunity or a tradable short opportunity. The channel is dynamic and adjusts from chart to chart.
IQMA – Proprietary Moving Average
Introduces the IQ Moving Average (IQMA), designed to classify overarching market trends.
IQCandles – Trend Classification Tool
Complements IQMA with candlestick colors designed for trend identification and analysis.
How It Works
Reversal IQ operates on a straightforward heuristic: go long during an extended downside move and go short during an extended upside move.
What defines an "extended move" is determined by IQ Technology, TradingIQ's exclusive AI algorithm. For Reversal IQ, the algorithm assesses the extent to which historical high and low prices are breached. By learning from these price level violations, Reversal IQ adapts to trade future, similar violations in a recurring manner. It calculates a price area, distant from the current price, where a reversal is anticipated.
In simple terms, price peaks (tops) and troughs (bottoms) are stored for Reversal IQ to learn from. The degree to which these levels are violated by subsequent price movements is also recorded. Reversal IQ continuously evaluates this stored data, adapting to market volatility and raw price fluctuations to better capture price reversals.
What classifies as a price top or price bottom?
For Reversal IQ, price tops are considered the highest price attained before a significant downside reversal. Price bottoms are considered the lowest price attained before a significant upside reversal. The highest price achieved is continuously calculated before a significant counter trend price move renders the high price as a swing high. The lowest price achieved is continuously calculated before a significant counter trend price move renders the low price as a swing low.
The image above illustrates the IQ channel and explains the corresponding prices and levels
The blue lower line represents the Long Reversal Level, with the price highlighted in blue showing the Long Reversal Price.
The red upper line represents the Short Reversal Level, with the price highlighted in red showing the Short Reversal Price.
Limit orders are placed at both of these levels. As soon as either level is touched, a trade is immediately executed.
The image above shows a long position being entered after the Long Reversal Level was reached. The profit target and stop loss are calculated by Reversal IQ
The blue line indicates where the profit target is placed (acting as a limit order).
The red line shows where the stop loss is placed (acting as a stop loss order).
Green arrows indicate that the strategy entered a long position at the highlighted price level.
You can also hover over the trade labels to get more information about the trade—such as the entry price, profit target, and stop loss.
The image above demonstrates the profit target being hit for the trade. All profitable trades are marked by a blue arrow and blue line. Hover over the blue arrow to obtain more details about the trade exit.
The image above depicts a short position being entered after the Short Reversal Level was touched. The profit target and stop loss are calculated by the AI
The blue line indicates where the profit target is placed (acting as a limit order).
The red line shows where the stop loss is placed (acting as a stop loss order).
The image above shows the profit target being hit for the short trade. Profitable trades are indicated by a blue arrow and blue line. Hover over the blue arrow to access more information about the trade exit.
Long Entry: Green Arrow
Short Entry: Red Arrow
Profitable Trades: Blue Arrow
Losing Trades: Red Arrow
IQMA
The IQMA implements a dynamic moving average that adapts to market conditions by adjusting its smoothing factor based on its own slope. This makes it more responsive in volatile conditions (steeper slopes) and smoother in less volatile conditions.
The IQMA is not used by Reversal IQ as a trade condition; however, the IQMA can be used by traders to characterize the overarching trend and elect to trade only long positions during bullish conditions and only short positions during bearish conditions.
The IQMA is an adaptive smoothing function that applies a combination of multiple moving averages to reduce lag and noise in the data. The adaptiveness is achieved by dynamically adjusting the Volatility Factor (VF) based on the slope (derivative) of the price trend, making it more responsive to strong trends and smoother in consolidating markets.
This process effectively makes the moving average a self-adjusting filter, the IQMA attempts to track both trending and ranging market conditions by dynamically changing its sensitivity in response to price movements.
When IQMA is blue, an overarching uptrend is in place. When IQMA is red, an overarching downtrend is in place.
IQ Candles
IQ Candles are price candles color-coordinated with IQMA. IQ Candles help visualize the overarching trend and are not used by Reversal IQ to determine trade entries and trade exits.
AI Aggressiveness
Reversal IQ has only one setting that controls its functionality.
AI Aggressiveness controls the aggressiveness of the AI. This setting has three options: Sniper, Aggressive, and Very Aggressive.
Sniper Mode
In Sniper Mode, Reversal IQ will prioritize trading large deviations from established reversal levels and extracting the largest countertrend move possible from them.
Aggressive Mode
In Aggressive Mode, Reversal IQ still prioritizes quality but allows for strong, quantity-based signals. More trades will be executed in this mode with tighter stops and profit targets. Aggressive mode forces Reversal IQ to learn from narrower raw-dollar violations of historical levels.
Very Aggressive Mode
In Very Aggressive Mode, Reversal IQ still prioritizes the strongest quantity-based signals. Stop and target distances aren't inherently affected, but entries will be aggressive while prioritizing performance. Very Aggressive mode forces Reversal IQ to learn from narrower raw-dollar violations of historical levels and also forces it to embrace volatility more aggressively.
AI Direction
The AI Direction setting controls the trade direction Reversal IQ is allowed to take.
“Both” allows for both long and short trades.
“Long” allows for only long trades.
“Short” allows for only short trades.
Verifying Reversal IQ’s Effectiveness
Reversal IQ automatically tracks its performance and displays the profit factor for the long strategy and the short strategy it uses. This information can be found in a table located in the top-right corner of your chart.
The image above shows the long strategy profit factor and the short strategy profit factor for Reversal IQ.
A profit factor greater than 1 indicates a strategy profitably traded historical price data.
A profit factor less than 1 indicates a strategy unprofitably traded historical price data.
A profit factor equal to 1 indicates a strategy did not lose or gain money when trading historical price data.
Using Reversal IQ
While Reversal IQ is a full-fledged trading system with entries and exits, it was designed for the manual trader to take its trading signals and analysis indications to greater heights - offering numerous applications beyond its built-in trading system.
The hallmark feature of Reversal IQ is its sniper-like reversal signals. While exits are dynamically calculated as well, Reversal IQ simply has a knack for "sniping" price reversals.
When performing live analysis, you can use the IQ Channel to evaluate price reversal areas, whether price has extended too far in one direction, and whether price is likely to reverse soon.
Of course, in times of exuberance or panic, price may push through the reversal levels. While infrequent, it can happen to any indicator.
The deeper price moves into the bullish reversal area (blue) the better chance that price has extended too far and will reverse to the upside soon. The deeper price moves into the bearish reversal area (red) the better chance that price has extended too far and will reverse to the downside soon.
Of course, you can set alerts for all Reversal IQ entry and exit signals, effectively following along its systematic conquest of price movement.
Descriptive Backtesting Framework (DBF)As the name suggests, this is a backtesting framework made to offer full backtesting functionality to any custom indicator in a visually descriptive way.
Any trade taken will be very clear to visualize on the chart and the equity line will be updated live allowing us to use the REPLAY feature to view the strategy performing in real time.
Stops and Targets will also get draw on the chart with labels and tooltips and there will be a table on the top right corner displaying lots of descriptive metrics to measure your strategy's performance.
IF YOU DECIDE TO USE THIS FRAMEWORK, PLEASE READ **EVERYTHING** BELOW
HOW TO USE IT
Step 1 - Insert Your Strategy Indicators:
Inside this framework's code, right at the beginning, you will find a dedicated section where you can manually insert any set of indicators you desire.
Just replace the example code in there with your own strategy indicators.
Step 2 - Specify The Conditions To Take Trades:
After that, there will be another section where you need to specify your strategy's conditions to enter and exit trades.
When met, those conditions will fire the trading signals to the trading engine inside the framework.
If you don't wish to use some of the available signals, please just assign false to the signal.
DO NOT DELETE THE SIGNAL VARIABLES
Step 3 - Specify Entry/Exit Prices, Stops & Targets:
Finally you'll reach the last section where you'll be able to specify entry/exit prices as well as add stops and targets.
On most cases, it's easier and more reliable to just use the close price to enter and exit trades.
If you decide to use the open price instead, please remember to change step 2 so that trades are taken on the open price of the next candle and not the present one to avoid the look ahead bias.
Stops and targets can be set in any way you want.
Also, please don't forget to update the spread. If your broker uses commissions instead of spreads or a combination of both, you'll need to manually incorporate those costs in this step.
And that's it! That's all you have to do.
Below this section you'll now see a sign warning you about not making any changes to the code below.
From here on, the framework will take care of executing the trades and calculating the performance metrics for you and making sure all calculations are consistent.
VISUAL FEATURES:
Price candles get painted according to the current trade.
They will be blue during long trades, purple on shorts and white when no trade is on.
When the framework receives the signals to start or close a trade, it will display those signals as shapes on the upper and lower limits of the chart:
DIAMOND: represents a signal to open a trade, the trade direction is represented by the shape's color;
CROSS: means a stop loss was triggered;
FLAG: means a take profit was triggered;
CIRCLE: means an exit trade signal was fired;
Hovering the mouse over the trade labels will reveal:
Asset Quantity;
Entry/Exit Prices;
Stops & Targets;
Trade Profit;
Profit As Percentage Of Trade Volume;
**Please note that there's a limit as to how many labels can be drawn on the chart at once.**
If you which to see labels from the beginning of the chart, you'll probably need to use the replay feature.
PERFORMANCE TABLE:
The performance table displays several performance metrics to evaluate the strategy.
All the performance metrics here are calculated by the framework. It does not uses the oficial pine script strategy tester.
All metrics are calculated in real time. If using the replay feature, they will be updated up to the last played bar.
Here are the available metrics and their definition:
INITIAL EQUITY: the initial amount of money we had when the strategy started, obviously...;
CURRENT EQUITY: the amount of money we have now. If using the replay feature, it will show the current equity up to the last bar played. The number on it's right side shows how many times our equity has been multiplied from it's initial value;
TRADE COUNT: how many trades were taken;
WIN COUNT: how many of those trades were wins. The percentage at the right side is the strategy WIN RATE;
AVG GAIN PER TRADE: the average percentage gain per trade. Very small values can indicate a fragile strategy that can behave in unexpected ways under high volatility conditions;
AVG GAIN PER WIN: the average percentage gain of trades that were profitable;
AVG GAIN PER LOSS: the average percentage loss on trades that were not profitable;
EQUITY MAX DD: the maximum drawdown experienced by our equity during the entire strategy backtest;
TRADE MAX DD: the maximum drawdown experienced by our equity after one single trade;
AVG MONTHLY RETURN: the compound monthly return that our strategy was able to create during the backtested period;
AVG ANNUAL RETURN: this is the strategy's CAGR (compound annual growth rate);
ELAPSED MONTHS: number of months since the backtest started;
RISK/REWARD RATIO: shows how profitable the strategy is for the amount of risk it takes. Values above 1 are very good (and rare). This is calculated as follows: (Avg Annual Return) / mod(Equity Max DD). Where mod() is the same as math.abs();
AVAILABLE SETTINGS:
SPREAD: specify your broker's asset spread
ENABLE LONGS / SHORTS: you can keep both enable or chose to take trades in only one direction
MINIMUM BARS CLOSED: to avoid trading before indicators such as a slow moving average have had time to populate, you can manually set the number of bars to wait before allowing trades.
INITIAL EQUITY: you can specify your starting equity
EXPOSURE: is the percentage of equity you wish to risk per trade. When using stops, the strategy will automatically calculate your position size to match the exposure with the stop distance. If you are not using stops then your trade volume will be the percentage of equity specified here. 100 means you'll enter trades with all your equity and 200 means you'll use a 2x leverage.
MAX LEVERAGE ALLOWED: In some situations a short stop distance can create huge levels of leverage. If you want to limit leverage to a maximum value you can set it here.
SEVERAL PLOTTING OPTIONS: You'll be able to specify which of the framework visuals you wish to see drawn on the chart.
FRAMEWORK **LIMITATIONS**:
When stop and target are both triggered in the same candle, this framework isn't able to enter faster timeframes to check which one was triggered first, so it will take the pessimistic assumption and annul the take profit signal;
This framework doesn't support pyramiding;
This framework doesn't support both long and short positions to be active at the same time. So for example, if a short signal is received while a long trade is open, the framework will close the long trade and then open a short trade;
FINAL CONSIDERATIONS:
I've been using this framework for a good time and I find it's better to use and easier to analyze a strategy's performance then relying on the oficial pine script strategy tester. However, I CANNOT GUARANTEE IT TO BE BUG FREE.
**PLEASE PERFORM A MANUAL BACKTEST BEFORE USING ANY STRATEGY WITH REAL MONEY**
Potential Divergence Checker#### Key Features
1. Potential Divergence Signals:
Potential divergences can signal a change in price movement before it occurs. This indicator identifies potential divergences instead of waiting for full confirmation, allowing it to detect signs of divergence earlier than traditional methods. This provides more flexible entry points and can act as a broader filter for potential setups.
2. Exposing Signals for External Use:
One of its advanced features is the ability to expose signals for use in other scripts. This allows users to integrate divergence signals and related entry/exit points into custom strategies or automated systems.
3. Custom Entry/Exit Timing Based on Years and Days:
The indicator provides entry and exit signals based on years and days, which could be useful for time-specific market behavior, long-term trades, and back testing.
#### Basic Usage
This indicator can check for all types of potential divergences: bullish, hidden bullish, bearish, hidden bearish. All you need to do is choose the type you want to check for under “DIVERGENCE TYPE” in the settings. On the chart, potential bullish divergences will show up as triangles below the price candles. one the chart potential bearish divergences will show up as upside down triangles above the price candles
#### Signals for Advanced Usage
You can use this indicator as a source in other indicators or strategies using the following information:
“ PD: Bull divergence signal ” will return “1” when a divergence is present and “0” when not present
“ PD: HBull divergence(hidden bull) signal ” will return “1” when a divergence is present and “0” when not present
“ PD: Bear divergence signal ” will return “1” when a divergence is present and “0” when not present
“ PD: HBear divergence(hidden bear) signal ” will return “1” when a divergence is present and “0” when not present
“ PD: enter ” signal will return a “1” when both the days and years criteria in the “entry filter settings” are met and “0” when not met.
“ PD: exit ” signal will return a “1” when the days criteria in the “exit filter settings” are met and “0” when not met.
#### Examples of Using Signals
1. If you are testing a long strategy for Bitcoin and do not want it to run during bear market years(e.g., the second year after a US presidential election), you can enable the “year and day filter for entry,” uncheck the following years in the settings: 2010, 2014, 2018, 2022, 2026, and reference the signal below in our strategy
signal: “ PD: enter ”
2. Let’s say you have a good long strategy, but want to make it a bit more profitable, you can tell the strategy not to run on days where there is potential bearish divergence and have it only run on more profitable days using these signals and the appropriate settings in the indicator
signal: “ PD: Bear divergence signal ” will return a ‘0’ with no bearish divergence present
signal: “ PD: enter ” will return a “1” if the entry falls on a specific, more profitable day chosen in the settings
#### Disclaimer
The "Potential Divergence Checker" indicator is a tool designed to identify potential market signals. It may have bugs and not do what it should do. It is not a guarantee of future trading performance, and users should exercise caution when making trading decisions based on its outputs. Always perform your own research and consider consulting with a financial advisor before making any investment decisions. Trading involves significant risk, and past performance is not indicative of future results.
Neon Juliet - PreviewThere is no TLDR, but there is a summary at the end. I strongly encourage to read full description before trying it out. Enjoy!
Background
=========
Having successful and adamant trading systems typically consists of two (oversimplified) elements: signals and risk management system. In most zero-sum games, such as trading, signals must offer an advantage against the market, and risk management system provides a safety mechanism to allow the system to exist in the future. Let me explain.
Say, I have a solid risk management system: it is diversified, with take profit and stop loss thresholds set for low risk, on average I trade less than 3% of my assets, and there’s a loss recovery mechanism, etc. Hypothetically, it’s pristine. Now, let’s trade this portfolio against a flip of a coin, essentially a signal that provides 50% probability of things turning out in my favour. How profitable is such system? My answer: it isn’t. I might be able to sustain this system for some time, but eventually this system is going to have to loosen risk restrictions to stay ahead of the commissions and borrowing costs, resulting in overtime detrimental trend.
Conversely, if the signals provide greater than 50% confidence of things turning out in my favour, but risk management is poor, I’d expect such system to end up in a disaster soon, perhaps after a few euphoric gains. (I’d isolate a top-notch signals, say >90% confidence, in another bucket, but this idealistic system is non-achievable in my practice, so I’ll leave it be)
Neon Juliet was developed to offer an advantage against given markets. Probabilities generated by this model are statistical historical outcomes. This model developed using only price action and is unable to consume any other data or price data across instruments. In other words, it doesn’t know anything you don’t see already on a chart.
Neon J performs best on complex instruments where there’s great diversity of actors and considerable daily volume .
Methodology
==========
In principle, Neon J is based on Bayes’ Theorem. Simply put, prior knowledge of price action ( aka patterns) provides basis for probability of future price action development (ex. long or short trend).
The training process is implemented outside of this script mainly due to Pine Script limitations. This script, however, contains inference portion of the model.
As input for training, daily candle data is used. From this data, feature engineering step of the training develops features, like price average divergence/convergence (think MACD ), price strength (think RSI , ADX ); multiple periods used to diversify long and short patterns. This is done to develop a “state” that is reflective of recent price development. Ex. what we’d call a trend is just a strong and consistent upward price action, but we’d need to look at most recent N candles and their pattern to know that.
Once features are developed, I train a model using Reinforcement Learning technique. Simply put, this technique allows an agent to interact with a trading simulator and take actions (ex. go long, go short, etc.). After many iterations, the agent learns conditions (patterns) that lead to positive outcomes and those that lead to negative outcomes. This learning is quantitative, which means there’s a way to tell which probabilities are strong and which are weak. These probabilities are indicated by this script.
Trained Neon J models are instruments-specific. Meaning, that model for DJI is not compatible with SP500 or any other instrument. Experimentally, I proved that such approach over-performs generalizable models (those that are trained on data from multiple instruments)
Neon J currently only support daily time frame. The limitation is purely practical to reduce the development load and model size.
Results
======
Tests show 60%-70% success rate (on average, some instruments are worse than that, some better) of individual signal when threshold is set to 0.3 (roughly equivalent to 65% probability). This is calculated with Pine Script Strategy with the following entry/exit rules:
Entry when individual signal (a dot) is above 0.3 (long) or below -0.3 (short)
Exit when 14-period smooth signal (a column) is above 0.0 (short exit) or below 0.0 (long exit)
No stop loss or take profit levels.
Pyramiding is set to 100 (to allow unrestricted action of all signals)
All trades are closed on last tested bar (to conclude all signals in-flight)
Percent Profitable is what we take as success rate in the context of this assessment. This number represents how many signals were profitable vs all signals actioned.
It is also worth noting that this assessment was performed on a time period previously unseen by the model. Simply put, we only train a model with data up until date X, then we test starting from date X onward. This ensures that the assessment is unbiased by the model already “knowing” the future. In practice, this gives confidence that future (unknown) market dynamics is going to be representative of our test results.
Be aware, the above “strategy” is not my recommended usage of this signal, it is simply an assessment technique that is meant to be as simple and unconstrained as possible.
How to use this script
================
The script calculates a probability. A term probability here is used in a loose form and means “a numeric value in roughly -1 to 1 space that represents the likelyhood of bullish or bearish price action”. Keep in mind that probability values can go over 1.0 or below -1.0. This is due to the fact that these value are normalized to -1/1 space using 95-percentile (this detail is largely unimportant for usability’s sake).
Indications
--------------
Dots (circles) indicate individual probability value on any given bar. Indicated value on a given bar indicates the probability of future price action. High (positive) values indicate high probability of long action in the future. Low (negative) values indicate high probability of short action in the future. You should interpret future as a gradient (a trend developing slowly over time) instead of being isolated to what’s immediately follows (ex. next bar)
Columns (histogram) provided as convenient view of smoothed probabilities of last N bars. This is controlled by the Smoothing parameter and defaults to 14.
Parameters
---------------
Model parameter is the backbone of this script. It is a required parameter and it is unique for each instrument. Example models provided at the end (see below). This parameter is a long 10000+ character representation of a model.
The script has two additional parameters for configuring interpretation: Threshold and Smoothing.
Threshold controls the level at which values change color (ex. above 0.3, turn neon blue, and below -0.3 turn neon purple).
Smoothing parameter provides a way to smooth out individual probabilities into a exponential moving average with the periods provided. This average is indicated using columns on the indicator.
Model expiration
----------------------
Models are valid for 1 month after training. This is done by design to prevent model deterioration. A month is proven to be a maximum period of time to hold model performance steady. After that, deterioration is likely to occur. Optimal time for model lifetime is 10 days (this is what I use for live trading), and of course most optimal (but unpractical for now) is to re-train daily.
Validity indicated with blue-tinted indicator background, while red-tinted background indicates expired period.
Preview
======
This script is released as a public script for anyone to try. My motives for this release are two-fold:
To subject the model to a variety of conditions, including traders with different experiences trading different instruments (subject to specific models offered of course). Essentially, my own testing is not enough to grasp a full breadths of scenarios. I’d like to harden it and understand where it is strong and where it might fall short (pun intended).
Get an idea on how Neon J might be useful when making trading decision. I tried to make the representation of the signals unconstrained and unopinionated, so there’s room to explore and experiment. I found that Neon J can be packaged in a number of different ways.
At this moment the script is closed-source. I might consider open-sourcing this script in future depending on how much feedback I get from this submission and whether it’d be deemed useful to others.
Summary
=======
Neon J is a set of probabilistic models for predicting future price action with ~65% accuracy. It indicates individual signals (circles) for probability of price action in a foreseeable future, while smoothed signals (columns) are provided for a more dynamic view of probable price action. Blue circle - strong long probability; Purple circle - strong short probability. Blue column - strong long trend ahead or in-progress; Purple column - strong short trend ahead or in-progress.
To use it, copy models below and provide them an input to “model” parameter when applying to a chart. Models are instrument-specific. Only daily (D) charts should be used.
The script is provided for evaluation purposes.
Models!
======
At last, here are the models (a piece of text you need to input in script parameters for each instrument)
TVC:DJI :
DJI|20121220|20221220|0.597,-0.032,0.0,-0.121,0.0,0.866,-0.046,0.0,-0.091,0.0|1.492,0.1,0.0,-0.162,0.0,-0.669,-0.037,0.0,-0.042,0.0|0.07,0.374,0.0,0.305,0.0,0.085,0.488,0.0,0.26,0.0|0.249,-0.257,0.0,0.529,0.0,-0.018,-0.233,0.0,0.502,0.0|0,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,30,10,10,10,10,10,10,30,30,10,10,10,10,60,10,10,10,20,10,40,10,10,10,80,10,10,60,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,20,20,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,20,10,10,10,20,10,10,10,10,20,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,30,10,10,10,10,20,50,10,10,10,10,10,10,30,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,20,30,10,10,10,10,10,50,10,10,10,10,60,10,10,10,10,10,40,10,10,10,10,10,20,30,10,10,10,10,60,10,10,10,10,10,20,10,10,10,10,10,10,10,40,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,40,10,10,10,10,10,10,40,10,10,10,10,10,50,10,10,10,10,10,50,10,10,10,10,50,10,10,10,10,10,40,10,10,10,10,10,10,40,10,10,10,10,10,10,40,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,20,20,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,40,10,10,10,10,10,10,40,10,10,10,10,10,10,30,10,10,10,10,10,10,40,10,10,10,10,10,40,10,10,10,10,10,10,10,30,10,10,10,10,10,10,20,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,20,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,20,20,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,30,10,10,10,10,10,10,40,10,10,10,10,10,20,20,10,10,10,10,10,10,40,10,10,10,10,10,10,10,10,30,10,10,10,10,10,30,20,10,10,10,10,10,20,20,10,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,30,10,10,10,10,10,10,40,10,10,10,10,10,10,40,10,10,10,10,10,50,10,10,10,10,20,40,10,10,10,70,10,10,10,10,60,10,10,10,10,10,10,40,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,30,10,10,10,10,10,10,40,10,10,10,10,10,10,40,10,10,10,10,10,50,10,10,10,10,70,10,10,10|-645,-188,-7,-97,-4,29,-18,90,60,-7,-30,117,-226,-82,-49,77,-245,53,78,221,-72,280,245,400,683,268,-74,-15,-106,-102,-3,251,302,536,47,3,-6,-179,-56,101,-62,172,176,98,-15,-71,-18,200,61,-249,-30,-38,1,94,-2,-9,47,79,-35,-15,34,-30,76,120,39,96,-47,-11,-61,-21,124,-704,0,-248,112,-193,143,-27,-14,133,170,-20,-17,-2,-120,61,-98,-32,-2,79,-2,109,-35,-16,132,-44,-63,-168,205,-28,919,235,-34,-53,-23,-243,-68,-26,-35,-54,60,-37,28,-91,-3,-21,-47,79,-127,229,61,59,-49,-139,-63,-43,91,201,-19,-80,-27,120,-122,-141,-100,-32,-25,-98,-27,50,-2,-65,-138,-7,-36,-9,53,-36,-36,-64,-11,216,-5,-664,-19,74,82,-83,-3,-66,21,386,-454,-1002,-282,-7,-52,-30,-9,-16,-148,-131,112,-484,-96,97,93,-13,-162,-49,38,31,-5,-199,-22,205,153,-29,14,-41,-222,-225,-145,107,70,-3,-8,-7,-20,-247,37,96,268,362,-95,706,-69,60,70,120,-34,-65,-152,-69,-7,69,-76,71,-5,384,109,-102,-484,-3,34,60,-20,380,244,678,292,-48,-2,-154,-17,-62,105,486,597,212,-26,-21,-310,-29,-22,-90,285,-204,-92,-290,-6,-516,-42,-16,127,-47,-7,-72,-247,76,-47,-13,43,-26,43,89,-38,30,-21,-106,-78,113,-19,-13,-8,-12,-12,362,247,-4,50,76,64,-14,-52,-16,-93,-172,53,-1,32,99,22,-75,-4,-9,31,70,116,-54,-61,-3,-55,-19,-15,176,143,-11,134,144,-11,-28,-47,-29,-136,-75,99,64,-9,-2,-24,-43,30,-161,-179,82,175,129,115,-71,-396,-202,101,-9,139,-6,-31,-312,-111,2,0,-234,-21,-52,-31,-12,-26,-37,-144,-23,68,23,-16,149,60,-64,10,-7,-8,46,210,393,-5,96,-56,89,48,475,176,20,-10,-31,-29,34,76,41,178,38,-32,-94,-33,76,-5,91,-15,123,72,-46,-13,-11,0,-37,-244,-161,155,-8,-3,165,23,77,16,-117,35,-74,-5,-107,-286,-24,-263,-14,-37,-5,-196,-290,-576,-188,41,-20,-98,-34,-45,-45,-242,40,60,-7,-10,-17,-43,73,48,-25,-8,-40,-27,-2,-5,42,73,-6,-23,8,-16,63,167,21,-99,-47,-119,-36,-59,192,158,115,123,54,-28,-1,-90,-169,-71,-72,114,156,-141,155,64,42,-88,69,-75,76,94,-4,65,102,152,-9,10,-17,-192,67,-10,-343,-90,-43,-106,12,-9,-79,-10,-73,-461,-509,-75,99,-57,0,-27,80,-156,-198,-642,-363,33,47,-28,-40,-43,-8,9,-27,-67,41,26,0,6,-49,-29,-60,32,70,34,-2,-9,-40,-240,-152,21,189,49,67,12,-12,-2,16,31,200,193,211,-150,-84,-45,58,75,44,260,128,105,-9,-11,-1,82,-94,184,-53,266,326,-55,-209,-9,54,85,308,-14,60,420,160,-39,-81,-17,-10,77,108,-28,257,-104,-53,-59,-128,-5,-13,8,119,-20,-130,-49,-9,-3,-23,-46,150,194,263,-214,-12,72,-6,-22,25,-10,290,-41,-21,-18,-1,-17,-42,-14,-21,0,-4,-23,-1,-1,-13,172,-9,224,86,-9,-2,-22,176,-6,33,186,-61,-187,-46,-33,94,172,0,16,-12,-37,59,103,118,194,1000,44,40,49,81,82,89,142,-34,-26,-2,-15,-19,0,271,-56,-45,-21,-96,-146,-5,-54,141,-11,-320,58,-23,-43,-14,-49,142,127,120,-285,-187,-102,-72,-11,-55,-25,44,52,-43,-13,20,-41,-23,-88,-25,-4,-23,11,-179,-9,96,-84,215,93,-5,-49,148,-2,-58,-14,24,-6,-33,-6,103,9,0,-61,-1,29,113,98,-97,-19,-52,87,-39,-146,-70,-72,-119,-844,-184,-45,-27,-96,-155,93,-56,-41,-20,-43,-63,-142,-89,263,66,21,-21,-32,-70,-70,-263,20,-99,-11,-32,-50,-122,-186,-159,-137,136,-77,-14,-814,-23,-22,-170,-137,-42,-36,-64,75,-123,-100,-53,68,133,124,-77,211,217,522|0,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,30,10,10,10,10,10,10,30,20,10,10,10,10,10,60,10,10,10,20,10,40,10,10,10,30,50,10,10,50,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,20,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,20,10,10,10,10,10,10,10,10,20,10,10,10,10,20,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,30,10,10,10,10,20,40,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,20,10,20,10,10,10,10,10,10,50,10,10,10,10,60,10,10,10,10,10,40,10,10,10,10,10,20,10,20,10,10,10,10,30,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,40,10,10,10,10,10,10,40,10,10,10,10,10,10,40,10,10,10,10,10,50,10,10,10,10,50,10,10,10,10,10,40,10,10,10,10,10,10,10,30,10,10,10,10,10,10,40,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,20,20,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,40,10,10,10,10,10,10,40,10,10,10,10,10,40,10,10,10,10,10,10,30,10,10,10,10,10,10,40,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,40,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,20,10,10,10,10,10,10,40,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,20,20,10,10,10,10,10,20,20,10,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,30,10,10,10,10,10,10,40,10,10,10,10,10,10,40,10,10,10,10,10,50,10,10,10,10,10,10,40,10,10,10,10,60,10,10,10,10,60,10,10,10,10,10,10,40,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,30,10,10,10,10,10,10,40,10,10,10,10,10,10,40,10,10,10,10,10,50,10,10,10,10,70,10,10,10|-73,-90,70,38,76,12,-269,-89,-47,-77,-43,-161,114,-83,-48,36,-18,-11,-2,-39,-239,-140,-40,-341,-106,-78,83,92,62,-34,-231,-381,-311,-15,-178,-49,-29,-29,-73,-44,-271,-2,-49,-102,-126,-65,-45,-51,-71,-75,-21,52,-19,-29,-24,-131,38,-79,-53,-8,271,43,-24,-60,-8,-8,-5,-15,8,21,-127,72,-16,-40,-43,-70,64,232,-28,172,-22,-27,-8,-100,-134,99,133,61,67,-37,-1,-7,-55,-75,108,-112,7,-70,469,-62,-12,116,-54,-259,-49,-150,-146,-58,-3,-5,-66,-45,-102,-17,-22,-71,-96,-27,0,-46,30,-22,-130,-233,-89,-189,-14,111,0,-9,12,-235,-178,-6,-9,27,-31,-70,-7,-7,-13,-71,27,-1,-14,-24,-101,-38,18,50,-79,-3,-191,-47,-2,-12,-12,112,24,-5,-93,-295,-80,0,-8,-1,115,112,200,235,114,67,-13,-37,-130,-96,85,71,232,141,-265,-137,-57,-8,81,391,-37,-68,-76,57,119,-240,-45,-102,53,40,-23,61,-71,-156,-26,-19,81,-123,-83,-59,104,0,-96,-7,-17,-34,-18,-11,0,-98,-52,-84,-8,-53,-11,48,-4,-34,-16,-143,-7,-31,-77,-44,-34,-15,-64,-65,-21,-152,-240,-26,-172,-50,-170,-32,-33,-1,-25,-15,-15,-91,-87,-231,-19,-34,-70,-59,55,17,-24,10,-29,-41,-2,-56,27,-134,-54,-41,-30,46,-3,-363,-20,-55,65,16,38,9,-79,-9,51,83,-97,-36,62,-5,-28,-73,-12,0,62,-198,-4,-20,-4,-17,-128,-34,68,-31,-247,-239,-21,-41,-93,-24,14,-81,-238,-165,-44,-40,-102,2,-99,661,-188,0,0,-9,-27,-20,27,33,639,-2,-20,-55,-99,-45,-31,-423,-152,-66,-30,-3,-86,-36,104,-45,-34,104,-227,-191,-80,-65,-56,-86,143,-26,-21,-80,-47,-23,73,165,-93,-7,-43,-9,70,123,-50,-5,-1,57,63,-36,-17,-62,-39,-14,-34,-5,-77,-37,-98,-45,-59,-49,4,-159,-74,-29,-16,-244,-486,-245,8,-13,-1,-34,-58,-182,-62,-695,372,44,-46,-5,-11,-156,-178,-64,-2,-67,-37,-24,-61,-57,-30,69,-27,-153,7,-19,-19,-78,-52,-31,231,-54,-18,-28,-40,51,117,117,-14,-84,-23,-38,134,197,-10,-51,-2,-71,-49,26,268,-15,-83,-49,-35,-29,-94,29,-39,-140,-167,-68,-1,-31,-120,0,74,-59,-116,-134,-37,-136,-154,-136,-303,6,44,-29,-32,-48,-7,-115,-667,-500,-242,0,-1,-30,-3,-21,119,-115,-565,-211,115,-9,-67,-84,-13,-68,-93,-80,-106,65,-8,-89,-417,-29,-27,-61,-27,-18,64,66,115,22,-57,-55,-1,-10,-18,-80,112,85,47,-28,-3,-75,-20,-69,-54,252,90,-63,-35,-12,-4,-15,-1,11,68,-23,-16,-95,-3,-3,-25,31,7,-101,-104,-63,-45,-91,-6,81,-6,-110,-70,49,-13,-85,-57,-179,-66,-92,-284,-152,-249,-80,45,-75,-158,-50,-115,-9,-22,-322,-124,-57,-64,-1,-100,-58,-104,-67,-106,-224,-45,287,-21,-314,-18,-50,-60,-19,-50,-74,-32,339,-8,-114,-164,-31,-16,-6,-37,-26,82,40,40,-13,-30,-75,-54,-124,-2,-37,-10,19,-67,-62,-307,-130,-153,44,-18,-15,-2,-5,-31,10,-11,-78,50,74,-1,-15,-35,-9,-29,-31,91,58,-45,-48,-14,-8,-123,-205,-7,-3,-15,-63,-17,-26,-48,-106,-153,-166,-7,-23,-116,-53,-50,-23,-6,-10,-22,3,-142,-251,-196,-80,-30,-21,75,-36,-6,-188,-28,-2,8,-6,-72,-40,-5,-49,-28,-4,-101,-12,49,33,-19,-96,-169,-58,-293,-201,-69,-25,-82,-17,0,-10,-149,-134,-41,-87,-12,-29,-10,-34,-30,35,59,-122,-5,9,24,0,-13,47,81,-47,104,-7,-17,-76,-34,-17,-49,-69,-47,-20,-26,-46,-49,-248,-35,51,-29,-15,-14,-9,-285,-46,-1,-51,-56,-45,-139,-17,-45,-22,-16,-35,-75,-5,-13,0,-5,-18,-13,2,-7,-10,89,-1,-3,-148,-16,-51,-5,-9,-10,33,37,-44,-125,-1,-7,-48,-20,-10,-1,61,65,100,43,-15,-6,-68,-9,-92,-47,-38,-47,-17,215,500,1000,45,-41,-45,-26,-91,73,24,-28,-27,-65,-102,-27,-96,-142,-34
VANTAGE:SP500 :
SP500|20121220|20221220|0.573,-0.033,0.0,-0.041,0.0,0.846,-0.045,0.0,-0.026,0.0|1.45,0.109,0.0,-0.119,0.0,-0.626,-0.007,0.0,-0.08,0.0|-0.06,0.475,0.0,0.142,0.0,0.089,0.612,0.0,0.13,0.0|0.214,-0.127,0.0,0.619,0.0,-0.057,-0.084,0.0,0.556,0.0|0,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,40,10,10,10,10,10,70,10,10,10,10,60,10,10,10,20,50,10,10,10,70,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,40,10,10,10,10,10,10,40,10,10,10,10,10,10,30,10,10,10,10,30,20,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,20,40,10,10,10,20,20,20,10,10,10,10,20,30,10,10,10,10,10,10,10,10,10,20,10,10,10,10,20,10,10,20,10,10,10,10,20,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,30,20,10,10,10,10,10,10,50,10,10,10,10,60,10,10,10,10,60,10,10,10,10,50,10,10,10,10,30,10,10,10,10,10,10,10,30,10,10,10,10,10,10,50,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,50,10,10,10,10,10,10,40,10,10,10,10,10,10,30,10,10,10,10,10,10,40,10,10,10,10,10,40,10,10,10,10,10,10,30,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,30,10,10,10,10,10,10,40,10,10,10,10,10,10,30,10,10,10,10,10,10,10,30,10,10,10,10,10,10,40,10,10,10,10,10,10,30,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,20,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,40,10,10,10,10,10,40,10,10,10,10,10,10,30,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,40,10,10,10,10,10,40,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,20,20,10,10,10,10,10,10,10,20,10,10,10,10,10,20,30,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,40,10,10,10,10,10,10,40,10,10,10,10,10,60,10,10,10,10,10,10,30,10,10,10,10,10,50,10,10,10,10,10,10,40,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,30,10,10,10,10,10,50,10,10,10,10,10,50,10,10,10,10,70,20,10,10|-94,-209,311,137,89,-128,-228,-15,79,-81,-631,743,252,116,128,-196,-100,-101,-6,207,237,724,345,190,118,-290,-17,-163,-33,-37,140,425,736,-17,-22,-61,-5,-20,85,150,-15,102,274,179,4,-58,-30,-161,-71,-17,-31,-44,-107,53,-3,-19,7,93,-153,-32,-3,-46,-16,-9,71,-131,396,-13,34,-83,-15,-11,-17,72,-457,-143,-67,63,-207,-155,-223,-48,-762,266,-66,339,503,-54,-303,-173,-45,-58,-5,-52,624,1000,496,85,-173,-51,-58,-71,46,92,127,-32,-70,-1,-45,-63,-84,-102,-79,-117,-1,-114,-39,52,-12,-18,-13,-2,192,153,190,-120,-147,-13,-75,-9,-54,-31,-7,-128,-39,-97,60,-29,-24,-23,-173,-133,-241,-118,22,-2,1,-2,-48,-12,-23,-89,-23,-37,-33,-10,-5,-60,-28,-80,-113,-128,184,-170,-93,-50,-7,-43,-52,-87,-143,37,-100,-39,-239,-24,-154,82,-27,100,766,-51,-23,168,-29,138,-35,-50,42,71,-23,38,-23,57,131,-16,-35,-12,-54,-15,181,128,127,131,-19,-47,-108,-43,84,-152,-5,-7,-10,-8,-20,59,53,-269,-44,-7,-67,-26,-13,-10,-116,-21,-49,87,-19,-8,-31,-35,-38,-13,170,185,-54,-4,-56,-85,-108,-147,-19,-15,76,-9,-59,-100,-36,-39,-31,-18,141,66,-85,-27,44,123,123,-13,-8,36,-13,-39,-13,8,189,82,-17,-33,-5,146,-100,-29,64,-20,-53,-23,-97,-2,-77,-89,-5,-21,-132,-31,-15,-47,-1,-8,32,-13,-39,-42,-27,-43,12,-97,-35,-29,-18,-32,152,41,-13,-39,-14,-13,-36,-10,-37,-25,49,109,97,118,85,-56,-59,-74,-21,-167,-145,-12,-5,-29,-63,-107,202,-15,-33,-46,-63,-89,-97,-56,17,-25,-74,-2,-101,-210,-127,-96,-15,-59,-105,-24,-106,-37,-52,-2,-25,-27,-47,-5,14,-8,51,-6,-32,-5,23,-57,-32,-17,39,-4,-20,-28,-42,-23,101,-8,-11,-30,-25,-165,-113,-53,-82,-4,-52,-3,-5,21,-22,-333,-3,94,25,-33,-14,-83,26,-26,-41,-43,-36,63,9,-343,-304,-231,-15,-54,44,-127,-182,139,-83,25,-30,-14,-36,-32,-84,-138,23,-49,-13,-17,-139,-168,-146,-2,-46,-54,-34,-17,-40,-132,-149,-79,-40,-116,-65,-50,-124,-69,37,-21,-29,-6,-48,-232,-84,-59,-3,-6,-13,-11,1,-6,-133,-252,-12,-44,-114,-25,-120,-24,128,-27,-166,-36,-47,-65,-43,-15,-3,-88,-170,-209,-58,-185,-101,-120,-106,65,-21,-40,-12,87,-104,-31,-333,-272,-177,43,-75,-89,-41,-65,-52,-29,3,-10,-44,-18,-11,-7,-46,-37,-7,-5,27,-19,-8,-55,85,54,-6,-141,19,-19,-19,-6,-55,1,-36,-148,-22,-66,-107,-13,-197,-36,39,117,94,31,-20,94,238,48,-18,-41,-9,-1,-24,-30,9,-6,232,-16,-16,79,-27,13,-15,-15,194,223,344,212,-33,13,49,136,-5,-7,227,-82,-42,155,65,86,-24,71,-38,-38,-10,-209,17,0,-41,-19,-87,-36,-18,-108,69,-38,-11,-25,-31,70,-10,135,62,-133,85,-1,-10,-14,-97,82,-5,-16,-81,-390,-83,-1,-35,-27,-115,-92,-4,130,145,-337,0,-1,-59,-32,-120,169,14,-34,25,-14,-30,7,-24,59,-5,35,-8,-11,-11,155,179,100,80,17,-6,-5,-46,-1,566,396,41,-13,-63,-10,53,60,253,820,325,202,-120,-23,18,-136,-42,6,-85,-26,-54,-60,0,14,-26,144,-24,-84,-12,-37,-37,25,134,157,-3,181,-23,-64,34,-10,53,-122,126,173,277,-323,-76,11,-8,-31,0,-5,156,-40,202,47,-33,22,-88,-127,-89,-171,-4,186,213,-24,-1,0,-17,-34,80,155,-53,-51,-113,-57,-36,-2,73,24,65,36,-21,191,-12,-42,-13,-16,-18,-13,90,541,125,-39,-1,-398,-43,-65,-496,-1,-11,-35,-21,-4,-68,-56,-78,66,-19,-51,51,39,330,-34,-173,11,18,-7,-24,-51,400,-19,173,-54,-208,-48,-29,-184,-34,-234,-26,178,178,-2,-63,-54,-71,-58,-91,-154,69,-40,-59,-136,-55,-122,-3,-18,-27,-203,-33,15,84,-10,-13,82,-93,317,0,215,80,37|0,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,50,10,10,10,10,10,60,10,10,10,10,60,10,10,10,20,50,10,10,10,70,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,40,10,10,10,10,10,10,40,10,10,10,20,10,30,10,10,10,10,30,20,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,20,10,30,10,10,10,20,50,10,10,10,20,10,30,10,10,10,10,10,10,10,30,10,10,10,10,20,10,10,20,10,10,10,30,10,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,30,20,10,10,10,10,10,10,50,10,10,10,10,60,10,10,10,10,60,10,10,10,10,50,10,10,10,10,30,10,10,10,10,10,10,10,30,10,10,10,10,10,10,40,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,40,10,10,10,10,10,10,40,10,10,10,10,10,10,30,10,10,10,10,10,10,40,10,10,10,10,10,40,10,10,10,10,10,10,30,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,30,10,10,10,10,10,10,40,10,10,10,10,10,10,30,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,40,10,10,10,10,10,10,30,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,20,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,20,10,10,10,10,10,10,40,10,10,10,10,20,30,10,10,10,10,10,10,40,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,30,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,50,10,10,10,10,10,40,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,20,20,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,40,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,50,10,10,10,10,10,10,40,10,10,10,10,10,60,10,10,10,10,10,10,30,10,10,10,10,10,50,10,10,10,10,10,50,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,40,10,10,10,10,10,50,10,10,10,10,10,50,10,10,10,10,10,60,20,10,10|-506,-65,-264,-239,-206,-1,45,-58,-192,-202,-134,-214,-304,-117,-129,-70,-148,-46,-2,-77,-253,-532,-138,-73,-6,-23,-6,-50,-94,-286,-213,-271,-190,107,150,-25,-46,-49,-121,-52,-166,-98,-54,-58,-100,-18,206,265,-58,-6,-137,163,-26,-152,-24,-52,3,-80,-71,-4,-20,-51,-42,-74,-111,93,-81,70,47,-51,-5,-93,-74,-139,-119,-11,-51,-17,438,252,-95,-52,-194,-175,-78,-285,-129,-310,-82,-75,-199,-36,-142,-186,-328,-371,-157,-57,175,0,-4,-142,-150,-36,-175,-22,-101,66,69,298,-39,-18,-37,100,-38,226,-50,-74,0,-58,-86,-80,-1,-104,153,62,-67,0,81,212,4,134,74,-121,-100,83,-2,94,-43,-36,-8,-27,2,-56,-8,-85,-35,-2,23,108,-15,452,-28,-15,-15,-60,-64,180,-98,64,-26,719,19,-91,-67,-149,-14,206,131,-201,276,319,185,-46,-176,-259,-57,-213,-149,-57,-96,-79,133,123,-13,-79,-164,-38,-68,69,-10,-19,-17,93,-20,-9,-61,-2,-19,-63,-164,-182,-16,-35,-115,-52,-4,-6,-28,-19,-162,-58,140,-30,26,49,-47,-78,-2,343,274,62,-61,-190,-1,-105,-98,-112,246,-98,-103,-165,-282,-5,-2,-142,-133,-41,-48,-23,-84,-250,-22,114,286,-22,-217,-149,-47,-135,-255,-26,-42,246,267,-130,-1,-32,-14,-50,-322,-62,-20,-135,-38,-51,-46,86,-23,-110,-155,-49,-9,14,-22,-23,135,-96,-51,-132,87,175,139,-14,-51,-53,-38,132,149,47,-97,-86,-65,-26,-70,-48,-11,-76,35,-149,-343,-163,-101,35,-4,-32,-3,-229,-102,-353,-94,-59,-157,-86,-22,-129,190,137,-79,-41,-136,-26,-10,-97,107,1,-56,-37,-35,-23,84,78,0,-9,75,-40,-41,-53,-23,80,88,-75,-114,-10,80,-21,-151,-67,-29,-87,-71,-42,-12,-67,-93,-47,-165,-98,-8,219,216,109,-9,-48,-161,-55,-83,9,-15,220,142,119,-24,-76,-97,-3,-57,-6,39,-7,-118,-186,-60,-10,-82,-50,-204,-47,-185,40,20,-83,-54,-9,55,-177,-18,289,568,228,15,-119,-172,-90,-35,-70,16,-51,-116,-43,-109,-32,-20,-14,-13,-142,-26,-36,-43,-81,-91,98,-27,155,130,-6,-26,-52,147,128,0,-74,-20,-149,-41,303,508,-21,-45,66,-130,-53,-69,657,105,104,-85,-95,-27,-8,-125,-268,312,-72,223,-78,-11,-79,-208,-147,-61,-505,-5,-4,-1,-10,-175,-259,-142,-178,-11,-102,72,83,306,-1,-5,-9,-72,-57,-5,-13,-119,239,776,567,46,-5,-53,-79,-25,-71,-24,93,-35,-10,-29,-160,-36,13,195,-34,80,-41,-2,-86,-116,-49,-1,-98,-52,-18,-36,-82,92,25,-3,158,-47,-56,-16,-61,118,450,-44,-132,-21,-28,-212,-202,-66,-25,-116,-228,-2,-140,-394,-10,-230,-120,32,-134,-140,-199,-99,-29,-437,-68,-32,-89,-134,-3,-28,-38,-3,-3,-521,-50,-66,-66,-24,-63,-74,-110,-80,-23,-4,-7,-21,-7,-73,-138,-29,-240,-109,-69,-77,-91,-10,-6,-26,-134,-82,-79,-92,-52,-112,69,-74,-89,-40,-8,-164,-271,-192,-45,110,246,-33,-83,-2,-59,-75,-9,-157,671,-43,-2,-9,39,-164,-85,-59,-84,-72,-83,-195,-180,36,-42,-37,-73,-58,-214,-78,-93,146,-27,-49,-5,-97,-31,-5,109,-111,-28,-36,-41,-90,-45,-123,-279,-338,-11,-150,-5,-72,-44,-7,-99,12,-279,-61,70,-173,-12,-45,-30,-19,-168,14,-231,-149,-58,-36,-84,-250,-160,-111,-28,-38,-129,-27,-116,-26,-409,-240,-89,-135,-64,-87,-95,-9,-65,-3,-7,-97,-203,-165,-52,-59,-41,-18,-7,-56,254,-44,-71,-40,207,-9,-41,-7,-85,-243,-18,-13,-67,-17,-41,-57,-1,-20,-20,-105,-120,-51,-29,-117,-72,-30,-44,-52,-33,-29,-172,-5,-28,-114,176,-14,-24,-137,-3,-157,18,-4,-194,-55,-159,-100,-195,-148,-60,-221,-46,-65,-5,-96,-10,-23,-17,-264,-79,-72,-70,-9,-45,-19,-15,196,262,-6,-207,17,-29,210,209,816,1000,84,-169,-112,-34,-3,-207,-92,-29,-61,0,209,-223,-91,-13,-5,-154,-124,-200,-64,22,-59,-58,-37
BINANCE:BTCUSD
BTCUSD|20121220|20221220|0.475,0.011,0.0,-0.003,0.0,0.881,0.013,0.0,-0.001,0.0|1.25,0.06,0.0,-0.022,0.0,-0.475,0.024,0.0,0.01,0.0|-0.077,0.46,0.0,0.231,0.0,0.015,0.566,0.0,0.169,0.0|0.034,-0.184,0.0,0.618,0.0,-0.004,-0.174,0.0,0.73,0.0|0,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,20,10,10,10,90,50,120,20,10,30,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,20,10,20,10,10,10,10,10,10,10,10,10,40,20,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,30,20,10,10,10,10,10,40,10,10,10,10,10,10,20,20,10,10,20,10,10,10,10,10,50,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,40,10,10,20,10,60,10,10,10,10,10,10,10,30,10,10,20,30,10,10,20,30,10,20,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,50,10,10,10,10,10,50,10,20,10,10,60,10,10,10,10,20,10,20,10,10,10,10,10,20,10,10,20,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,50,10,10,30,60,10,20,10,10,10,30,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,20,10,10,10,20,10,10,10,10,40,10,10,10,10,10,10,30,10,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,20,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,20,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,30,10,10,10,10,10,10,30,10,10,10,10,10,10,10,20,10,10,10,10,10,20,10,20,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,30,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,20,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10|48,-117,85,77,-23,-43,-130,-18,-95,-108,-79,-29,-6,-14,-71,-12,-20,-101,-109,-202,-33,39,-52,-66,-249,-74,-47,-266,-10,-27,-9,-1,-15,-17,-4,-63,-115,-37,36,-4,-10,-32,-29,-15,-62,-219,-132,-6,-9,-76,-35,-47,-82,-36,-82,-117,-33,-1,-6,23,108,-52,-84,-3,-285,18,186,378,124,-135,79,-172,21,299,-34,-16,-3,-53,-209,-10,-14,85,-4,-105,-14,-101,-159,-319,-67,69,45,-18,-63,-202,-30,-142,-504,-125,14,74,-2,-6,-13,1,-8,-187,-8,-9,-5,-66,-102,12,-49,77,-58,-238,-41,-7,0,-117,-6,-53,-60,-32,-81,-414,-426,-139,-11,-139,-48,38,-7,170,-515,-442,-24,89,134,-21,-11,-155,102,-121,13,70,-10,-138,-62,-148,-323,-72,-4,-67,384,-183,-75,-18,51,52,0,11,97,1000,184,-6,18,-93,69,-25,42,267,-76,-45,-226,-81,57,20,22,-50,8,-113,-11,-6,79,-11,28,27,87,-14,5,23,-2,3,-2,145,84,66,-32,-42,52,-60,36,-18,-34,-107,63,-198,-551,-189,-3,227,28,-127,-4,-41,127,-176,-1,-95,35,27,152,42,42,43,41,-73,13,-108,-140,-24,60,40,-5,-20,-79,-230,-245,-5,-26,-6,36,33,-1,15,-23,-31,-193,21,-15,24,30,43,-14,26,-11,121,139,199,-53,-31,14,74,77,112,268,-63,2,156,308,76,17,0,14,4,0,11,343,-36,14,-87,-171,-2,41,-75,-33,-646,-1298,-725,32,37,-232,-119,-353,-25,-9,-401,-4,12,45,111,53,-83,-118,-81,-52,-5,-18,-16,21,43,50,105,-26,0,-19,-67,-9,47,-2,0,-3,10,-3,-2,-21,-19,-1,12,-8,8,33,54,64,19,-33,-27,-86,-85,44,46,-11,59,75,0,12,-2,-1,5,-2,186,69,-21,-8,-22,73,5,7,0,128,-6,-90,44,-28,34,-388,-235,89,40,-138,-378,-147,-76,51,65,222,-5,53,51,68,-53,58,-63,-5,-11,-5,-7,10,4,63,137,40,234,141,-18,-9,-5,-73,-46,36,44,21,23,-4,-33,-9,0,-27,-1,-4,5,-140,-7,-2,-4,0,-8,92,-1,-48,-26,-70,-78,-78,11,-63,0,-4,0,48,48,-1,72,281,-4,-1,-1,76,143,18,167,57,40,-8,-11,-7,-5,69,63,84,415,64,45,-109,-40,-27,-16,65,63,-49,66,53,56,56,-6,3,-7,-6,-8,35,44,56,-2,54,65,180,0,61,42,43,-24,-18,81,43,-12,10,32,-3,6,39,37,-35,-164,-68,-25,97,96,69,-6,-99,-7,-3,-6,-158,66,37,74,-70,32,59,-94,-136,-65,-60,-11,-2,58,63,53,-16,-3,-86,-43,-75,-4,52,64,70,68,-15,35,-28,-37,0,-3,10,-14,63,-5,21,-20,-74,-67,-86,-7,35,-13,-8,41,31,65,154,62,-11,-19,33,39,37,29,21,42,39,467,6,58,55,41,23,10,50,61,-29,7,7,-53,-78,21,11,56,-50,-56,-18,14,29,49,23,59,45,41,-31,-16,-2,32,-118,-27,51,15,-19,47,-1,94,-1,-155,-77,-26,-11,-20,39,51,-12,114,-10,-201,-164,-97,-36,-4,0,-35,45,-2,-27,-21,-34,-234,0,29,-8,-5,71,62,-41,-4,-30,-21,-10,-2,56,-23,14,-11,49,-25,6,60,71,71,22,-7,-4,-8,14,14,-317,-7,228,55,99,-92,-14,-8,-65,-368,-134,-76,33,55,-4,-12,-20,80,-46,2,104,57,185,140,-3,25,-22,-51,-18,-21,68,-53,22,140,125,-30,-1,81,-22,-20,-75,-42,-19,0,18,-1,-1,56,21,-22,-18,-41,48,0,29,-11,-6,-55,-18,-21,-41,-194,-99,56,129,-2,15,-1,-17,-47,-10,131,49,-30,-105,-116,-1,57,0,-3,-20,-17,62,68,-20,30,-5,-28,-91,-171,-74,-69,22,36,-19,61,-8,-110,-33,-77,-18,-205,-106,27,-25,62,-121,-150,-65,-6,72,72,57,5,36,0,-31,-17,145,-4,88,-30,75,85,39,38,-5,33,-5,-9,-2,-188,-48,29,32,-25,36,-2,-59,2,-9,11,-33,49,-15,-14,-31,-211,-122,-20,-12,-67,-32,-1,42,-8,-75,-43,-2,0,78,-14,17,-136,253,-31,-101,-380,-105,-1,42,23,-4,-46,-46,64,-7,-38,-22,37,44,37,-32,-43,-58,37,27,-7,-11,14,109,56,-13,-5|0,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,20,20,10,10,10,90,20,30,140,10,30,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,30,20,10,10,10,10,10,10,10,10,50,20,20,10,20,20,10,10,10,10,10,10,10,10,10,10,10,30,20,10,10,10,10,10,40,10,10,10,10,10,10,20,20,10,10,20,10,10,20,10,20,30,10,20,10,10,40,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,40,10,10,10,10,10,10,20,20,10,10,10,10,10,10,20,10,30,10,20,30,10,10,50,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,20,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,50,10,10,10,10,10,50,10,10,10,10,10,50,10,10,10,10,10,20,10,20,10,10,10,10,10,20,10,10,20,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,40,10,10,10,10,50,10,10,20,10,60,10,20,10,10,10,30,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,40,10,10,10,10,10,10,30,10,10,10,10,10,10,10,10,30,10,10,10,20,10,10,10,20,10,10,10,10,10,10,10,10,20,20,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,20,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,30,10,10,10,10,10,10,30,10,10,10,10,10,10,10,20,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,40,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,20,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10|-97,-25,-103,-109,-104,-28,-6,167,37,-29,-123,-107,-11,-10,-21,-17,21,34,28,-2,-33,-7,44,95,83,109,64,-123,-118,-1,-13,55,2,-17,50,8,-34,-26,-24,-89,-17,-16,-24,55,38,29,-22,-14,-32,-12,-1,77,-3,44,47,-25,-29,-2,26,71,27,21,52,-108,-82,-86,-30,104,46,-39,-99,-64,-12,-179,63,47,-20,-49,-6,-28,-6,-3,-5,-4,17,59,-16,-16,-1,33,91,47,-10,25,96,59,-92,-62,-25,-6,44,-2,-6,-95,-18,-56,-12,-36,-42,-11,-12,36,40,-39,-44,0,173,58,-20,-4,22,49,62,77,-46,-14,-24,108,-10,-127,-8,66,-13,-42,-139,-82,-17,52,-125,0,-20,-23,76,97,57,44,50,50,65,51,78,11,-160,43,120,-50,-57,-10,17,50,-11,-124,-139,-42,-21,-53,29,30,-10,-97,-49,-3,-15,-7,79,1000,-5,-17,0,-9,-40,-24,40,-8,-14,-9,0,-21,-11,-12,173,105,-12,63,-10,52,-6,294,338,-14,-94,-65,-19,-50,-64,-6,-1,-97,329,30,-36,-25,-22,-112,-65,-65,-9,250,110,0,57,16,-56,-51,-9,25,185,-26,33,66,1,212,-44,-7,-20,67,50,-68,46,-23,36,34,5,-30,-84,81,-27,-31,-60,-4,-8,58,-23,-15,4,-34,-12,70,27,-58,10,-3,-5,-44,-2,28,-5,-2,-22,-6,-6,-3,42,-3,57,-3,3,66,351,16,187,48,-190,-104,-261,-132,-5,123,141,17,32,87,25,64,-51,-273,-135,57,-32,324,150,115,-4,-15,-168,-195,-63,-2,20,4,-65,4,-25,-170,-28,-30,15,-13,51,11,18,32,-14,-35,-144,-1,-60,-18,-79,-7,-76,19,-9,25,-52,0,-42,-10,-2,32,69,-16,-11,16,-8,-8,-1,-15,46,49,65,-1,-5,-9,-6,-16,41,43,-1,32,-22,-73,-3,0,-1,-63,-21,91,-59,-32,-37,-8,15,-9,-49,-209,-58,-47,-66,-60,-33,-12,-104,-1,-81,-31,-156,-2,-40,-6,-13,92,-3,-2,31,-118,-331,-166,-25,-32,44,120,-3,16,38,2,-48,-3,10,-7,36,-60,-25,-20,-19,68,39,39,24,-1,49,22,-20,33,-73,-98,5,-5,14,2,-12,-357,-40,-19,-3,0,-19,-6,20,-19,-138,-24,-158,-92,0,0,-28,-23,-13,-56,19,-21,-14,-43,22,-212,-104,-137,-74,-12,8,-13,-9,-109,-166,-293,-170,-54,-210,-99,-37,-98,-339,-215,-42,-3,-317,-450,-125,-77,-76,29,-4,-7,-45,-45,-95,63,106,-8,-51,-113,-107,-7,107,110,66,-168,101,-84,-21,-58,36,-34,-4,2,119,123,22,-2,-627,-75,-33,-14,79,28,0,-17,-111,-350,-234,-40,13,0,-6,-7,-373,-73,-99,-40,0,0,51,31,11,-29,-11,-11,-141,-40,31,-47,-12,-76,-22,-17,-58,-58,-196,-110,-186,-43,-30,-117,-17,12,-315,-148,-165,-11,-165,-287,-154,-20,0,-23,83,-90,-6,50,-190,-9,0,-3,-133,-101,-155,-71,-57,-57,-19,-4,143,-148,-226,-125,-22,-67,-52,-6,-109,16,-64,53,22,-72,-161,-116,-429,-126,-1,-20,-76,-5,41,22,-3,24,-111,-32,-86,31,-29,24,25,-7,-180,-142,-80,-294,-24,23,-2,-52,-34,-95,-29,-30,12,-6,71,-25,-5,-13,-11,-37,-14,-26,27,8,109,-1,127,38,-91,35,0,-24,-3,-3,-36,-21,0,124,-50,-183,0,-96,-7,-7,-10,-141,-256,-356,-322,-103,-2,-89,12,129,70,0,31,-45,-114,-48,-19,-88,-75,-2,-54,-1,8,69,38,-13,-61,-4,-63,55,34,-5,-11,0,-1,-14,6,-27,-76,-62,53,43,67,-4,48,-9,117,-36,-56,-17,-19,44,17,0,-19,-4,-6,-33,-6,63,278,-10,30,61,-1,-42,-5,-14,-3,-5,-1,-11,63,-2,-37,-128,-7,91,370,51,-12,-21,52,-2,-89,13,-21,129,26,52,55,-7,14,-62,-277,-196,-83,0,26,14,23,-11,-5,-64,-33,-20,-35,-1,-10,-13,-19,-9,-68,-17,-1,53,-9,45,-15,-11,-77,42,46,-6,-43,-28,-25,-21,-7,-14,31,41,33,-9,-20,338,594,182,-7,-2,12,27,2,90,-1,66,19,65,0,-44,40,8,77,67,-20,-13,23,42,8,-56,-25,-15,26,-79,-73,-201,-86,-8,-88,-113,-34,-32,64,-45,-9,-151,-7,17
OANDA:USDCAD :
USDCAD|20121220|20221220|0.503,-0.128,0.0,-0.383,0.0,1.0,-0.149,0.0,-0.22,0.0|1.151,0.499,0.0,-0.351,0.0,-0.492,0.163,0.0,-0.233,0.0|-0.723,0.493,0.0,-0.209,0.0,0.369,0.723,0.0,-0.206,0.0|0.373,0.141,0.0,0.498,0.0,0.214,0.334,0.0,0.23,0.0|0,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20|53,-18,-312,-155,-60,-19,-11,-17,-6,-66,-2,-12,-35,22,49,-61,-15,235,-24,-79,-44,62,136,41,16,310,123,148,104,-47,114,159,300,229,82,58,-10,0,-5,-13,-37,-103,891,1000,-3,-47,-123,-19,86,155,-4,-71,-54,-22,-13,-16,-134,-29,71,87,35,-113,-20,-7,-21,-13,-7,279,28,57,8,-32,-54,56,-63,-34,3,-3,69,29,13,18,45,-86,-124,-8,8,-7,-54,-3,42,0,-17,31,-10,-4,-37,-40,-49,-4,-88,69,-42,-6,54,-49,11,-5,-9,116,26,19,33,28,-123,-159,-20,19,24,67,30,132,206,41,33,-100,35,71,5,15,102,136,115,49,-43,59,95,51,51,349,282,88,70,-29,-11,113,51,-7,-12,-28,96,-10,-44,-35,4,104,75,-7,-6,-16,-48,-52,-23,-25,-1,154,-25,25,-116,-18,-34,-43,-55,-3,36,134,68,0,-11,40,-5,-105,-62,-39,-7,47,65,63,39,14,48,-33,-28,-27,16,-132,3,103,-6,196,35,90,23,-8,-35,-29,-2,67,-12,631,142,75,-17,-5,-53,-42,-236,-85,249,150,40,33,71,-15,56,-14,84,-35,41,19,9,0,-54,-14,-16,78,-4,93,86,95,-50,97,-142,19,116,-68,-2,-73,325,0,-53,-29,-291,-65,36,-12,-62,-183,-34,39,62,-16,-22,-5,-13,103,-35,-60,-18,8,-6,41,40,-3,105,-36,-3,0,-16,-65,102,-31,-36,-32,-30,72,-62,63,-22,-11,38,37,-8,-76,-120,-66,87,62,-6,-45,68,-16,-32,-28,-195,63,-3,65,74,-2,-87,-1,-156,-473,-97,-59,156,-53,67,174,-86,30,-13,-25,-77,-1,67,46,59,-33,121,-2,-59,48,-95,-198,-99,19,-8,-101,75,31,5,-29,-236,-198,-223,-25,-95,-111,-42,-13,-5,36,-3,-17,-324,-153,-156,-25,-27,-13,14,92,-6,-8,-16,-5,-26,79,72,-31,4,140,-31,-27,-7,-40,-16,-7,34,-6,-20,90,-47,-12,-11,98,-15,-13,-92,-24,15,-33,-52,-117,-7,123,-24,-3,-57,19,17,-42,-86,-23,63,-34,51,-11,-40,-2,20,-51,-98,-210,31,-83,-102,-15,51,-29,0,-3,-297,-7,36,-32,-35,83,-35,-134,-141,-157,-151,-56,73,-22,-25,-4,75,-84,-152,-1,-150,-28,-80,15,2,-135,-27,-7,-6,0,-17,-12,-3,-3,-13,-10,-2,-1,-3,16,-70,-11,-9,71,-147,36,136,-45,-38,77,-5,55,-44,-5,-5,-19,51,-4,-12,-46,-9,-33,14,-43,-14,-57,-9,-15,-113,46,31,33,84,-63,-51,10,-202,-23,25,-3,122,170,-81,-104,-32,64,-78,-8,-38,95,-19,-64,-197,-77,-133,-29,-10,-32,-43,-55,115,24,-89,-89,-31,-24,-17,-73,-171,-22,49,12,-7,63,92,52,-50,-45,-58,-6,-16,-45,-18,21,-37,-42,-24,-93,-219,-17,-7,37,-9,-24,-30,0,-46,-102,-173,-16,65,-1,-34,1,-4,-8,-77,-66,-216,-14,54,-30,-11,-39,-2,-44,-119,8,-56,-106,64,-12,-16,0,-148,-53,79,-20,-56,-34,50,-23,-37,-136,-28,-14,-20,68,153,60,-7,-50,-6,-80,-46,47,-17,-116,135,113,-8,-162,-276,-107,-75,12,-114,-29,291,25,-9,61,-239,-33,-28,-30,-33,-10,57,49,-11,-1,-18,-26,-14,-31,-160,62,-55,44,38,36,-1,-13,-54,-129,-107,-6,-21,-104,-3,-22,-15,50,-19,-10,-97,-37,-8,-2,-47,-2,-55,-127,-85,-45,-44,-16,-61,-25,-44,-4,-16,-63,-4,-26,-66,-57,-9,46,28,-8,-11,-3,27,-75,-102,-51,-53,-19,22,41,-41,-6,-1,-18,-96,-4,-4,-22,-50,-1,-138,-16,53,-122,-349,-70,-20,-51,-46,-197,-14,-87,-21,-35,-243,95,61,-28,-5,-92,-53,-2,-43,-34,-35,-135,12,-12,-19,-63,-124,0,-40,-10,-32,10,-35,-29,-2,-60,-364,-19,71,-7,0,39,-131,-8,-59,-18,-16,-136,-17,-7,-4,-65,-37,-4,-26,48,11,-23,-201,-61,-12,-109,-10,3,-2,-5,558,12,-216,-21,44,-148,-1,-2,-61,54,185,-9,-1,14,-48,-86,-73,-17,-173,-96,148,110,-18,-66,-249,-46,-152,-41,-12,-71,-255,-28,-20,-29,-517,-25,0,-9,-1,-4,-16,-198,-39,-3,-29,-16,80,-8,-21,-16,-24,-331,-123,-45,-52,35,50,-18,-41,-3,9,48,131,-23,-21,-8,-14,-65,-21,-105,-15,-59,63,-2,-30,-23,-79,-5,0,-5,-149,-50,-51,26,-44,-24,-58,-19,-54,0,-109,-39,-149,-66,-40,-80,-110,-4,-5,-30,107,-11,-228,-13,17,-11,-33,47,-1,-5,151,-2,-26,-3,39,-72,-181,-5,-33,9,73,74,-26,-72,-3,-4,-19,-2,-37,64,-16,-36,-20,-5,-20,-96,-120,-80,25,-24,-4,-29,-31,87,-55,-28,-15,-60,-9,-116,-271,-307,-147,-23,-14,-8,44,-15,-15,-17,-9,-18,-141,-64,-59,-133,11,-126,-42,65,-33,72,38,-70,-24,-79,49,25,-151,-2,-48,-38,41,-27,-3,-2,-19,-3,-108,-9,-84,-150,-118,-65,-286,-111,-8,165,-45,110,137,-6,-19,-55,-52,60,5,48,270,89,105|0,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,30,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,20,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10|-161,-70,111,67,-162,-38,-90,-134,18,-63,-66,-87,-33,-3,-13,-54,-58,-233,-88,-17,-144,-177,-76,-79,-8,-59,-151,-318,-62,-381,-113,0,-845,-93,-218,-81,-74,-190,-100,-41,10,-193,-1207,-87,-32,130,93,-349,-449,-205,-43,129,-269,-147,171,-7,125,-31,-392,-476,-200,58,144,-10,-37,-505,-28,-20,117,-20,266,-7,-46,-173,79,-206,-22,-361,-110,-158,-2,-108,-532,-90,-81,66,65,-7,-115,-85,-8,-11,-66,-68,20,-36,-72,-68,-4,-65,-40,-232,77,127,-116,87,-27,-23,-150,-47,-8,35,-54,-223,26,-251,-1,-364,-188,-109,-187,-137,-111,-228,-262,26,-193,-258,-8,-55,-252,0,-43,-807,-691,-642,-4,-25,-50,-2,-103,-613,-211,-357,-2,-11,-40,-175,-278,-110,34,-7,-556,-21,-29,-43,0,-245,-363,-4,-73,61,-9,-275,-329,-190,-58,-199,374,-15,-11,-43,-35,-187,-49,-212,-167,-495,-327,-48,102,-13,-184,-28,-185,-75,-416,-389,-204,-270,-172,-98,-33,-11,-637,-78,-142,-159,-32,-15,-10,104,-49,100,-252,-103,-58,-63,-245,-21,140,157,149,-46,-160,-203,100,29,-297,-220,58,160,-315,-51,-149,-22,23,-83,-282,47,-118,-143,-56,544,-40,-139,-582,-175,-272,-145,-54,-102,-301,-158,-26,-206,-466,-149,-304,-22,-16,-289,-8,247,112,197,-412,-33,91,100,129,113,-153,-223,0,-263,-34,-26,-274,293,-91,-739,-945,-260,-22,-9,-208,-205,-13,-198,-207,-220,-686,-126,-208,121,-496,-353,-686,-96,-413,-8,0,-411,-34,-126,181,52,-404,-416,-398,1,-237,-815,-38,117,77,-19,-22,71,119,-158,-2,-27,-56,182,-50,-87,-167,-751,-282,-416,-302,-11,-174,-153,-83,-57,-104,-24,-236,-568,-224,-60,-95,-97,-98,-175,-83,-343,-128,-166,-115,-75,-64,-28,-55,-216,232,-21,-153,-280,112,219,-29,-8,-40,-176,-60,192,108,-118,-531,-528,263,9,-60,-251,-115,-2,-177,-228,-903,-597,-168,-83,-284,-43,27,-134,-15,-146,-1055,-307,-5,-151,-146,-256,-4,-44,-164,-29,-75,-38,126,-38,-68,-423,-178,-231,-10,86,-56,-134,-14,-4,154,-149,-136,141,39,95,-16,-102,90,-14,-118,-92,-228,-253,-165,-269,53,-200,-248,-271,318,-405,-292,-131,-56,-236,-498,-487,-119,-230,154,134,-272,-59,152,-230,-228,-330,205,-85,-177,-95,-16,-74,-101,-271,-3,-143,-237,-326,-55,118,140,-56,-356,-292,-101,108,-15,-374,134,-84,426,-51,-216,-474,-667,-42,-70,-177,-16,-38,-154,-37,-91,-472,-450,-302,23,386,-216,-143,-112,-96,-51,-399,-13,-14,-9,-17,-711,-460,-572,-249,-228,-115,-38,-35,57,-71,-90,-864,-215,132,90,93,-29,-5,-20,282,-162,-293,-6,40,136,-116,-17,68,-165,18,-175,-107,-368,200,-4,-285,-743,-361,-234,79,-149,-313,-71,144,-780,-406,-839,-77,-121,90,-48,-5,-87,-57,-137,-321,-597,-258,-64,222,-148,96,-279,-369,-10,-62,-112,-32,-106,98,-15,-39,-483,-47,-2,-47,51,81,-32,147,-11,-249,-319,-277,-189,-45,289,155,-5,-7,-200,-43,-863,-25,-64,454,143,-131,-48,-637,-257,-21,36,813,371,64,0,46,-162,-805,-550,-5,83,198,0,-234,-523,-299,-484,-424,-200,-96,101,182,-6,-101,-84,-101,-63,-130,-130,-143,-192,-276,-394,-64,-265,-42,-19,-283,-77,-94,-300,-205,-164,-408,93,381,-65,-59,-527,-362,-109,-70,-62,401,700,-246,-63,-153,-203,-112,162,-32,-31,-93,-38,-100,-203,-73,-8,-90,-241,-80,-99,45,188,-64,-282,-33,-187,-58,-151,-11,-11,155,-28,-20,-102,-5,-65,-241,96,-117,223,155,-14,-90,105,-148,318,-91,66,-85,105,-9,111,-263,-56,113,156,197,-32,-263,-424,-314,-113,-205,-342,-33,-29,240,-27,-14,-268,-37,-203,-1085,-66,-267,-650,-525,-20,-16,-96,140,-52,-22,-51,-305,-40,-141,-44,-5,90,-65,-72,-28,-160,-147,-198,-1,82,-32,304,-55,-129,-23,-213,-2,-17,-14,-14,50,999,-132,-58,-97,-54,-145,59,-120,-130,375,368,484,-60,-149,-404,-27,-61,-165,210,106,-74,-161,240,-231,-74,-103,-23,-6,128,-10,-180,-439,187,328,153,280,-13,-75,236,-5,-28,-42,139,109,-9,-38,-19,141,-62,-83,-279,-163,-825,-10,69,-63,56,-73,141,188,139,-1774,-2845,-281,-2,-58,-14,-81,-36,196,89,-118,-319,-31,53,-45,-4,-82,-361,-25,-149,-263,-23,-49,-128,60,-82,-79,-97,-93,395,-1,-42,21,-22,-55,-247,0,164,258,912,-182,183,-78,-4,170,-51,-45,345,565,190,331,176,-380,-7,84,-46,-186,-200,112,-7,-72,66,-128,-82,-21,-34,-185,-1,-150,-93,-3,116,-5,-64,-18,-105,-87,-131,-77,-73,-57,137,-46,-8,-164,-101,-62,-108,-142,18,-35,-83,-5,77,-13,133,-1,83,-16,-72,-127,-87,-52,-26,-29,0,-50,87,103,-9,-206,27,-191,-54,-285,-255,-261,-197,-1,170,-64,-87,-42,-12,-133,-328,-293,-419,-110,-109,-39,115,56,-183,-3,-367,-159,-162,92,-17,-25,-91,-18,-19,-61,282,-28,-108,338,-107,110,-125,-163,-66,-242,-294,-667,-416,-435,-2,-43,-43,-295,-10,-105,-203,-133,-149
For more models, see a link on bio (description length limitation in this description restricts me to publish more).
Unimportant details
===============
“Neon” is the project code name, “J” is the iteration (versions “A” to “I” all led to a solid “J”)
Formatting options here make formatting very difficult, so forgive me poor readability.
Fund MasterFund Master, Revision 1, 3Apr2022
A. About Fund Master
1. An Oscillator with values between -100 to 100, with intention to simulate Fund inflow and outflow.
2. Presented itself in the form of solid candles without upper and lower tails.
B. Features and Setting
1. Fund Master(FM) will show up by default.
2. User has the option to turn Fund Master Bull Bear Line(BBL), and the label. Label text size is adjustable.
3. User has the option to turn on FM crossover BBL (alert text is coB) or FM crossunder BBL (alert text is cuB)
4. User has the option to turn on FM crossover 0 (alert text is co0) or FM crossunder 0 (alert text is cu0)
5. Band 0 will be shown(default), user can turn on additional band with user input value
6. Table will be shown(default), provides information on Indicator Name, FM values, FM Turn Green/Turn Red status,
FM crossover/crossunder status.
7. Alertcondition features are included. User can set the alert using the Create Alert (the Clock Icon).
The alerts includes : FM crossover or crossunder BBL, FM crossover or crossunder 0, FM turns Green, FM turns Red.
C. Using the Indicator
1. Band 0, baseline to tell if a stocks is potentially moving into bullish trend(above 0) or into bearish trend(0).
Band 0, approximately exponential 30 day of closing price(EMA30). User may use EMA30 on price chart as reference.
2. BBL, baseline to tell if fund is moving in or moving out. Above BBL means inflow of fund, vice versa.
BBL, approximately exponential 20d ay of closing price. User may use EMA20 on price chart as reference.
3. Below Band 0
After FM crossunder 0 and continues to move down, it means outflow of fund, while fund is reducing,
chips are potentially accumulated during this stage.
After FM hitting the minimum, rebounds and moving up, but still below BBL, chips are potentially being accumulated.
User can use Chips Master to visualise the chips accumulation stage.
When FM crossover BBL and continues to move up, it means inflow of fund in pushing up the stock price.
4. Above Band 0
After FM crossover 0, continues to move up and stays above BBL, stocks potentially moving into bullish trend with inflow of fund.
During retrace, FM may turn from Green to Red and moves sideways, and FM may turn from Red to Green when stocks price rebounds.
User can set the alert to notify on FM turn Red/turn red (as mentioned in Section B, point 7)
5. User can use MCDX Plus to visualise the increase or decrease of Profitable Level as shown by the Red Bar.
User can look and golden cross or death cross of Moving Average of Profitable Chips and Locked Chips.
Death cross, stock trend most likely moving into chips accumulating stage, FM may move down towards 0 or moving down below 0.
Golden cross, stock trend most likely moving into bullish trend, FM may move up towards 0 or moving up above 0.
6. Top Deviation and Bottom Deviation
FM has the potential ability to demonstrate Top Deviation (Stock Price is moving up while FM is moving down) as well as
Bottom Deviation (Stocks price is moving down or sideway while FM is moving up).
This helps to prepare user to buy during Bottom Deviation or sell during Top Deviation.
It is not perfect, user needs to use their technical analysis judgement.
D. Smart Money System
Indicators published includes : Chips Master, BBD Master, MCDX Plus, Trend Master, Ladder Master, Deviation Master, Fund Master
Chips Master for studying chips accumulating by banker/smart money
BBD Master for studying the big buy net deviation by banker/smart money
MCDX Plus for studying the profitable and locked chips
Trend Master for studying the Price Trends
Ladder Master for studying the Trends reversal (mid term) and short term entry/exit
Deviation Master for studying the Top and Bottom Deviation.
Fund Master for studying fund inflow/outflow, chips accumulating, price push up, top deviation and bottom deviation.
E. Disclaimer :
1. Attached chart is for the purpose of illustrating the use of indicator, no recommendation of buy/sell.
2. Based on feedback, there may be unethical individual with no respects of author's effort and originality, either.
a. claiming the published indicators as theirs, for their own business purposes, or
b. claiming paying the author to develop the scripts, for their own business purposes, or
c. Copy and modify the scripts for their own business purposes
This scripts is locked for the time being to prevent those unethical malpractice.
Public users are welcome to use indicator for their technical analysis.
BKN: Thick CutThick Cut is the juiciest BKN yet. This indicator is created to take a profitable trading strategy and turn it into an automated system. We've built in several pieces that professional traders use every day and turned it into an algo that produces on timeframes as low as 1, 3, and 5 minutes!
Limit Order Entries: When criteria is met, an alert is signaled that will send a value to enter a position at a limit price.
Built in Stop Loss: A stop is built in and the value can be sent to your bot using the {{plot}} function or you can rely on a TradingView alert when the stop is hit.
Built in Take Profits: We've built in two separate take profits and the ability to move your stop loss to breakeven after the first take profit is hit. Even if you take 50% profit at 1R and move your stop loss, you already have a profitable trade. Test results show 50% profits at 2R and the remainder at higher returns result in exceptional results.
Position Sizing: We've built in a position size based on your own predetermined risk. Want to risk $100 per trade? Great, put in 100 in the inputs and reference a quantity of {{plot("Position Size")}} in your alert to send a position size to the bot. You can also reference {{plot("Partial Close")}} to pull 50% of the position size closing 50% at TP1 and 50% at TP2.
Backtest results shown are very short term since we are viewing a 15m chart. This can be a profitable strategy on many timeframes, but lower timeframes will maximize results.
A unique script with incredible results. Further forward testing is live.
***IMPORTANT***
For access, please do not comment below. Comments here will not be replied to. Please send a DM here or on my linked Twitter . At this time, this strategy is considered a Beta release as we continue to fine tune settings and more. Expecting 2 weeks of beta with official release around June 6.
Crypto Tipster Study / Alerts -theCrypster===========
Crypto Tipster Study with Alerts
===========
Our Crypto Tipster Study with Alerts Script is a carbon copy of our tried and tested Crypto Tipster Pro Strategy , but now with the option of setting TradingView Alerts for your chosen trading plan. Making missing trades a thing of the past, and helping you to automate your own trading strategy.
-----------
Crypto Tipster Pro is a trading strategy with indicators based on Technical Analysis, Price Action and Momentum Swings for TradingView's charting platform.
We've compiled and continue to update a trading strategy that adapts to changes in the market; with custom indicator settings, fixed SL/TP, Trailing Stop, Safe Mode, Heikin Ashi Confirmation and more!
Our efforts have been focused towards the 1D time frame - using a larger time frame benefits most part-time or evening traders in multiple ways, catching bigger swings and earning a higher percentage per trade, the ability to reduce or remove any leverage associated with the trade, and only having to place a trade or move a stop loss ONCE per day ~ Meaning you are still able to go to work, tidy the house, play with the kids AND be a successful trader.
-----------
What's Included within Crypto Tipster Pro?
Crypto Tipster Pro comes with a host of features and is being continually updated, these features include (but are not limited to):
- Date Range Settings
Setting custom Start/End dates can help hone your strategy to suit the current times, or get a general overview of the market over the years.
- Heikin Ashi Confirmation
We added HA confirmation for both Entry & Exit of trades. This started as a form of "Safe Mode", we have since adapted this mode beyond Heikin Ashi; but kept this confirmation as an added extra.
- Variable Indicator Settings
As well as our Fixed Indicators and Price Action analysis going on in the background of the strategy, we've also included some Variable Indicators that you have access to edit.
Trend Detection Length for detecting trend! Higher numbers detect longer trends, but will inevitably make fewer trades and possibly miss the start of a new trend; a lower length will create more opportunities to trade but may get confused when ranging in choppy markets.
Range Short/Long Lengths are used for detecting percentage price movements over a given number of bars back. This enables you to effectively "zoom in" on market data and catch trends within trends.
- Safe Mode
Enabling Safe Mode will add a couple more confirmation indicators to the strategy - the aim of Safe Mode is, in essence, to remove any trading signals that would end of being false/bad moves. Usually resulting in less Overall Trades, a higher Net Profit, higher % Profitable, higher Profit Factor AND a lower Drawdown.
- Stop Loss/Take Profit Settings
This is where Crypto Tipster Pro really proves itself, Money Management. We have an editable Fixed SL/TP, as well as Trailing Stops for Long or Short orders, all of which you can use on their own, or combined with each other. Playing with these settings can turn an un-profitable system into a very-profitable system!
- Custom Stop Loss Indicator
This is a little extra indicator that we have found very useful over the years of trading markets, a custom Stop Loss Indicator. Simply turn it on, enter the price you want to calculate from, tick Long or Short, enter a % movement and watch as your new stop loss level is plotted on the chart. This is especially useful for when the strategy doesn't marry up with the prices you've actually obtained (for better or for worse!)
-----------
What's Included within Crypto Tipster Study / Alerts Script?
Our Study script will find Entry and Exit points exactly as our Pro Strategy would find them. The same indicators, methods and chart reading techniques are used, there are 2 big differences however...
The first difference is that our Pro Strategy has the ability to manage your money, Fixed Stops, Take Profit and Trailing Stops to name just a few. Our Study does not (and cannot) have these functions added due to the way TradingView's charting platform operates.
That's the bad news, the good news for our Crypto Tipster Study Script is that you can add Alerts to your trading plan! This is super handy if you decide to implement our methods into various time frames other than 1D and are looking for Intra-day alerts, or if you're looking to Automate your trading strategy using external software.
Help and Advice for setting up Alerts or to Automate your Strategy can be found on our website.
----------
For more information on the Crypto Tipster Pro Strategy visit the link in our signature.
Good Luck and Happy Trading!
Backtesting & Trading Engine [PineCoders]The PineCoders Backtesting and Trading Engine is a sophisticated framework with hybrid code that can run as a study to generate alerts for automated or discretionary trading while simultaneously providing backtest results. It can also easily be converted to a TradingView strategy in order to run TV backtesting. The Engine comes with many built-in strats for entries, filters, stops and exits, but you can also add you own.
If, like any self-respecting strategy modeler should, you spend a reasonable amount of time constantly researching new strategies and tinkering, our hope is that the Engine will become your inseparable go-to tool to test the validity of your creations, as once your tests are conclusive, you will be able to run this code as a study to generate the alerts required to put it in real-world use, whether for discretionary trading or to interface with an execution bot/app. You may also find the backtesting results the Engine produces in study mode enough for your needs and spend most of your time there, only occasionally converting to strategy mode in order to backtest using TV backtesting.
As you will quickly grasp when you bring up this script’s Settings, this is a complex tool. While you will be able to see results very quickly by just putting it on a chart and using its built-in strategies, in order to reap the full benefits of the PineCoders Engine, you will need to invest the time required to understand the subtleties involved in putting all its potential into play.
Disclaimer: use the Engine at your own risk.
Before we delve in more detail, here’s a bird’s eye view of the Engine’s features:
More than 40 built-in strategies,
Customizable components,
Coupling with your own external indicator,
Simple conversion from Study to Strategy modes,
Post-Exit analysis to search for alternate trade outcomes,
Use of the Data Window to show detailed bar by bar trade information and global statistics, including some not provided by TV backtesting,
Plotting of reminders and generation of alerts on in-trade events.
By combining your own strats to the built-in strats supplied with the Engine, and then tuning the numerous options and parameters in the Inputs dialog box, you will be able to play what-if scenarios from an infinite number of permutations.
USE CASES
You have written an indicator that provides an entry strat but it’s missing other components like a filter and a stop strategy. You add a plot in your indicator that respects the Engine’s External Signal Protocol, connect it to the Engine by simply selecting your indicator’s plot name in the Engine’s Settings/Inputs and then run tests on different combinations of entry stops, in-trade stops and profit taking strats to find out which one produces the best results with your entry strat.
You are building a complex strategy that you will want to run as an indicator generating alerts to be sent to a third-party execution bot. You insert your code in the Engine’s modules and leverage its trade management code to quickly move your strategy into production.
You have many different filters and want to explore results using them separately or in combination. Integrate the filter code in the Engine and run through different permutations or hook up your filtering through the external input and control your filter combos from your indicator.
You are tweaking the parameters of your entry, filter or stop strat. You integrate it in the Engine and evaluate its performance using the Engine’s statistics.
You always wondered what results a random entry strat would yield on your markets. You use the Engine’s built-in random entry strat and test it using different combinations of filters, stop and exit strats.
You want to evaluate the impact of fees and slippage on your strategy. You use the Engine’s inputs to play with different values and get immediate feedback in the detailed numbers provided in the Data Window.
You just want to inspect the individual trades your strategy generates. You include it in the Engine and then inspect trades visually on your charts, looking at the numbers in the Data Window as you move your cursor around.
You have never written a production-grade strategy and you want to learn how. Inspect the code in the Engine; you will find essential components typical of what is being used in actual trading systems.
You have run your system for a while and have compiled actual slippage information and your broker/exchange has updated his fees schedule. You enter the information in the Engine and run it on your markets to see the impact this has on your results.
FEATURES
Before going into the detail of the Inputs and the Data Window numbers, here’s a more detailed overview of the Engine’s features.
Built-in strats
The engine comes with more than 40 pre-coded strategies for the following standard system components:
Entries,
Filters,
Entry stops,
2 stage in-trade stops with kick-in rules,
Pyramiding rules,
Hard exits.
While some of the filter and stop strats provided may be useful in production-quality systems, you will not devise crazy profit-generating systems using only the entry strats supplied; that part is still up to you, as will be finding the elusive combination of components that makes winning systems. The Engine will, however, provide you with a solid foundation where all the trade management nitty-gritty is handled for you. By binding your custom strats to the Engine, you will be able to build reliable systems of the best quality currently allowed on the TV platform.
On-chart trade information
As you move over the bars in a trade, you will see trade numbers in the Data Window change at each bar. The engine calculates the P&L at every bar, including slippage and fees that would be incurred were the trade exited at that bar’s close. If the trade includes pyramided entries, those will be taken into account as well, although for those, final fees and slippage are only calculated at the trade’s exit.
You can also see on-chart markers for the entry level, stop positions, in-trade special events and entries/exits (you will want to disable these when using the Engine in strategy mode to see TV backtesting results).
Customization
You can couple your own strats to the Engine in two ways:
1. By inserting your own code in the Engine’s different modules. The modular design should enable you to do so with minimal effort by following the instructions in the code.
2. By linking an external indicator to the engine. After making the proper selections in the engine’s Settings and providing values respecting the engine’s protocol, your external indicator can, when the Engine is used in Indicator mode only:
Tell the engine when to enter long or short trades, but let the engine’s in-trade stop and exit strats manage the exits,
Signal both entries and exits,
Provide an entry stop along with your entry signal,
Filter other entry signals generated by any of the engine’s entry strats.
Conversion from strategy to study
TradingView strategies are required to backtest using the TradingView backtesting feature, but if you want to generate alerts with your script, whether for automated trading or just to trigger alerts that you will use in discretionary trading, your code has to run as a study since, for the time being, strategies can’t generate alerts. From hereon we will use indicator as a synonym for study.
Unless you want to maintain two code bases, you will need hybrid code that easily flips between strategy and indicator modes, and your code will need to restrict its use of strategy() calls and their arguments if it’s going to be able to run both as an indicator and a strategy using the same trade logic. That’s one of the benefits of using this Engine. Once you will have entered your own strats in the Engine, it will be a matter of commenting/uncommenting only four lines of code to flip between indicator and strategy modes in a matter of seconds.
Additionally, even when running in Indicator mode, the Engine will still provide you with precious numbers on your individual trades and global results, some of which are not available with normal TradingView backtesting.
Post-Exit Analysis for alternate outcomes (PEA)
While typical backtesting shows results of trade outcomes, PEA focuses on what could have happened after the exit. The intention is to help traders get an idea of the opportunity/risk in the bars following the trade in order to evaluate if their exit strategies are too aggressive or conservative.
After a trade is exited, the Engine’s PEA module continues analyzing outcomes for a user-defined quantity of bars. It identifies the maximum opportunity and risk available in that space, and calculates the drawdown required to reach the highest opportunity level post-exit, while recording the number of bars to that point.
Typically, if you can’t find opportunity greater than 1X past your trade using a few different reasonable lengths of PEA, your strategy is doing pretty good at capturing opportunity. Remember that 100% of opportunity is never capturable. If, however, PEA was finding post-trade maximum opportunity of 3 or 4X with average drawdowns of 0.3 to those areas, this could be a clue revealing your system is exiting trades prematurely. To analyze PEA numbers, you can uncomment complete sets of plots in the Plot module to reveal detailed global and individual PEA numbers.
Statistics
The Engine provides stats on your trades that TV backtesting does not provide, such as:
Average Profitability Per Trade (APPT), aka statistical expectancy, a crucial value.
APPT per bar,
Average stop size,
Traded volume .
It also shows you on a trade-by-trade basis, on-going individual trade results and data.
In-trade events
In-trade events can plot reminders and trigger alerts when they occur. The built-in events are:
Price approaching stop,
Possible tops/bottoms,
Large stop movement (for discretionary trading where stop is moved manually),
Large price movements.
Slippage and Fees
Even when running in indicator mode, the Engine allows for slippage and fees to be included in the logic and test results.
Alerts
The alert creation mechanism allows you to configure alerts on any combination of the normal or pyramided entries, exits and in-trade events.
Backtesting results
A few words on the numbers calculated in the Engine. Priority is given to numbers not shown in TV backtesting, as you can readily convert the script to a strategy if you need them.
We have chosen to focus on numbers expressing results relative to X (the trade’s risk) rather than in absolute currency numbers or in other more conventional but less useful ways. For example, most of the individual trade results are not shown in percentages, as this unit of measure is often less meaningful than those expressed in units of risk (X). A trade that closes with a +25% result, for example, is a poor outcome if it was entered with a -50% stop. Expressed in X, this trade’s P&L becomes 0.5, which provides much better insight into the trade’s outcome. A trade that closes with a P&L of +2X has earned twice the risk incurred upon entry, which would represent a pre-trade risk:reward ratio of 2.
The way to go about it when you think in X’s and that you adopt the sound risk management policy to risk a fixed percentage of your account on each trade is to equate a currency value to a unit of X. E.g. your account is 10K USD and you decide you will risk a maximum of 1% of it on each trade. That means your unit of X for each trade is worth 100 USD. If your APPT is 2X, this means every time you risk 100 USD in a trade, you can expect to make, on average, 200 USD.
By presenting results this way, we hope that the Engine’s statistics will appeal to those cognisant of sound risk management strategies, while gently leading traders who aren’t, towards them.
We trade to turn in tangible profits of course, so at some point currency must come into play. Accordingly, some values such as equity, P&L, slippage and fees are expressed in currency.
Many of the usual numbers shown in TV backtests are nonetheless available, but they have been commented out in the Engine’s Plot module.
Position sizing and risk management
All good system designers understand that optimal risk management is at the very heart of all winning strategies. The risk in a trade is defined by the fraction of current equity represented by the amplitude of the stop, so in order to manage risk optimally on each trade, position size should adjust to the stop’s amplitude. Systems that enter trades with a fixed stop amplitude can get away with calculating position size as a fixed percentage of current equity. In the context of a test run where equity varies, what represents a fixed amount of risk translates into different currency values.
Dynamically adjusting position size throughout a system’s life is optimal in many ways. First, as position sizing will vary with current equity, it reproduces a behavioral pattern common to experienced traders, who will dial down risk when confronted to poor performance and increase it when performance improves. Second, limiting risk confers more predictability to statistical test results. Third, position sizing isn’t just about managing risk, it’s also about maximizing opportunity. By using the maximum leverage (no reference to trading on margin here) into the trade that your risk management strategy allows, a dynamic position size allows you to capture maximal opportunity.
To calculate position sizes using the fixed risk method, we use the following formula: Position = Account * MaxRisk% / Stop% [, which calculates a position size taking into account the trade’s entry stop so that if the trade is stopped out, 100 USD will be lost. For someone who manages risk this way, common instructions to invest a certain percentage of your account in a position are simply worthless, as they do not take into account the risk incurred in the trade.
The Engine lets you select either the fixed risk or fixed percentage of equity position sizing methods. The closest thing to dynamic position sizing that can currently be done with alerts is to use a bot that allows syntax to specify position size as a percentage of equity which, while being dynamic in the sense that it will adapt to current equity when the trade is entered, does not allow us to modulate position size using the stop’s amplitude. Changes to alerts are on the way which should solve this problem.
In order for you to simulate performance with the constraint of fixed position sizing, the Engine also offers a third, less preferable option, where position size is defined as a fixed percentage of initial capital so that it is constant throughout the test and will thus represent a varying proportion of current equity.
Let’s recap. The three position sizing methods the Engine offers are:
1. By specifying the maximum percentage of risk to incur on your remaining equity, so the Engine will dynamically adjust position size for each trade so that, combining the stop’s amplitude with position size will yield a fixed percentage of risk incurred on current equity,
2. By specifying a fixed percentage of remaining equity. Note that unless your system has a fixed stop at entry, this method will not provide maximal risk control, as risk will vary with the amplitude of the stop for every trade. This method, as the first, does however have the advantage of automatically adjusting position size to equity. It is the Engine’s default method because it has an equivalent in TV backtesting, so when flipping between indicator and strategy mode, test results will more or less correspond.
3. By specifying a fixed percentage of the Initial Capital. While this is the least preferable method, it nonetheless reflects the reality confronted by most system designers on TradingView today. In this case, risk varies both because the fixed position size in initial capital currency represents a varying percentage of remaining equity, and because the trade’s stop amplitude may vary, adding another variability vector to risk.
Note that the Engine cannot display equity results for strategies entering trades for a fixed amount of shares/contracts at a variable price.
SETTINGS/INPUTS
Because the initial text first published with a script cannot be edited later and because there are just too many options, the Engine’s Inputs will not be covered in minute detail, as they will most certainly evolve. We will go over them with broad strokes; you should be able to figure the rest out. If you have questions, just ask them here or in the PineCoders Telegram group.
Display
The display header’s checkbox does nothing.
For the moment, only one exit strategy uses a take profit level, so only that one will show information when checking “Show Take Profit Level”.
Entries
You can activate two simultaneous entry strats, each selected from the same set of strats contained in the Engine. If you select two and they fire simultaneously, the main strat’s signal will be used.
The random strat in each list uses a different seed, so you will get different results from each.
The “Filter transitions” and “Filter states” strats delegate signal generation to the selected filter(s). “Filter transitions” signals will only fire when the filter transitions into bull/bear state, so after a trade is stopped out, the next entry may take some time to trigger if the filter’s state does not change quickly. When you choose “Filter states”, then a new trade will be entered immediately after an exit in the direction the filter allows.
If you select “External Indicator”, your indicator will need to generate a +2/-2 (or a positive/negative stop value) to enter a long/short position, providing the selected filters allow for it. If you wish to use the Engine’s capacity to also derive the entry stop level from your indicator’s signal, then you must explicitly choose this option in the Entry Stops section.
Filters
You can activate as many filters as you wish; they are additive. The “Maximum stop allowed on entry” is an important component of proper risk management. If your system has an average 3% stop size and you need to trade using fixed position sizes because of alert/execution bot limitations, you must use this filter because if your system was to enter a trade with a 15% stop, that trade would incur 5 times the normal risk, and its result would account for an abnormally high proportion in your system’s performance.
Remember that any filter can also be used as an entry signal, either when it changes states, or whenever no trade is active and the filter is in a bull or bear mode.
Entry Stops
An entry stop must be selected in the Engine, as it requires a stop level before the in-trade stop is calculated. Until the selected in-trade stop strat generates a stop that comes closer to price than the entry stop (or respects another one of the in-trade stops kick in strats), the entry stop level is used.
It is here that you must select “External Indicator” if your indicator supplies a +price/-price value to be used as the entry stop. A +price is expected for a long entry and a -price value will enter a short with a stop at price. Note that the price is the absolute price, not an offset to the current price level.
In-Trade Stops
The Engine comes with many built-in in-trade stop strats. Note that some of them share the “Length” and “Multiple” field, so when you swap between them, be sure that the length and multiple in use correspond to what you want for that stop strat. Suggested defaults appear with the name of each strat in the dropdown.
In addition to the strat you wish to use, you must also determine when it kicks in to replace the initial entry’s stop, which is determined using different strats. For strats where you can define a positive or negative multiple of X, percentage or fixed value for a kick-in strat, a positive value is above the trade’s entry fill and a negative one below. A value of zero represents breakeven.
Pyramiding
What you specify in this section are the rules that allow pyramiding to happen. By themselves, these rules will not generate pyramiding entries. For those to happen, entry signals must be issued by one of the active entry strats, and conform to the pyramiding rules which act as a filter for them. The “Filter must allow entry” selection must be chosen if you want the usual system’s filters to act as additional filtering criteria for your pyramided entries.
Hard Exits
You can choose from a variety of hard exit strats. Hard exits are exit strategies which signal trade exits on specific events, as opposed to price breaching a stop level in In-Trade Stops strategies. They are self-explanatory. The last one labelled When Take Profit Level (multiple of X) is reached is the only one that uses a level, but contrary to stops, it is above price and while it is relative because it is expressed as a multiple of X, it does not move during the trade. This is the level called Take Profit that is show when the “Show Take Profit Level” checkbox is checked in the Display section.
While stops focus on managing risk, hard exit strategies try to put the emphasis on capturing opportunity.
Slippage
You can define it as a percentage or a fixed value, with different settings for entries and exits. The entry and exit markers on the chart show the impact of slippage on the entry price (the fill).
Fees
Fees, whether expressed as a percentage of position size in and out of the trade or as a fixed value per in and out, are in the same units of currency as the capital defined in the Position Sizing section. Fees being deducted from your Capital, they do not have an impact on the chart marker positions.
In-Trade Events
These events will only trigger during trades. They can be helpful to act as reminders for traders using the Engine as assistance to discretionary trading.
Post-Exit Analysis
It is normally on. Some of its results will show in the Global Numbers section of the Data Window. Only a few of the statistics generated are shown; many more are available, but commented out in the Plot module.
Date Range Filtering
Note that you don’t have to change the dates to enable/diable filtering. When you are done with a specific date range, just uncheck “Date Range Filtering” to disable date filtering.
Alert Triggers
Each selection corresponds to one condition. Conditions can be combined into a single alert as you please. Just be sure you have selected the ones you want to trigger the alert before you create the alert. For example, if you trade in both directions and you want a single alert to trigger on both types of exits, you must select both “Long Exit” and “Short Exit” before creating your alert.
Once the alert is triggered, these settings no longer have relevance as they have been saved with the alert.
When viewing charts where an alert has just triggered, if your alert triggers on more than one condition, you will need the appropriate markers active on your chart to figure out which condition triggered the alert, since plotting of markers is independent of alert management.
Position sizing
You have 3 options to determine position size:
1. Proportional to Stop -> Variable, with a cap on size.
2. Percentage of equity -> Variable.
3. Percentage of Initial Capital -> Fixed.
External Indicator
This is where you connect your indicator’s plot that will generate the signals the Engine will act upon. Remember this only works in Indicator mode.
DATA WINDOW INFORMATION
The top part of the window contains global numbers while the individual trade information appears in the bottom part. The different types of units used to express values are:
curr: denotes the currency used in the Position Sizing section of Inputs for the Initial Capital value.
quote: denotes quote currency, i.e. the value the instrument is expressed in, or the right side of the market pair (USD in EURUSD ).
X: the stop’s amplitude, itself expressed in quote currency, which we use to express a trade’s P&L, so that a trade with P&L=2X has made twice the stop’s amplitude in profit. This is sometimes referred to as R, since it represents one unit of risk. It is also the unit of measure used in the APPT, which denotes expected reward per unit of risk.
X%: is also the stop’s amplitude, but expressed as a percentage of the Entry Fill.
The numbers appearing in the Data Window are all prefixed:
“ALL:” the number is the average for all first entries and pyramided entries.
”1ST:” the number is for first entries only.
”PYR:” the number is for pyramided entries only.
”PEA:” the number is for Post-Exit Analyses
Global Numbers
Numbers in this section represent the results of all trades up to the cursor on the chart.
Average Profitability Per Trade (X): This value is the most important gauge of your strat’s worthiness. It represents the returns that can be expected from your strat for each unit of risk incurred. E.g.: your APPT is 2.0, thus for every unit of currency you invest in a trade, you can on average expect to obtain 2 after the trade. APPT is also referred to as “statistical expectancy”. If it is negative, your strategy is losing, even if your win rate is very good (it means your winning trades aren’t winning enough, or your losing trades lose too much, or both). Its counterpart in currency is also shown, as is the APPT/bar, which can be a useful gauge in deciding between rivalling systems.
Profit Factor: Gross of winning trades/Gross of losing trades. Strategy is profitable when >1. Not as useful as the APPT because it doesn’t take into account the win rate and the average win/loss per trade. It is calculated from the total winning/losing results of this particular backtest and has less predictive value than the APPT. A good profit factor together with a poor APPT means you just found a chart where your system outperformed. Relying too much on the profit factor is a bit like a poker player who would think going all in with two’s against aces is optimal because he just won a hand that way.
Win Rate: Percentage of winning trades out of all trades. Taken alone, it doesn’t have much to do with strategy profitability. You can have a win rate of 99% but if that one trade in 100 ruins you because of poor risk management, 99% doesn’t look so good anymore. This number speaks more of the system’s profile than its worthiness. Still, it can be useful to gauge if the system fits your personality. It can also be useful to traders intending to sell their systems, as low win rate systems are more difficult to sell and require more handholding of worried customers.
Equity (curr): This the sum of initial capital and the P&L of your system’s trades, including fees and slippage.
Return on Capital is the equivalent of TV’s Net Profit figure, i.e. the variation on your initial capital.
Maximum drawdown is the maximal drawdown from the highest equity point until the drop . There is also a close to close (meaning it doesn’t take into account in-trade variations) maximum drawdown value commented out in the code.
The next values are self-explanatory, until:
PYR: Avg Profitability Per Entry (X): this is the APPT for all pyramided entries.
PEA: Avg Max Opp . Available (X): the average maximal opportunity found in the Post-Exit Analyses.
PEA: Avg Drawdown to Max Opp . (X): this represents the maximum drawdown (incurred from the close at the beginning of the PEA analysis) required to reach the maximal opportunity point.
Trade Information
Numbers in this section concern only the current trade under the cursor. Most of them are self-explanatory. Use the description’s prefix to determine what the values applies to.
PYR: Avg Profitability Per Entry (X): While this value includes the impact of all current pyramided entries (and only those) and updates when you move your cursor around, P&L only reflects fees at the trade’s last bar.
PEA: Max Opp . Available (X): It’s the most profitable close reached post-trade, measured from the trade’s Exit Fill, expressed in the X value of the trade the PEA follows.
PEA: Drawdown to Max Opp . (X): This is the maximum drawdown from the trade’s Exit Fill that needs to be sustained in order to reach the maximum opportunity point, also expressed in X. Note that PEA numbers do not include slippage and fees.
EXTERNAL SIGNAL PROTOCOL
Only one external indicator can be connected to a script; in order to leverage its use to the fullest, the engine provides options to use it as either an entry signal, an entry/exit signal or a filter. When used as an entry signal, you can also use the signal to provide the entry’s stop. Here’s how this works:
For filter state: supply +1 for bull (long entries allowed), -1 for bear (short entries allowed).
For entry signals: supply +2 for long, -2 for short.
For exit signals: supply +3 for exit from long, -3 for exit from short.
To send an entry stop level with an entry signal: Send positive stop level for long entry (e.g. 103.33 to enter a long with a stop at 103.33), negative stop level for short entry (e.g. -103.33 to enter a short with a stop at 103.33). If you use this feature, your indicator will have to check for exact stop levels of 1.0, 2.0 or 3.0 and their negative counterparts, and fudge them with a tick in order to avoid confusion with other signals in the protocol.
Remember that mere generation of the values by your indicator will have no effect until you explicitly allow their use in the appropriate sections of the Engine’s Settings/Inputs.
An example of a script issuing a signal for the Engine is published by PineCoders.
RECOMMENDATIONS TO ASPIRING SYSTEM DESIGNERS
Stick to higher timeframes. On progressively lower timeframes, margins decrease and fees and slippage take a proportionally larger portion of profits, to the point where they can very easily turn a profitable strategy into a losing one. Additionally, your margin for error shrinks as the equilibrium of your system’s profitability becomes more fragile with the tight numbers involved in the shorter time frames. Avoid <1H time frames.
Know and calculate fees and slippage. To avoid market shock, backtest using conservative fees and slippage parameters. Systems rarely show unexpectedly good returns when they are confronted to the markets, so put all chances on your side by being outrageously conservative—or a the very least, realistic. Test results that do not include fees and slippage are worthless. Slippage is there for a reason, and that’s because our interventions in the market change the market. It is easier to find alpha in illiquid markets such as cryptos because not many large players participate in them. If your backtesting results are based on moving large positions and you don’t also add the inevitable slippage that will occur when you enter/exit thin markets, your backtesting will produce unrealistic results. Even if you do include large slippage in your settings, the Engine can only do so much as it will not let slippage push fills past the high or low of the entry bar, but the gap may be much larger in illiquid markets.
Never test and optimize your system on the same dataset , as that is the perfect recipe for overfitting or data dredging, which is trying to find one precise set of rules/parameters that works only on one dataset. These setups are the most fragile and often get destroyed when they meet the real world.
Try to find datasets yielding more than 100 trades. Less than that and results are not as reliable.
Consider all backtesting results with suspicion. If you never entertained sceptic tendencies, now is the time to begin. If your backtest results look really good, assume they are flawed, either because of your methodology, the data you’re using or the software doing the testing. Always assume the worse and learn proper backtesting techniques such as monte carlo simulations and walk forward analysis to avoid the traps and biases that unchecked greed will set for you. If you are not familiar with concepts such as survivor bias, lookahead bias and confirmation bias, learn about them.
Stick to simple bars or candles when designing systems. Other types of bars often do not yield reliable results, whether by design (Heikin Ashi) or because of the way they are implemented on TV (Renko bars).
Know that you don’t know and use that knowledge to learn more about systems and how to properly test them, about your biases, and about yourself.
Manage risk first , then capture opportunity.
Respect the inherent uncertainty of the future. Cleanse yourself of the sad arrogance and unchecked greed common to newcomers to trading. Strive for rationality. Respect the fact that while backtest results may look promising, there is no guarantee they will repeat in the future (there is actually a high probability they won’t!), because the future is fundamentally unknowable. If you develop a system that looks promising, don’t oversell it to others whose greed may lead them to entertain unreasonable expectations.
Have a plan. Understand what king of trading system you are trying to build. Have a clear picture or where entries, exits and other important levels will be in the sort of trade you are trying to create with your system. This stated direction will help you discard more efficiently many of the inevitably useless ideas that will pop up during system design.
Be wary of complexity. Experienced systems engineers understand how rapidly complexity builds when you assemble components together—however simple each one may be. The more complex your system, the more difficult it will be to manage.
Play! . Allow yourself time to play around when you design your systems. While much comes about from working with a purpose, great ideas sometimes come out of just trying things with no set goal, when you are stuck and don’t know how to move ahead. Have fun!
@LucF
NOTES
While the engine’s code can supply multiple consecutive entries of longs or shorts in order to scale positions (pyramid), all exits currently assume the execution bot will exit the totality of the position. No partial exits are currently possible with the Engine.
Because the Engine is literally crippled by the limitations on the number of plots a script can output on TV; it can only show a fraction of all the information it calculates in the Data Window. You will find in the Plot Module vast amounts of commented out lines that you can activate if you also disable an equivalent number of other plots. This may be useful to explore certain characteristics of your system in more detail.
When backtesting using the TV backtesting feature, you will need to provide the strategy parameters you wish to use through either Settings/Properties or by changing the default values in the code’s header. These values are defined in variables and used not only in the strategy() statement, but also as defaults in the Engine’s relevant Inputs.
If you want to test using pyramiding, then both the strategy’s Setting/Properties and the Engine’s Settings/Inputs need to allow pyramiding.
If you find any bugs in the Engine, please let us know.
THANKS
To @glaz for allowing the use of his unpublished MA Squize in the filters.
To @everget for his Chandelier stop code, which is also used as a filter in the Engine.
To @RicardoSantos for his pseudo-random generator, and because it’s from him that I first read in the Pine chat about the idea of using an external indicator as input into another. In the PineCoders group, @theheirophant then mentioned the idea of using it as a buy/sell signal and @simpelyfe showed a piece of code implementing the idea. That’s the tortuous story behind the use of the external indicator in the Engine.
To @admin for the Volatility stop’s original code and for the donchian function lifted from Ichimoku .
To @BobHoward21 for the v3 version of Volatility Stop .
To @scarf and @midtownsk8rguy for the color tuning.
To many other scripters who provided encouragement and suggestions for improvement during the long process of writing and testing this piece of code.
To J. Welles Wilder Jr. for ATR, used extensively throughout the Engine.
To TradingView for graciously making an account available to PineCoders.
And finally, to all fellow PineCoders for the constant intellectual stimulation; it is a privilege to share ideas with you all. The Engine is for all TradingView PineCoders, of course—but especially for you.
Look first. Then leap.
Great Expectations [LucF]Great Expectations helps traders answer the question: What is possible? It is a powerful question, yet exploration of the unknown always entails risk. A more complete set of questions better suited to traders could be:
What opportunity exists from any given point on a chart?
What portion of this opportunity can be realistically captured?
What risk will be incurred in trying to do so, and how long will it take?
Great Expectations is the result of an exploration of these questions. It is a trade simulator that generates visual and quantitative information to help strategy modelers visually identify and analyse areas of optimal expectation on charts, whether they are designing automated or discretionary strategies.
WARNING: Great Expectations is NOT an indicator that helps determine the current state of a market. It works by looking at points in the past from which the future is already known. It uses one definition of repainting extensively (i.e. it goes back in the past to print information that could not have been know at the time). Repainting understood that way is in fact almost all the indicator does! —albeit for what I hope is a noble cause. The indicator is of no use whatsoever in analyzing markets in real-time. If you do not understand what it does, please stay away!
This is an indicator—not a strategy that uses TradingView’s backtesting engine. It works by simulating trades, not unlike a backtest, but with the crucial difference that it assumes a trade (either long or short) is entered on all bars in the historic sample. It walks forward from each bar and determines possible outcomes, gathering individual trade statistics that in turn generate precious global statistics from all outcomes tested on the chart.
Great Expectations provides numbers summarizing trade results on all simulations run from the chart. Those numbers cannot be compared to backtest-produced numbers since all non-filtered bars are examined, even if an entry was taken on the bar immediately preceding the current one, which never happens in a backtest. This peculiarity does NOT invalidate Great Expectations calculations; it just entails that results be considered under a different light. Provided they are evaluated within the indicator’s context, they can be useful—sometimes even more than backtesting results, e.g. in evaluating the impact of parameter-fitting or variations in entry, exit or filtering strats.
Traders and strategy modelers are creatures of hope often suffering from blurred vision; my hope is that Great Expectations will help them appraise the validity of their setup and strat intuitions in a realistic fashion, preventing confirmation bias from obstructing perspective—and great expectations from turning into financial great deceptions.
USE CASES
You’ve identified what looks like a promising setup on other indicators. You load Great Expectations on the chart and evaluate if its high-expectation areas match locations where your setup’s conditions occur. Unless today is your lucky day, chances are the indicator will help you realize your setup is not as promising as you had hoped.
You want to get a rough estimate of the optimal trade duration for a chart and you don’t mind using the entry and exit strategies provided with the indicator. You use the trade length readouts of the indicator.
You’re experimenting with a new stop strategy and want to know how long it will keep you in trades, on average. You integrate your stop strategy in the indicator’s code and look at the average trade length it produces and the TST ratio to evaluate its performance.
You have put together your own entry and exit criteria and are looking for a filter that will help you improve backtesting results. You visually ascertain the suitability of your filter by looking at its results on the charts with great Expectations, to see if your filter is choosing its areas correctly.
You have a strategy that shows backtested trades on your chart. Great Expectations can help you evaluate how well your strategy is benefitting from high-opportunity areas while avoiding poor expectation spots.
You want more complete statistics on your set of strategies than what backtesting will provide. You use Great Expectations, knowing that it tests all bars in the sample that correspond to your criteria, as opposed to backtesting results which are limited to a subset of all possible entries.
You want to fool your friends into thinking you’ve designed the holy grail of indicators, something that identifies optimal opportunities on any chart; you show them the P&L cloud.
FEATURES
For one trade
At any given point on the chart, assuming a trade is entered there, Great Expectations shows you information specific to that trade simulation both on the chart and in the Data Window.
The chart can display:
the P & L Cloud which shows whether the trade ended profitably or not, and by how much,
the Opportunity & Risk Cloud which the maximum opportunity and risk the simulation encountered. When superimposed over the P & L cloud, you will see what I call the managed opportunity and risk, i.e the portion of maximum opportunity that was captured and the portion of the maximum risk that was incurred,
the target and if it was reached,
a background that uses a gradient to show different levels of trade length, P&L or how frequently the target was reached during simulation.
The Data Window displays more than 40 values on individual trades and global results. For any given trade you will know:
Entry/Exit levels, including slippage impact,
It’s outcome and duration,
P/L achieved,
The fraction of the maximum opportunity/risk managed by the trade.
For all trades
After going through all the possible trades on the chart, the indicator will provide you with a rare view of all outcomes expressed with the P&L cloud, which allows us to instantly see the most/least profitable areas of a chart using trade data as support, while also showing its relationship with the opportunity/risk encountered during the simulation. The difference between the two clouds is the managed opportunity and risk.
The Data Window will present you with numbers which we will go through later. Some of them are: average stop size, P/L, win rate, % opportunity managed, trade lengths for different types of trade outcomes and the TST (Target:Stop Travel) ratio.
Let’s see Great Expectations in action… and remember to open your Data Window!
INPUTS
Trade direction : You must first choose if you wish to look at long or short trades. Because of the way the indicator works and the amount of visual information on the chart, it is only practical to look at one type of trades at a time. The default is Longs.
Maximum trade Length (MaxL) : This is the maximum walk forward distance the simulator will go in analyzing outcomes from any given point in the past. It also determines the size of the dead zone among the chart’s last bars. A red background line identifies the beginning of the dead zone for which not enough bars have elapsed to analyze outcomes for the maximum trade length defined. If an ATR-based entry stop is used, that length is added to the wait time before beginning simulations, so that the first entry starts with a clean ATR value. On a sample of around 16000 bars, my tests show that the indicator runs into server errors at lengths of around 290, i.e. having completed ~4,6M simulation loop iterations. That is way too high a length anyways; 100 will usually be amply enough to ring out all the possibilities out of a simulation, and on shorter time frames, 30 can be enough. While making it unduly small will prevent simulations of expressing the market’s potential, the less you use, the faster the indicator will run. The default is 40.
Unrealized P&L base at End of Trade (EOT) : When a simulation ends and the trade is still open, we calculate unrealized P&L from an exit order executed from either the last in-trade stop on the previous bar, or the close of the last bar. You can readily see the impact of this selection on the chart, with the P&L cloud. The default is on the close.
Display : The check box besides the title does nothing.
Show target : Shows a green line displaying the trade’s target expressed as a multiple of X, i.e. the amplitude of the entry stop. I call this value “X” and use it as a unit to express profit and loss on a trade (some call it “R”). The line is highlighted for trades where the close reached the target during the trade, whether the trade ended in profit or loss. This is also where you specify the multiple of X you wish to use in calculating targets. The multiple is used even if targets are not displayed.
Show P&L Cloud : The cloud allows traders to see right away the profitable areas of the chart. The only line printed with the cloud is the “end of trade line” (EOT). The EOT line is the only way one can see the level where a trade ended on the chart (in the Data Window you can see it as the “Exit Fill” value). The EOT level for the trade determines if the trade ended in a profit or a loss. Its value represents one of the following:
- fill from order executed at close of bar where stop is breached during trade (which produces “Realized P/L”),
- simulation of a fill pseudo-fill at the user-defined EOT level (last close or stop level) if the trade runs its course through MaxL bars without getting stopped (producing Unrealized P/L).
The EOT line and the cloud fill print in green when the trade’s outcome is profitable and in red when it is not. If the trade was closed after breaching the stop, the line appears brighter.
Show Opportunity&Risk Cloud : Displays the maximum opportunity/risk that was present during the trade, i.e. the maximum and minimum prices reached.
Background Color Scheme : Allows you to choose between 3 different color schemes for the background gradients, to accommodate different types of chart background/candles. Select “None” if you don’t want a background.
Background source : Determines what value will be used to generate the different intensities of the gradient. You can choose trade length (brighter is shorter), Trade P&L (brighter is higher) or the number of times the target was reached during simulation (brighter is higher). The default is Trade Length.
Entry strat : The check box besides the title does nothing. The default strat is All bars, meaning a trade will be simulated from all bars not excluded by the filters where a MaxL bars future exists. For fun, I’ve included a pseudo-random entry strat (an indirect way of changing the seed is to vary the starting date of the simulation).
Show Filter State : Displays areas where the combination of filters you have selected are allowing entries. Filtering occurs as per your selection(s), whether the state is displayed or not. The effect of multiple selections is additive. The filters are:
1. Bar direction: Longs will only be entered if close>open and vice versa.
2. Rising Volume: Applies to both long and shorts.
3. Rising/falling MA of the length you choose over the number of bars you choose.
4. Custom indicator: You can feed your own filtering signal through this from another indicator. It must produce a signal of 1 to allow long entries and 0 to allow shorts.
Show Entry Stops :
1. Multiple of user-defined length ATR.
2. Fixed percentage.
3. Fixed value.
All entry stops are calculated using the entry fill price as a reference. The fill price is calculated from the current bar’s open, to which slippage is added if configured. This simulates the case where the strategy issued the entry signal on the previous bar for it to be executed at the next bar’s open.
The entry stop remains active until the in-trade stop becomes the more aggressive of the two stops. From then on, the entry stop will be ignored, unless a bar close breaches the in-trade stop, in which case the stop will be reset with a new entry stop and the process repeats.
Show In-trade stops : Displays in bright red the selected in-trade stop (be sure to read the note in this section about them).
1. ATR multiple: added/subtracted from the average of the two previous bars minimum/maximum of open/close.
2. A trailing stop with a deviation expressed as a multiple of entry stop (X).
3. A fixed percentage trailing stop.
Trailing stops deviations are measured from the highest/lowest high/low reached during the trade.
Note: There is a twist with the in-trade stops. It’s that for any given bar, its in-trade stop can hold multiple values, as each successive pass of the advancing simulation loops goes over it from a different entry points. What is printed is the stop from the loop that ended on that bar, which may have nothing to do with other instances of the trade’s in-trade stop for the same bar when visited from other starting points in previous simulations. There is just no practical way to print all stop values that were used for any given bar. While the printed entry stops are the actual ones used on each bar, the in-trade stops shown are merely the last instance used among many.
Include Slippage : if checked, slippage will be added/subtracted from order price to yield the fill price. Slippage is in percentage. If you choose to include slippage in the simulations, remember to adjust it by considering the liquidity of the markets and the time frame you’ll be analyzing.
Include Fees : if checked, fees will be subtracted/added to both realized an unrealized trade profits/losses. Fees are in percentage. The default fees work well for crypto markets but will need adjusting for others—especially in Forex. Remember to modify them accordingly as they can have a major impact on results. Both fees and slippage are included to remind us of their importance, even if the global numbers produced by the indicator are not representative of a real trading scenario composed of sequential trades.
Date Range filtering : the usual. Just note that the checkbox has to be selected for date filtering to activate.
DATA WINDOW
Most of the information produced by this indicator is made available in the Data Window, which you bring up by using the icon below the Watchlist and Alerts buttons at the right of the TV UI. Here’s what’s there.
Some of the information presented in the Data Window is standard trade data; other values are not so standard; e. g. the notions of managed opportunity and risk and Target:Stop Travel ratio. The interplay between all the values provided by Great Expectations is inherently complex, even for a static set of entry/filter/exit strats. During the constant updating which the habitual process of progressive refinement in building strategies that is the lot of strategy modelers entails, another level of complexity is no doubt added to the analysis of this indicator’s values. While I don’t want to sound like Wolfram presenting A New Kind of Science , I do believe that if you are a serious strategy modeler and spend the time required to get used to using all the information this indicator makes available, you may find it useful.
Trade Information
Entry Order : This is the open of the bar where simulation starts. We suppose that an entry signal was generated at the previous bar.
Entry Fill (including slip.) : The actual entry price, including slippage. This is the base price from which other values will be calculated.
Exit Order : When a stop is breached, an exit order is executed from the close of the bar that breached the stop. While there is no “In-trade stop” value included in the Data Window (other than the End of trade Stop previously discussed), this “Exit Order” value is how we can know the level where the trade was stopped during the simulation. The “Trade Length” value will then show the bar where the stop was breached.
Exit Fill (including slip.) : When the exit order is simulated, slippage is added to the order level to create the fill.
Chart: Target : This is the target calculated at the beginning of the simulation. This value also appear on the chart in teal. It is controlled by the multiple of X defined under the “Show Target” checkbox in the Inputs.
Chart: Entry Stop : This value also appears on the chart (the red dots under points where a trade was simulated). Its value is controlled by the Entry Strat chosen in the Inputs.
X (% Fill, including Fees) and X (currency) : This is the stop’s amplitude (Entry Fill – Entry Stop) + Fees. It represents the risk incurred upon entry and will be used to express P&L. We will show R expressed in both a percentage of the Entry Fill level (this value), and currency (the next value). This value represents the risk in the risk:reward ratio and is considered to be a unit of 1 so that RR can be expressed as a single value (i.e. “2” actually meaning “1:2”).
Trade Length : If trade was stopped, it’s the number of bars elapsed until then. The trade is then considered “Closed”. If the trade ends without being stopped (there is no profit-taking strat implemented, so the stop is the only exit strat), then the trade is “Open”, the length is MaxL and it will show in orange. Otherwise the value will print in green/red to reflect if the trade is winning/losing.
P&L (X) : The P&L of the trade, expressed as a multiple of X, which takes into account fees paid at entry and exit. Given our default target setting at 2 units of “X”, a trade that closes at its target will have produced a P&L of +2.0, i.e. twice the value of X (not counting fees paid at exit ). A trade that gets stopped late 50% further that the entry stop’s level will produce a P&L of -1.5X.
P&L (currency, including Fees) : same value as above, but expressed in currency.
Target first reached at bar : If price closed above the target during the trade (even if it occurs after the trade was stopped), this will show when. This value will be used in calculating our TST ratio.
Times Stop/Target reached in sim. : Includes all occurrences during the complete simulation loop.
Opportunity (X) : The highest/lowest price reached during a simulation, i.e. the maximum opportunity encountered, whether the trade was previously stopped or not, expressed as a multiple of X.
Risk (X) : The lowest/highest price reached during a simulation, i.e. the maximum risk encountered, whether the trade was previously stopped or not, expressed as a multiple of X.
Risk:Opportunity : The greater this ratio, the greater Opportunity is, compared to Risk.
Managed Opportunity (%) : The portion of Opportunity that was captured by the highest/low stop position, even if it occurred after a previous stop closed the trade.
Managed Risk (%) : The portion of risk that was protected by the lowest/highest stop position, even if it occurred after a previous stop closed the trade. When this value is greater than 100%, it means the trade’s stop is protecting more than the maximum risk, which is frequent. You will, however, never see close to those values for the Managed Opportunity value, since the stop would have to be higher than the Maximum opportunity. It is much easier to alleviate the risk than it is to lock in profits.
Managed Risk:Opportunity : The ratio of the two preceding values.
Managed Opp. vs. Risk : The Managed Opportunity minus the Managed Risk. When it is negative, which is most often is, it means your strat is protecting a greater portion of the risk than it captures opportunity.
Global Numbers
Win Rate(%) : Percentage of winning trades over all entries. Open trades are considered winning if their last stop/close (as per user selection) locks in profits.
Avg X%, Avg X (currency) : Averages of previously described values:.
Avg Profitability/Trade (APPT) : This measures expectation using: Average Profitability Per Trade = (Probability of Win × Average Win) − (Probability of Loss × Average Loss) . It quantifies the average expectation/trade, which RR alone can’t do, as the probabilities of each outcome (win/lose) must also be used to calculate expectancy. The APPT combine the RR with the win rate to yield the true expectancy of a strategy. In my usual way of expressing risk with X, APPT is the equivalent of the average P&L per trade expressed in X. An APPT of -1.5 means that we lose on average 1.5X/trade.
Equity (X), Equity (currency) : The cumulative result of all trade outcomes, expressed as a multiple of X. Multiplied by the Average X in currency, this yields the Equity in currency.
Risk:Opportunity, Managed Risk:Opportunity, Managed Opp. vs. Risk : The global values of the ones previously described.
Avg Trade Length (TL) : One of the most important values derived by going through all the simulations. Again, it is composed of either the length of stopped trades, or MaxL when the trade isn’t stopped (open). This value can help systems modelers shape the characteristics of the components they use to build their strategies.
Avg Closed Win TL and Avg Closed Lose TL : The average lengths of winning/losing trades that were stopped.
Target reached? Avg bars to Stop and Target reached? Avg bars to Target : For the trades where the target was reached at some point in the simulation, the number of bars to the first point where the stop was breached and where the target was reached, respectively. These two values are used to calculate the next value.
TST (Target:Stop Travel Ratio) : This tracks the ratio between the two preceding values (Bars to first stop/Bars to first target), but only for trades where the target was reached somewhere in the loop. A ratio of 2 means targets are reached twice as fast as stops.
The next values of this section are counts or percentages and are self-explanatory.
Chart Plots
Contains chart plots of values already describes.
NOTES
Optimization/Overfitting: There is a fine line between optimizing and overfitting. Tools like this indicator can lead unsuspecting modelers down a path of overfitting that often turns strategies into over-specialized beasts that do not perform elegantly when confronted to the real-world. Proven testing strategies like walk forward analysis will go a long way in helping modelers alleviate this risk.
Input tuning: Because the results generated by the indicator will vary with the parameters used in the active entry, filtering and exit strats, it’s important to realize that although it may be fun at first, just slapping the default settings on a chart and time frame will not yield optimal nor reliable results. While using ATR as often as possible (as I do in this indicator) is a good way to make strat parametrization adaptable, it is not a foolproof solution.
There is no data for the last MaxL bars of the chart, since not enough trade future has elapsed to run a simulation from MaxL bars back.
Modifying the code: I have tried to structure the code modularly, even if that entails a larger code base, so that you can adapt it to your needs. I’ve included a few token components in each of the placeholders designed for entry strategies, filters, entry stops and in-trade stops. This will hopefully make it easier to add your own. In the same spirit, I have also commented liberally.
You will find in the code many instances of standard trade management tasks that can be lifted to code TV strategies where, as I do in mine, you manage everything yourself and don’t rely on built-in Pine strategy functions to act on your trades.
Enjoy!
THANKS
To @scarf who showed me how plotchar() could be used to plot values without ruining scale.
To @glaz for the suggestion to include a Chandelier stop strat; I will.
To @simpelyfe for the idea of using an indicator input for the filters (if some day TV lets us use more than one, it will be useful in other modules of the indicator).
To @RicardoSantos for the random generator used in the random entry strat.
To all scripters publishing open source on TradingView; their code is the best way to learn.
To my trading buddies Irving and Bruno; who showed me way back how pro traders get it done.
Crypto grabberSo, its my first position in crypto (and not only crypto) bots series. What we have there.. program writting on Pine script language what can analyse market data of any trading instrument and signalise to enter the deal. Its next versions will update. Trade system based on my x-volume indicator.In central part of system is analyzing volume accumulation and distribution process which decide good and bad time for investing.
So some important points:
1) In time when you change timeframe or trading symbol bot analise all bars history. The number of trading (signal) candles in the analysis history is marked in black.
2) The percent of profitable signals is marked in blue.
3) Total profit points are marked in green.
4) Total bars in history are marked in red.
For better indicator vision you can turn off non interesting plots in settings menu.
There is two kinds of alerts: Buy alert and Sell alert. Set it once per bar close or every minute ( because the best way you must open the deal at 20 sec before bar close ).
This trading system is great for creating a profitable trading portfolio. Try it yourself to find exchanges and cryptocurrencies with profitable historical views. For example, the KRAKEN exchange trades well: XBTCAD, XBTUSD in 30-45 min timeframe.
I will do better settings in new versions of this bot. Waiting your likes)
Bert LONG BTC Study (Alerts) - Profit 2018: 1319 % (no leverage)Bert LONG Term BTC study (BITMEX) - script for setting alerts and trading bots
This is a revolutionary strategy for bitcoin (XBT) trading. The strategy is perfectly configured for trading on the Bitmex exchange. No further configuration and setup is required.
The strategy itself recognizes a volatile period or whether the market is in downtrend, uptrend or sideways. Accordingly, it applies the appropriate orders to reach maximum profit.
The strategy can be handled manually, you can receive alerts (popup, email, sms) or can be fully automated by bot (works with: Autoview, Gunbot, Profitview, Jubot and others) without any manual intervention.
What is the minimum and maximum capital I can trade with?
You can trade with 0.0001BTC – 1000BTC. That is one of many advantages of using this strategy on XBT. There is enough liquidity to execute the order for the market price with a big investment amount.
What is the recommended setting?
Timeframe: 45m
Chart: Bitcoin/USD Dollar Perpetual Inverse Swap Contract (XBT)
Leverage: 2x
Orders: Long and Shorts
Why was this strategy created?
You have basically two option how to make money in crypto market. HODL (buy the coin and believe it will rise to the moon) and TRADING (only 3-5% traders are profitable, most of them are full time traders with 5+ years of experience in trading).
If you HODL btc in this year, you are -70 % this year
If you are TRADING, the results depend on how good you are (think about this, if you decide to be a heart surgeon, rocket star or NBA player, do you think you can be? Yes, you can but the chances are very small. The same probability you have that you will be in the 3-5% profitable traders 😊). It takes time, you need experience and still 96% all of you will never be a profitable traders!
If you use Bert BTC long term strategy, you are + 1319 % this year
How well the Bert BTC strategy performs?
Profit in 2018 was 1319 % / 13x (without leverage)
Profit in 2018 was 11 477 % / 115x (with leverage 2)
If you invested (with leverage 2) 1 000 USD you have now 114 766 USD
If you invested (with leverage 2) 10 000 USD you have now 1 147 660 USD
Detailed trades report for 2018 (you can calculate your own profit with specific investments and leverage) – download excel here
Notes:
You will hardly find better strategy on the market which achieves similar results with minimal risk and can operate in any market condition (downtrend, uptrend, sideways).
We guarantee the strategy does not repaint, and we use real candles (not heikin ashi or renko which does not reflect real prices).
We wish you to become financially independent and all your secret wishes to be fulfilled.
And in case if you still want to HODL or you want to be TRADING all the days watching to your monitors, consider to try our strategy at least with a minimum capital invested, you will see that you will not regret in long run. Be patient and the money will come to you!
For access to this strategy visit website: www.cryptobert.io
BTC Event Contract Signal Indicator# BTC Event Contract Signal Indicator
**Version**: V1.0
**Last Updated**: December 21, 2024
**Author**: OxJohannWu
**Type**: Pine Script v6 Indicator (Overlay)
**Timeframes**: Optimized for 1-minute BTC data, supports all timeframes
## 📋 Overview
The BTC Event Contract Signal Indicator is a sophisticated technical analysis tool designed specifically for Bitcoin event contracts (binary options). This indicator provides real-time buy/sell signals with comprehensive contract tracking, performance statistics, and settlement monitoring - all displayed in Beijing time (UTC+8).
### Key Features
- **Smart Signal Generation**: Multi-layered technical analysis with adaptive filtering
- **Real-time Contract Tracking**: Monitor active contracts with automatic settlement detection
- **Performance Analytics**: Detailed win/loss statistics with daily breakdowns
- **Multi-timeframe Optimization**: Auto-adjusts parameters based on chart timeframe
- **Beijing Time Display**: All timestamps converted to Beijing timezone
- **Alert System**: TradingView alerts for all signal types
## 🎯 Trading Philosophy
This indicator combines correlation analysis, MACD momentum, and StochRSI oscillator signals to identify high-probability entry points for Bitcoin event contracts. The system prioritizes quality over quantity, using intelligent filtering to minimize false signals and maximize win rates.
## ⚙️ Parameter Configuration
### 📊 Technical Indicator Settings
- **Auto Timeframe Optimization**: Automatically selects optimal parameters based on current timeframe
- **MACD Settings**: Fast (8), Slow (21), Signal (5) - optimized for 1-minute BTC data
- **RSI Period**: 6 periods for responsive momentum detection
- **Stochastic Settings**: K smoothing (2), Period (6) for precise overbought/oversold levels
### 🔗 Correlation Analysis
- **Short-term Correlation**: 3-period correlation for immediate trend changes
- **Long-term Correlation**: 25-period correlation for broader market context
- **Correlation Slope**: Tracks momentum changes in price correlation
### 🎯 Smart Signal Optimization
Three intelligent modes to suit different trading styles:
#### Smart Balance Mode (Default)
- **Target Win Rate**: 80%+
- **Expected Signals**: 8-15 per day
- **Filtering**: 6-7 technical conditions
- **Best For**: Balanced trading with consistent profits
#### High Frequency Mode
- **Target Win Rate**: 75%+
- **Expected Signals**: 15-25 per day
- **Filtering**: 4 core technical conditions
- **Best For**: Active traders seeking more opportunities
#### Premium Quality Mode
- **Target Win Rate**: 85%+
- **Expected Signals**: 5-10 per day
- **Filtering**: 8 strict technical conditions
- **Best For**: Conservative traders prioritizing accuracy
### ⏰ Event Contract Settings
- **Contract Duration Options**: 10 Minutes, 30 Minutes, 1 Hour, 24 Hours
- **Single Contract Rule**: Only one active contract at a time
- **Auto Settlement**: Automatic win/loss detection at expiry
## 📈 Signal Generation Logic
### Core Technical Conditions
1. **Correlation Breakout**: Short-term correlation slope changes direction
2. **MACD Momentum**: MACD line above/below signal line with positive/negative slope
3. **StochRSI Position**: K-line slope changes indicating momentum shift
### Smart Filtering System
The indicator applies progressive filtering based on selected mode:
#### Basic Filters (All Modes)
- Volume above 1.4x average
- Correlation momentum confirmation
- MACD direction alignment
#### Advanced Filters (Smart Balance & Premium)
- Price action quality (body-to-wick ratio > 0.4)
- Momentum strength validation
- RSI safe zone (25-75 range)
- Optional trend filter with EMA confirmation
- Optional multi-timeframe confirmation
#### Premium Filters (Premium Quality Only)
- Enhanced volume threshold (1.8x average)
- Stricter correlation momentum (>1.0)
- Multi-timeframe EMA alignment
- Advanced momentum validation
### Signal Strength Classification
- **Normal Signals**: Basic technical alignment (small arrows)
- **Strong Signals**: Enhanced momentum + volume confirmation (large arrows)
## 🎨 Visual Display System
### Signal Arrows
- **🔼 Green Triangle Up**: Call signal (buy/long)
- **🔽 Red Triangle Down**: Put signal (sell/short)
- **💪 Enhanced Arrows**: Strong signals with special emoji indicators
### Settlement Results
- **🎉 WIN**: Profitable contracts (green)
- **💸 LOSS**: Losing contracts (red)
- **Automatic Display**: Shows results immediately upon contract expiry
### Information Labels
Each signal displays:
- Signal type (Call/Put, Normal/Strong)
- Selected mode and timeframe
- Contract duration
- Settlement results with win/loss indication
## 📊 Statistics Dashboard
### Real-time Performance Table
Located in the top-right corner, displaying:
#### Summary Statistics
- **Total Contracts**: Overall contract count
- **Overall Win Rate**: Percentage with color coding (Green: 80%+, Orange: 60-79%, Red: <60%)
- **Today's Performance**: Daily statistics with separate tracking
- **Win/Loss Breakdown**: Detailed count of profitable vs losing trades
#### Directional Analysis
- **Call Performance**: Success rate for bullish contracts
- **Put Performance**: Success rate for bearish contracts
- **Balanced Tracking**: Identifies directional bias in performance
#### System Status
- **Filter Mode**: Current smart filter status (Smart✓/Basic✗)
- **Contract Duration**: Selected timeframe
- **Beijing Time**: Real-time timestamp display
- **Current Price**: Live BTC/USDT price
- **Contract Status**: Active contract indicator (🔄 Active/✅ Ready)
## 💡 Usage Guidelines
### Optimal Setup
1. **Recommended Timeframe**: 1-minute for maximum signal frequency
2. **Symbol**: BTCUSDT or BTCUSD perpetual futures
3. **Mode Selection**: Start with "Smart Balance" for consistent performance
4. **Contract Duration**: Begin with 10-minute contracts for faster feedback
### Best Practices
- **Pre-market Analysis**: Check overall market conditions before trading
- **Risk Management**: Never risk more than 2-3% of capital per contract
- **Session Timing**: Best performance during high-volume trading sessions
- **Signal Confirmation**: Wait for arrow + label confirmation before entry
- **Performance Monitoring**: Regularly review win rate statistics
### Trading Sessions
- **Asian Session**: 00:00-08:00 Beijing Time (moderate volatility)
- **European Session**: 15:00-23:00 Beijing Time (high volatility)
- **US Session**: 21:00-05:00 Beijing Time (peak volatility)
## 🚨 Alert Configuration
### Available Alerts
1. **BTC Call Signal**: Basic bullish signal alerts
2. **BTC Put Signal**: Basic bearish signal alerts
3. **BTC Strong Call Signal**: High-quality bullish signals
4. **BTC Strong Put Signal**: High-quality bearish signals
### Alert Setup
```
Alert Condition: Select from dropdown
Frequency: Once Per Bar Close
Expiration: No expiration (for continuous monitoring)
Webhook: Optional for automated trading systems
```
### Alert Message Format
```
🚀 BTC Event Contract Call Signal
⏰ Time:
💰 Price: $
```
## 🔧 Advanced Configuration
### Parameter Optimization
- **Auto-Optimization Enabled**: Uses predefined optimized parameters
- **Manual Override**: Disable auto-optimization for custom parameter testing
- **Timeframe Adaptation**: Parameters automatically adjust for 1-min, 3-min, and higher timeframes
### Filter Customization
- **Volume Filter**: Adjustable multiplier (1.1-2.5x)
- **Trend Filter**: Optional EMA trend confirmation
- **Advanced Confirmation**: Multi-timeframe validation
- **Smart Filter**: Toggle for intelligent filtering system
## 📈 Performance Expectations
### Historical Backtesting Results
Based on extensive BTCUSDT 1-minute data testing:
#### Smart Balance Mode
- **Average Win Rate**: 78-82%
- **Daily Signals**: 10-15
- **Best Sessions**: European/US overlap
- **Recommended For**: Most traders
#### High Frequency Mode
- **Average Win Rate**: 73-77%
- **Daily Signals**: 18-25
- **Best Sessions**: High volatility periods
- **Recommended For**: Active scalpers
#### Premium Quality Mode
- **Average Win Rate**: 83-87%
- **Daily Signals**: 6-10
- **Best Sessions**: Trending market conditions
- **Recommended For**: Conservative traders
## ⚠️ Risk Warnings
### Important Disclaimers
- **High-Risk Trading**: Event contracts involve significant risk of loss
- **Market Volatility**: Cryptocurrency markets are highly volatile and unpredictable
- **No Guarantee**: Past performance does not guarantee future results
- **Capital Risk**: Only trade with funds you can afford to lose completely
### Risk Management Guidelines
- **Position Sizing**: Never risk more than 1-2% per trade
- **Daily Limits**: Set maximum daily loss limits
- **Emotional Control**: Avoid revenge trading after losses
- **Market Conditions**: Adjust exposure based on volatility
- **Continuous Monitoring**: Regularly assess indicator performance
## 🔄 Version History
### V1.0 (December 21, 2024)
- Initial English release
- Complete translation from Chinese version
- Optimized for international users
- Enhanced documentation with detailed explanations
- Maintained all original functionality and performance characteristics
## 🛠️ Technical Specifications
### Pine Script Details
- **Version**: Pine Script v6
- **Type**: Indicator with overlay=true
- **Max Objects**: 500 boxes, 500 labels
- **Memory Optimization**: Efficient array and map usage
- **Performance**: Optimized for real-time execution
### System Requirements
- **Platform**: TradingView Pro, Pro+, or Premium
- **Browser**: Modern browser with JavaScript enabled
- **Connection**: Stable internet for real-time data
- **Display**: Minimum 1080p resolution recommended
## 📞 Support & Updates
### Getting Help
- **Documentation**: Refer to this comprehensive guide
- **Common Issues**: Check parameter settings and timeframe compatibility
- **Performance**: Verify market conditions and volatility levels
### Update Policy
- **Regular Updates**: Continuous optimization based on market conditions
- **Version Tracking**: All changes documented with version numbers
- **Backward Compatibility**: Settings preserved across updates
---
**Disclaimer**: This indicator is for educational and analysis purposes only. Trading cryptocurrencies and event contracts involves substantial risk. Always conduct your own research and consider your risk tolerance before trading. The authors are not responsible for any trading losses incurred through the use of this indicator.
Bilateral Filter For Loop [BackQuant]Bilateral Filter For Loop
The Bilateral Filter For Loop is an advanced technical indicator designed to filter out market noise and smooth out price data, thus improving the identification of underlying market trends. It employs a bilateral filter, which is a sophisticated non-linear filter commonly used in image processing and price time series analysis. By considering both spatial and range differences between price points, this filter is highly effective at preserving significant trends while reducing random fluctuations, ultimately making it suitable for dynamic trend-following strategies.
Please take the time to read the following:
Key Features
1. Bilateral Filter Calculation:
The bilateral filter is the core of this indicator and works by applying a weight to each data point based on two factors: spatial distance and price range difference. This dual weighting process allows the filter to preserve important price movements while reducing the impact of less relevant fluctuations. The filter uses two primary parameters:
Spatial Sigma (σ_d): This parameter adjusts the weight applied based on the distance of each price point from the current price. A larger spatial sigma means more smoothing, as further away values will contribute more heavily to the result.
Range Sigma (σ_r): This parameter controls how much weight is applied based on the difference in price values. Larger price differences result in smaller weights, while similar price values result in larger weights, thereby preserving the trend while filtering out noise.
The output of this filter is a smoothed version of the original price series, which eliminates short-term fluctuations, helping traders focus on longer-term trends. The bilateral filter is applied over a rolling window, adjusting the level of smoothing dynamically based on both the distance between values and their relative price movements.
2. For Loop Calculation for Trend Scoring:
A for-loop is used to calculate the trend score based on the filtered price data. The loop compares the current value to previous values within the specified window, scoring the trend as follows:
+1 for upward movement (when the filtered value is greater than the previous value).
-1 for downward movement (when the filtered value is less than the previous value).
The cumulative result of this loop gives a continuous trend score, which serves as a directional indicator for the market's momentum. By summing the scores over the window period, the loop provides an aggregate value that reflects the overall trend strength. This score helps determine whether the market is experiencing a strong uptrend, downtrend, or sideways movement.
3. Long and Short Conditions:
Once the trend score has been calculated, it is compared against predefined threshold levels:
A long signal is generated when the trend score exceeds the upper threshold, indicating that the market is in a strong uptrend.
A short signal is generated when the trend score crosses below the lower threshold, signaling a potential downtrend or trend reversal.
These conditions provide clear signals for potential entry points, and the color-coding helps traders quickly identify market direction:
Long signals are displayed in green.
Short signals are displayed in red.
These signals are designed to provide high-confidence entries for trend-following strategies, helping traders capture profitable movements in the market.
4. Trend Background and Bar Coloring:
The script offers customizable visual settings to enhance the clarity of the trend signals. Traders can choose to:
Color the bars based on the trend direction: Bars are colored green for long signals and red for short signals.
Change the background color to provide additional context: The background will be shaded green for a bullish trend and red for a bearish trend. This visual feedback helps traders to stay aligned with the prevailing market sentiment.
These features offer a quick visual reference for understanding the market's direction, making it easier for traders to identify when to enter or exit positions.
5. Threshold Lines for Visual Feedback:
Threshold lines are plotted on the chart to represent the predefined long and short levels. These lines act as clear markers for when the market reaches a critical threshold, triggering a potential buy (long) or sell (short) signal. By showing these threshold lines on the chart, traders can quickly gauge the strength of the market and assess whether the trend is strong enough to warrant action.
These thresholds can be adjusted based on the trader's preferences, allowing them to fine-tune the indicator for different market conditions or asset behaviors.
6. Customizable Parameters for Flexibility:
The indicator offers several parameters that can be adjusted to suit individual trading preferences:
Window Period (Bilateral Filter): The window size determines how many past price values are used to calculate the bilateral filter. A larger window increases smoothing, while a smaller window results in more responsive, but noisier, data.
Spatial Sigma (σ_d) and Range Sigma (σ_r): These values control how sensitive the filter is to price changes and the distance between data points. Fine-tuning these parameters allows traders to adjust the degree of noise reduction applied to the price series.
Threshold Levels: The upper and lower thresholds determine when the trend score crosses into long or short territory. These levels can be customized to better match the trader's risk tolerance or asset characteristics.
Visual Settings: Traders can customize the appearance of the chart, including the line width of trend signals, bar colors, and background shading, to make the indicator more readable and aligned with their charting style.
7. Alerts for Trend Reversals:
The indicator includes alert conditions for real-time notifications when the market crosses the defined thresholds. Traders can set alerts to be notified when:
The trend score crosses the long threshold, signaling an uptrend.
The trend score crosses the short threshold, signaling a downtrend.
These alerts provide timely information, allowing traders to take immediate action when the market shows a significant change in direction.
Final Thoughts
The Bilateral Filter For Loop indicator is a robust tool for trend-following traders who wish to reduce market noise and focus on the underlying trend. By applying the bilateral filter and calculating trend scores, this indicator helps traders identify strong uptrends and downtrends, providing reliable entry signals with minimal market noise. The customizable parameters, visual feedback, and alerting system make it a versatile tool for traders seeking to improve their timing and capture profitable market movements.
Thus following all of the key points here are some sample backtests on the 1D Chart
Disclaimer: Backtests are based off past results, and are not indicative of the future.
INDEX:BTCUSD
INDEX:ETHUSD
CRYPTO:SOLUSD
Enhanced Seasonality Trade BacktestEnhanced Seasonality Trade Backtest
Overview
A comprehensive Pine Script indicator that backtests seasonal trading strategies by analyzing historical price performance during specific date ranges. The tool provides detailed statistics, visual markers, and election cycle filtering to identify profitable seasonal patterns.
Key Features
📊 Backtesting Engine
Tests up to 50 years of historical data
Configurable entry/exit dates (day/month)
Automatic holiday/weekend date adjustment
Separate analysis for long and short positions
🗳️ Election Cycle Filter
All Years: Test every year in the lookback period
Election Years: US presidential election years only (2024, 2020, 2016...)
Pre-Election Years: Years before elections (2023, 2019, 2015...)
Post-Election Years: Years after elections (2021, 2017, 2013...)
📈 Comprehensive Statistics
Win rate percentage
Total and average returns
Best/worst performing years
Detailed trade-by-trade breakdown
Years tested vs. years filtered
🎯 Visual Indicators
Entry/exit lines for all historical trades
Future trade date projections
Background highlighting during trade periods
Color-coded performance labels
⚙️ Customization Options
Toggle between long/short analysis
Show/hide price and date details
Adjustable table position
Future trade date visualization
Use Cases
Seasonal Trading: Identify recurring profitable periods (e.g., "Sell in May")
Election Cycle Analysis: Test how political cycles affect market performance
Strategy Validation: Backtest specific date-range strategies
Risk Assessment: Analyze worst-case scenarios and drawdowns
Perfect For
Swing traders looking for seasonal edges
Portfolio managers timing market entries/exits
Researchers studying market cyclicality
Anyone wanting to quantify seasonal market behavior
ONLY WORKS IN 1D TIME FRAME
RTI Shifting Band Oscillator | QuantMAC📊 RTI Shifting Band Oscillator | QuantMAC - Revolutionary Adaptive Trading Indicator
🎯 Overview
The RTI Shifting Band Oscillator represents a breakthrough in adaptive technical analysis, combining the innovative Range Transition Index (RTI) with dynamic volatility bands to create an oscillator that automatically adjusts to changing market conditions. This cutting-edge indicator goes beyond traditional static approaches by using RTI to dynamically shift band width based on market volatility transitions, providing superior signal accuracy across different market regimes.
🔧 Key Features
Revolutionary RTI Technology : Proprietary Range Transition Index that measures volatility transitions in real-time
Dynamic Adaptive Bands : Self-adjusting volatility bands that expand and contract based on RTI readings
Dual Trading Modes : Flexible Long/Short or Long/Cash strategies for different trading preferences
Advanced Performance Analytics : Comprehensive metrics including Sharpe, Sortino, and Omega ratios
Smart Visual System : Dynamic color coding with 9 professional color schemes
Precision Backtesting : Date range filtering with detailed historical performance analysis
Real-time Signal Generation : Clear entry/exit signals with customizable threshold sensitivity
Position Sizing Intelligence : Half Kelly criterion for optimal risk management
📈 How The RTI Technology Works
The Range Transition Index (RTI) is the heart of this indicator's innovation. Unlike traditional volatility measures, RTI analyzes the transitions between different volatility states, providing early warning signals for market regime changes.
RTI Calculation Process:
Calculate True Range for each period using high, low, and previous close
Compute Average True Range over the RTI Length period
Sum absolute differences between consecutive True Range values
Normalize by dividing by ATR to create the raw RTI
Apply smoothing to reduce noise and create the final RTI value
Use RTI to dynamically adjust standard deviation multipliers
The genius of RTI lies in its ability to detect when markets are transitioning between calm and volatile periods before traditional indicators catch up. This provides traders with a significant edge in timing entries and exits.
⚙️ Comprehensive Parameter Control
RTI Settings:
RTI Length : Controls the lookback period for volatility analysis (default: 25)
RTI Smoothing : Reduces noise in RTI calculations (default: 12)
Base MA Length : Foundation moving average for band calculations (default: 40)
Source : Price input selection (close, open, high, low, etc.)
Oscillator Settings:
Standard Deviation Length : Period for volatility measurement (default: 27)
SD Multiplier : Base band width adjustment (default: 1.5)
Oscillator Multiplier : Scaling factor for oscillator values (default: 100)
Signal Thresholds:
Long Threshold : Bullish signal trigger level (default: 82)
Short Threshold : Bearish signal trigger level (default: 55)
🎨 Advanced Visual System
Main Chart Elements:
Dynamic Shifting Bands : Upper and lower bands that automatically adjust width based on RTI
Adaptive Fill Zone : Color-coded area between bands showing current market state
Basis Line : Moving average foundation displayed as subtle reference points
Smart Bar Coloring : Candles change color based on oscillator state for instant visual feedback
Oscillator Pane:
Normalized RTI Oscillator : Main signal line centered around zero with dynamic coloring
Threshold Lines : Horizontal reference lines for entry/exit levels
Zero Line : Central reference for oscillator neutrality
Color State Indication : Line colors change based on bullish/bearish conditions
📊 Professional Performance Metrics
The built-in analytics suite provides institutional-grade performance measurement:
Net Profit % : Total strategy return percentage
Maximum Drawdown % : Worst peak-to-trough decline
Win Rate % : Percentage of profitable trades
Profit Factor : Ratio of gross profits to gross losses
Sharpe Ratio : Risk-adjusted return measurement
Sortino Ratio : Downside-focused risk adjustment
Omega Ratio : Probability-weighted performance ratio
Half Kelly % : Optimal position sizing recommendation
Total Trades : Complete transaction count
🎯 Strategic Trading Applications
Long/Short Mode: ⚡
Maximizes profit potential by capturing both upward and downward price movements. The RTI technology helps identify when trends are strengthening or weakening, allowing for optimal position switches between long and short.
Long/Cash Mode: 🛡️
Conservative approach ideal for retirement accounts or risk-averse traders. The indicator's adaptive nature helps identify the best times to be invested versus sitting in cash, protecting capital during adverse market conditions.
🚀 Unique Advantages
Traditional Indicators vs RTI Shifting Bands:
Static vs Dynamic : While most indicators use fixed parameters, RTI bands adapt in real-time
Lagging vs Leading : RTI detects volatility transitions before they fully manifest
One-Size vs Adaptive : The same settings work across different market conditions
Simple vs Intelligent : Advanced volatility analysis provides superior market insight
💡 Professional Setup Guide
For Day Trading (Short-term):
RTI Length: 15-20
RTI Smoothing: 8-10
Base MA Length: 20-30
Thresholds: Long 80, Short 60
For Swing Trading (Medium-term):
RTI Length: 25-35 (default range)
RTI Smoothing: 12-15
Base MA Length: 40-50
Thresholds: Long 83, Short 55 (defaults)
For Position Trading (Long-term):
RTI Length: 40-50
RTI Smoothing: 15-20
Base MA Length: 60-80
Thresholds: Long 85, Short 50
🧠 Advanced Trading Techniques
RTI Divergence Analysis:
Watch for divergences between price action and RTI readings. When price makes new highs/lows but RTI doesn't confirm, it often signals upcoming reversals.
Band Width Interpretation:
Expanding Bands : Increasing volatility, expect larger price moves
Contracting Bands : Decreasing volatility, prepare for potential breakouts
Band Touches : Price touching outer bands often signals reversal opportunities
Multi-Timeframe Analysis:
Use RTI on higher timeframes for trend direction and lower timeframes for precise entry timing.
⚠️ Important Risk Disclaimers
Past performance is not indicative of future results. This indicator represents advanced technical analysis but should never be used as the sole basis for trading decisions.
Critical Risk Factors:
Market Conditions : No indicator performs equally well in all market environments
Backtesting Limitations : Historical performance may not reflect future market behavior
Volatility Risk : Adaptive indicators can be sensitive to extreme market conditions
Parameter Sensitivity : Different settings may produce significantly different results
Capital Risk : Always use appropriate position sizing and stop-loss protection
📚 Educational Benefits
This indicator provides exceptional learning opportunities for understanding:
Advanced volatility analysis and measurement techniques
Adaptive indicator design and implementation
The relationship between volatility transitions and price movements
Professional risk management using Kelly Criterion principles
Modern oscillator interpretation and signal generation
🔍 Market Applications
The RTI Shifting Band Oscillator works across various markets:
Forex : Excellent for currency pair volatility analysis
Stocks : Individual equity and index trading
Commodities : Adaptive to commodity market volatility cycles
Cryptocurrencies : Handles extreme volatility variations effectively
Futures : Professional derivatives trading applications
🔧 Technical Innovation
The RTI Shifting Band Oscillator represents years of research into adaptive technical analysis. The proprietary RTI calculation method has been optimized for:
Computational Efficiency : Fast calculation even on high-frequency data
Noise Reduction : Advanced smoothing without excessive lag
Market Adaptability : Automatic adjustment to changing conditions
Signal Clarity : Clear, actionable trading signals
🔔 Updates and Evolution
The RTI Shifting Band Oscillator | QuantMAC continues to evolve with regular updates incorporating the latest research in adaptive technical analysis. The code is thoroughly documented for transparency and educational purposes.
Trading Notice: Financial markets involve substantial risk of loss. The RTI Shifting Band Oscillator is a sophisticated technical analysis tool designed to assist in trading decisions but cannot guarantee profitable outcomes. Always conduct thorough testing, implement proper risk management, and consider seeking advice from qualified financial professionals. Only trade with capital you can afford to lose.
---
Master The Markets With Adaptive Intelligence! 🎯📈
Metrics TJ
📘 Metrics TJ
Author: Trade Journey
Type: Market Metrics / Intraday
Timeframes:
Context: 1H
Entry Points: 15m
---
🎯 Core Idea
Metrics TJ is a powerful market metrics tool designed for intraday traders. It provides essential market data — including volume, ATR (Average True Range), and correlation with other assets — to help you make informed decisions. By combining multiple indicators into a unified view, this tool allows you to spot key trends, volatility, and relative strength within a single chart.
---
🔍 Strategy Logic
1. Context (1H)
Before making intraday decisions on smaller timeframes (such as the 15m chart), use the 1H timeframe to understand the broader market context:
Look at candle structure, levels, volume, and other signals to identify if the market is trending or consolidating.
Example: If the 1H chart shows rising volume and a series of higher highs and lows, it indicates an uptrend.
2. Core Metrics
Day Volume (DV): Total volume traded over the past 24 hours. A sharp increase may indicate increased market interest and potential for higher volatility.
Average Volume (AV): A smoothed average volume over a set period. Spikes in average volume can highlight unusual activity, signaling potential moves.
ATR (NATR): Measures the market's volatility. A high ATR means the market is moving more dynamically, often correlating with larger price moves.
Correlation (CR): Measures how strongly the asset is correlated with a reference pair, such as BTC. A strong positive or negative correlation could indicate an impending move or reversal.
3. Trade Filter
To improve the accuracy of the strategy:
Use Volume and ATR thresholds to filter out low-volatility or range-bound conditions.
Correlation with a reference asset helps identify when the market's behavior diverges from its usual pattern.
---
📈 Example of Entry Logic
1. On 1H: The market is in a confirmed uptrend, with rising volume and a series of higher highs.
2. On 15m: You observe an increase in Day Volume and Average Volume signaling potential for a breakout.
3. ATR is high, showing the market is volatile — indicating a good environment for intraday trading.
4. Correlation with BTC shows strong positive correlation, suggesting a price move in sync with the larger crypto market.
5. Trade Decision:
Enter long if the conditions are met: Volume spikes, ATR confirms volatility, and correlation supports the price direction.
Exit if volume decreases, ATR drops, or if the correlation weakens.
---
⚙️ Settings
(tradingview\.com/x/Y6PjccKy/)
---
📊 Why It Works
Day Volume and Average Volume help identify unusual activity, potentially signaling a price move.
ATR highlights periods of high volatility, which are crucial for intraday trading.
Correlation with major assets (like BTC) gives additional context on the market's broader movement, improving the probability of profitable trades.
Using a combination of volume and ATR reduces the likelihood of false signals, especially in choppy or low-volume environments.
---
🔔 Recommendations
Best used in strong trending markets where volume and volatility are in sync.
Avoid trading in range-bound conditions where price action lacks momentum.
Use this strategy as a supplement to other technical indicators or as part of a larger trading system.
---
✅ Conclusion
Metrics TJ provides a holistic view of the market, combining key metrics to help traders make smarter intraday decisions. By focusing on volume, volatility, and correlation, it can help you spot high-probability trades and avoid noise.
Try it on demo, adjust the settings to fit your trading style, and start identifying profitable opportunities!
---
📌 Important Note:
This indicator is best used in combination with higher timeframe analysis. Always consider the broader market context before making any trades.
Atlas Trend RsiAtlas Trend RSI – User Guide
1. Indicator Purpose
Atlas Trend RSI combines a classic RSI oscillator on the average price with optional smoothing, color-coded zones, and automatic pivot signals. It highlights overbought/oversold extremes, neutral ranges, and divergence-based profit-taking points.
2. Inputs & Configuration
Timeframe: Select a higher or lower timeframe RSI to overlay on your chart. Leave blank to match the chart’s timeframe.
Period: The length of the RSI calculation (default 14). Shorter values increase sensitivity; longer values smooth the line.
MA Type (SMA/EMA/RMA/WMA/VWMA): When “Average” is enabled, this applies a moving average to the RSI to filter noise.
Show Average: Toggle on to plot the smoothed RSI line. Use in ranging markets to reduce false signals.
Show Divergence Line: Toggles drawing of a line connecting RSI pivot highs/lows to help you spot hidden or regular divergence.
3. Colored Zones & Interpretation
10–40 (Oversold Zone): Shade in red. Watch for bullish reversals when RSI turns up from this area.
40–60 (Neutral Zone): Light gray. Indicates consolidation—no strong trend.
60–90 (Overbought Zone): Shade in green. Watch for bearish reversals when RSI turns down from this area.
Mid-zone (50 line): A break above/below 50 can confirm a shift from bearish to bullish momentum or vice versa.
4. Signal Tables & Emojis
Top-right: Bull 🐂, Bear 🐻 or Scale ⚖️ emoji appears when RSI pivot conditions trigger:
🐂 when a profitable long-exit (RSI peaked and turned down above overbought).
🐻 when a profitable short-exit (RSI troughed and turned up below oversold).
⚖️ when no clear pivot.
Bottom-right: Displays the current RSI value in parentheses for at-a-glance monitoring.
5. Alert Conditions
Two built-in alerts are available:
Long Profit-Take: Fires when RSI turns down after reaching your overbought threshold.
Short Profit-Take: Fires when RSI turns up after reaching your oversold threshold.
To enable, open the Alerts dialog, select “Atlas Trend RSI,” then choose “Long Profit-Take” or “Short Profit-Take.”
6. Recommended Usage
Trend Confirmation: In a strong uptrend, use dips into the 40–60 zone as buy opportunities; exits when you see the 🐂 alert.
Range Trading: In sideways markets, buy near the 10–20 level and sell near the 80–90 level, using the average line to filter noise.
Divergence Spotting: Enable “Divergence Line” to draw lines between price swings and RSI swings—look for hidden divergence (supports trend) or regular divergence (signals reversal).
Multi-TF Analysis: Apply a 4-hour RSI on a 1-hour chart to see the higher-TF momentum context.
7. Disclaimers
For educational purposes only; not financial advice.
Past performance does not guarantee future results.
Use these explanations in your TradingView publish dialog under “How to use” or “Usage.” Traders will immediately understand what each colored zone, emoji, and alert means and how to apply Atlas Trend RSI in their strategies.