Default Strategy Template© CN_FX-999
Coded By Christian Nataliano
First Coded In 14/06/2023
Last Edited In 22/06/2023
This Is A Default Strategy Template That Can Make Your Strategy Scripts More Organized With The Benefit Of Having The Same Layouts & Not Needing To Copy Over The Common Codes Such As Displaying Backtest Results, Opening & Closing Trades, Pine Connector Capabilities And A Clean User Input Interface. This Is A Blank Strategy Script So Feel Free To Use It As Your Default Template For Your Future Strategies.
Credits To Some Of The Custom Code In The Scripts To © ZenAndTheArtOfTrading, Especially The Table Data Plotting
Educational
Heikin Ashi ROC Percentile Strategy**User Guide for the "Heikin Ashi ROC Percentile Strategy"**
This strategy, "Heikin Ashi ROC Percentile Strategy", is designed to provide an easy-to-use framework for trading based on the Heikin Ashi Rate of Change (ROC) and its percentiles.
Here's how you can use it:
1. **Setting the Start Date**: You can set the start date for the strategy in the user inputs at the top of the script. The variable `startDate` defines the point from which the script begins executing trades. Simply input the desired date in the format "YYYY MM DD". For example, to start the strategy from March 3, 2023, you would enter `startDate = timestamp("2023 03 03")`.
2. **Adjusting the Midline, Lookback Period, and Stop Loss Level**: The `zerohLine`, `rocLength`, and `stopLossLevel` inputs allow you to adjust the baseline for ROC, the lookback period for the SMA and ROC, and the level at which the strategy stops the loss, respectively. By tweaking these parameters, you can fine-tune the strategy to better suit your trading style or the particular characteristics of the asset you are trading.
3. **Understanding the Trade Conditions**: The script defines conditions for entering and exiting long and short positions based on crossovers and crossunders of the ROC and the upper and lower "kill lines". These lines are defined as certain percentiles of the ROC's highest and lowest values over a specified lookback period. When the ROC crosses above the lower kill line, the script enters a long position; when it crosses below the upper kill line, it exits the position. Similarly, when the ROC crosses below the upper kill line, the script enters a short position; when it crosses above the lower kill line, it exits the position.
In my testing, this strategy performed best on a day and hour basis. However, I encourage you to experiment with different timeframes and settings to see how the strategy performs under various conditions. Remember, there's no one-size-fits-all approach to trading; what works best will depend on your specific circumstances, goals, and risk tolerance.
If you find other useful applications for this strategy, please let me know in the comments. Your feedback is invaluable in helping to refine and improve this tool. Happy trading!
Titan Investments|Quantitative THEMIS|Pro|BINANCE:BTCUSDTP:4hInvestment Strategy (Quantitative Trading)
| 🛑 | Watch "LIVE" and 'COPY' this strategy in real time:
🔗 Link: www.tradingview.com
Hello, welcome, feel free 🌹💐
Since the stone age to the most technological age, one thing has not changed, that which continues impress human beings the most, is the other human being!
Deep down, it's all very simple or very complicated, depends on how you look at it.
I believe that everyone was born to do something very well in life.
But few are those who have, let's use the word 'luck' .
Few are those who have the 'luck' to discover this thing.
That is why few are happy and successful in their jobs and professions.
Thank God I had this 'luck' , and discovered what I was born to do well.
And I was born to program. 👨💻
📋 Summary : Project Titan
0️⃣ : 🦄 Project Titan
1️⃣ : ⚖️ Quantitative THEMIS
2️⃣ : 🏛️ Titan Community
3️⃣ : 👨💻 Who am I ❔
4️⃣ : ❓ What is Statistical/Probabilistic Trading ❓
5️⃣ : ❓ How Statistical/Probabilistic Trading works ❓
6️⃣ : ❓ Why use a Statistical/Probabilistic system ❓
7️⃣ : ❓ Why the human brain is not prepared to do Trading ❓
8️⃣ : ❓ What is Backtest ❓
9️⃣ : ❓ How to build a Consistent system ❓
🔟 : ❓ What is a Quantitative Trading system ❓
1️⃣1️⃣ : ❓ How to build a Quantitative Trading system ❓
1️⃣2️⃣ : ❓ How to Exploit Market Anomalies ❓
1️⃣3️⃣ : ❓ What Defines a Robust, Profitable and Consistent System ❓
1️⃣4️⃣ : 🔧 Fixed Technical
1️⃣5️⃣ : ❌ Fixed Outputs : 🎯 TP(%) & 🛑SL(%)
1️⃣6️⃣ : ⚠️ Risk Profile
1️⃣7️⃣ : ⭕ Moving Exits : (Indicators)
1️⃣8️⃣ : 💸 Initial Capital
1️⃣9️⃣ : ⚙️ Entry Options
2️⃣0️⃣ : ❓ How to Automate this Strategy ❓ : 🤖 Automation : 'Third-Party Services'
2️⃣1️⃣ : ❓ How to Automate this Strategy ❓ : 🤖 Automation : 'Exchanges
2️⃣2️⃣ : ❓ How to Automate this Strategy ❓ : 🤖 Automation : 'Messaging Services'
2️⃣3️⃣ : ❓ How to Automate this Strategy ❓ : 🤖 Automation : '🧲🤖Copy-Trading'
2️⃣4️⃣ : ❔ Why be a Titan Pro 👽❔
2️⃣5️⃣ : ❔ Why be a Titan Aff 🛸❔
2️⃣6️⃣ : 📋 Summary : ⚖️ Strategy: Titan Investments|Quantitative THEMIS|Pro|BINANCE:BTCUSDTP:4h
2️⃣7️⃣ : 📊 PERFORMANCE : 🆑 Conservative
2️⃣8️⃣ : 📊 PERFORMANCE : Ⓜ️ Moderate
2️⃣9️⃣ : 📊 PERFORMANCE : 🅰 Aggressive
3️⃣0️⃣ : 🛠️ Roadmap
3️⃣1️⃣ : 🧻 Notes ❕
3️⃣2️⃣ : 🚨 Disclaimer ❕❗
3️⃣3️⃣ : ♻️ ® No Repaint
3️⃣4️⃣ : 🔒 Copyright ©️
3️⃣5️⃣ : 👏 Acknowledgments
3️⃣6️⃣ : 👮 House Rules : 📺 TradingView
3️⃣7️⃣ : 🏛️ Become a Titan Pro member 👽
3️⃣8️⃣ : 🏛️ Be a member Titan Aff 🛸
0️⃣ : 🦄 Project Titan
This is the first real, 100% automated Quantitative Strategy made available to the public and the pinescript community for TradingView.
You will be able to automate all signals of this strategy for your broker , centralized or decentralized and also for messaging services : Discord, Telegram or Twitter .
This is the first strategy of a larger project, in 2023, I will provide a total of 6 100% automated 'Quantitative' strategies to the pinescript community for TradingView.
The future strategies to be shared here will also be unique , never before seen, real 'Quantitative' bots with real, validated results in real operation.
Just like the 'Quantitative THEMIS' strategy, it will be something out of the loop throughout the pinescript/tradingview community, truly unique tools for building mutual wealth consistently and continuously for our community.
1️⃣ : ⚖️ Quantitative THEMIS : Titan Investments|Quantitative THEMIS|Pro|BINANCE:BTCUSDTP:4h
This is a truly unique and out of the curve strategy for BTC /USD .
A truly real strategy, with real, validated results and in real operation.
A unique tool for building mutual wealth, consistently and continuously for the members of the Titan community.
Initially we will operate on a monthly, quarterly, annual or biennial subscription service.
Our goal here is to build a great community, in exchange for an extremely fair value for the use of our truly unique tools, which bring and will bring real results to our community members.
With this business model it will be possible to provide all Titan users and community members with the purest and highest degree of sophistication in the market with pinescript for tradingview, providing unique and truly profitable strategies.
My goal here is to offer the best to our members!
The best 'pinescript' tradingview service in the world!
We are the only Start-Up in the world that will decentralize real and full access to truly real 'quantitative' tools that bring and will bring real results for mutual and ongoing wealth building for our community.
2️⃣ : 🏛️ Titan Community : 👽 Pro 🔁 Aff 🛸
Become a Titan Pro 👽
To get access to the strategy: "Quantitative THEMIS" , and future Titan strategies in a 100% automated way, along with all tutorials for automation.
Pro Plans: 30 Days, 90 Days, 12 Months, 24 Months.
👽 Pro 🅼 Monthly
👽 Pro 🆀 Quarterly
👽 Pro🅰 Annual
👽 Pro👾Two Years
You will have access to a truly unique system that is out of the curve .
A 100% real, 100% automated, tested, validated, profitable, and in real operation strategy.
Become a Titan Affiliate 🛸
By becoming a Titan Affiliate 🛸, you will automatically receive 50% of the value of each new subscription you refer .
You will receive 50% for any of the above plans that you refer .
This way we will encourage our community to grow in a fair and healthy way, because we know what we have in our hands and what we deliver real value to our users.
We are at the highest level of sophistication in the market, the consistency here and the results here speak for themselves.
So growing our community means growing mutual wealth and raising collective conscience.
Wealth must be created not divided.
And here we are creating mutual wealth on all ends and in all ways.
A non-zero sum system, where everybody wins.
3️⃣ : 👨💻 Who am I ❔
My name is FilipeSoh I am 26 years old, Technical Analyst, Trader, Computer Engineer, pinescript Specialist, with extensive experience in several languages and technologies.
For the last 4 years I have been focusing on developing, editing and creating pinescript indicators and strategies for Tradingview for people and myself.
Full-time passionate workaholic pinescript developer with over 10,000 hours of pinescript development.
• Pinescript expert ▬Tradingview.
• Specialist in Automated Trading
• Specialist in Quantitative Trading.
• Statistical/Probabilistic Trading Specialist - Mark Douglas Scholl.
• Inventor of the 'Classic Forecast' Indicators.
• Inventor of the 'Backtest Table'.
4️⃣ : ❓ What is Statistical/Probabilistic Trading ❓
Statistical/probabilistic trading is the only way to get a positive mathematical expectation regarding the market and consequently that is the only way to make money consistently from it.
I will present below some more details about the Quantitative THEMIS strategy, it is a real strategy, tested, validated and in real operation, 'Skin in the Game' , a consistent way to make money with statistical/probabilistic trading in a 100% automated.
I am a Technical Analyst , I used to be a Discretionary Trader , today I am 100% a Statistical Trader .
I've gotten rich and made a lot of money, and I've also lost a lot with 'leverage'.
That was a few years ago.
The book that changed everything for me was "Trading in The Zone" by Mark Douglas.
That's when I understood that the market is just a game of statistics and probability, like a casino!
It was then that I understood that the human brain is not prepared for trading, because it involves triggers and mental emotions.
And emotions in trading and in making trading decisions do not go well together, not in the long run, because you always have the burden of being wrong with the outcome of that particular position.
But remembering that the market is just a statistical game!
5️⃣ : ❓ How Statistical/Probabilistic Trading works ❓
Let's use a 'coin' as an example:
If we toss a 'coin' up 10 times.
Do you agree that it is impossible for us to know exactly the result of the 'plays' before they actually happen?
As in the example above, would you agree, that we cannot "guess" the outcome of a position before it actually happens?
As much as we cannot "guess" whether the coin will drop heads or tails on each flip.
We can analyze the "backtest" of the 10 moves made with that coin:
If we analyze the 10 moves and count the number of times the coin fell heads or tails in a specific sequence, we then have a percentage of times the coin fell heads or tails, so we have a 'backtest' of those moves.
Then on the next flip we can now assume a point or a favorable position for one side, the side with the highest probability .
In a nutshell, this is more or less how probabilistic statistical trading works.
As Statistical Traders we can never say whether such a Trader/Position we take will be a winner or a loser.
But still we can have a positive and consistent result in a "sequence" of trades, because before we even open a position, backtests have already been performed so we identify an anomaly and build a system that will have a positive statistical advantage in our favor over the market.
The advantage will not be in one trade itself, but in the "sequence" of trades as a whole!
Because our system will work like a casino, having a positive mathematical expectation relative to the players/market.
Design, develop, test models and systems that can take advantage of market anomalies, until they change.
Be the casino! - Mark Douglas
6️⃣ : ❓ Why use a Statistical/Probabilistic system ❓
In recent years I have focused and specialized in developing 100% automated trading systems, essentially for the cryptocurrency market.
I have developed many extremely robust and efficient systems, with positive mathematical expectation towards the market.
These are not complex systems per se , because here we want to avoid 'over-optimization' as much as possible.
As Da Vinci said: "Simplicity is the highest degree of sophistication".
I say this because I have tested, tried and developed hundreds of systems/strategies.
I believe I have programmed more than 10,000 unique indicators/strategies, because this is my passion and purpose in life.
I am passionate about what I do, completely!
I love statistical trading because it is the only way to get consistency in the long run!
This is why I have studied, applied, developed, and specialized in 100% automated cryptocurrency trading systems.
The reason why our systems are extremely "simple" is because, as I mentioned before, in statistical trading we want to exploit the market anomaly to the maximum, that is, this anomaly will change from time to time, usually we can exploit a trading system efficiently for about 6 to 12 months, or for a few years, that is; for fixed 'scalpers' systems.
Because at some point these anomalies will be identified , and from the moment they are identified they will be exploited and will stop being anomalies .
With the system presented here; you can even copy the indicators and input values shared here;
However; what I have to offer you is: it is me , our team , and our community !
That is, we will constantly monitor this system, for life , because our goal here is to create a unique , perpetual , profitable , and consistent system for our community.
Myself , our team and our community will keep this script periodically updated , to ensure the positive mathematical expectation of it.
So we don't mind sharing the current parameters and values , because the real value is also in the future updates that this system will receive from me and our team , guided by our culture and our community of real users !
As we are hosted on 'tradingview', all future updates for this strategy, will be implemented and updated automatically on your tradingview account.
What we want here is: to make sure you get gains from our system, because if you get gains , our ecosystem will grow as a whole in a healthy and scalable way, so we will be generating continuous mutual wealth and raising the collective consciousness .
People Need People: 3️⃣🅿
7️⃣ : ❓ Why the human brain is not prepared to do Trading ❓
Today my greatest skill is to develop statistically profitable and 100% automated strategies for 'pinescript' tradingview.
Note that I said: 'profitable' because in fact statistical trading is the only way to make money in a 'consistent' way from the market.
And consequently have a positive wealth curve every cycle, because we will be based on mathematics, not on feelings and news.
Because the human brain is not prepared to do trading.
Because trading is connected to the decision making of the cerebral cortex.
And the decision making is automatically linked to emotions, and emotions don't match with trading decision making, because in those moments, we can feel the best and also the worst sensations and emotions, and this certainly affects us and makes us commit grotesque mistakes!
That's why the human brain is not prepared to do trading.
If you want to participate in a fully automated, profitable and consistent trading system; be a Titan Pro 👽
I believe we are walking an extremely enriching path here, not only in terms of financial returns for our community, but also in terms of knowledge about probabilistic and automated statistical trading.
You will have access to an extremely robust system, which was built upon very strong concepts and foundations, and upon the world's main asset in a few years: Bitcoin .
We are the tip of the best that exists in the cryptocurrency market when it comes to probabilistic and automated statistical trading.
Result is result! Me being dressed or naked.
This is just the beginning!
But there is a way to consistently make money from the market.
Being the Casino! - Mark Douglas
8️⃣ : ❓ What is Backtest ❓
Imagine the market as a purely random system, but even in 'randomness' there are patterns.
So now imagine the market and statistical trading as follows:
Repeating the above 'coin' example, let's think of it as follows:
If we toss a coin up 10 times again.
It is impossible to know which flips will have heads or tails, correct?
But if we analyze these 10 tosses, then we will have a mathematical statistic of the past result, for example, 70 % of the tosses fell 'heads'.
That is:
7 moves fell on "heads" .
3 moves fell on "tails" .
So based on these conditions and on the generic backtest presented here, we could adopt " heads " as our system of moves, to have a statistical and probabilistic advantage in relation to the next move to be performed.
That is, if you define a system, based on backtests , that has a robust positive mathematical expectation in relation to the market you will have a profitable system.
For every move you make you will have a positive statistical advantage in your favor over the market before you even make the move.
Like a casino in relation to all its players!
The casino does not have an advantage over one specific player, but over all players, because it has a positive mathematical expectation about all the moves that night.
The casino will always have a positive statistical advantage over its players.
Note that there will always be real players who will make real, million-dollar bankrolls that night, but this condition is already built into the casino's 'strategy', which has a pre-determined positive statistical advantage of that night as a whole.
Statistical trading is the same thing, as long as you don't understand this you will keep losing money and consistently.
9️⃣ : ❓ How to build a Consistent system ❓
See most traders around the world perform trades believing that that specific position taken will make them filthy rich, because they simply believe faithfully that the position taken will be an undoubted winner, based on a trader's methodology: 'trading a trade' without analyzing the whole context, just using 'empirical' aspects in their system.
But if you think of trading, as a sequence of moves.
You see, 'a sequence' !
When we think statistically, it doesn't matter your result for this , or for the next specific trade , but the final sequence of trades as a whole.
As the market has a random system of results distribution , if your system has a positive statistical advantage in relation to the market, at the end of that sequence you'll have the biggest probability of having a winning bank.
That's how you do real trading!
And with consistency!
Trading is a long term game, but when you change the key you realize that it is a simple game to make money in a consistent way from the market, all you need is patience.
Even more when we are based on Bitcoin, which has its 'Halving' effect where, in theory, we will never lose money in 3 to 4 years intervals, due to its scarcity and the fact that Bitcoin is the 'discovery of digital scarcity' which makes it the digital gold, we believe in this thesis and we follow Satoshi's legacy.
So align Bitcoin with a probabilistic statistical trading system with a positive mathematical expectation of the market and 100% automated with the long term, and all you need is patience, and you will become rich.
In fact Bitcoin by itself is already a path, buy, wait for each halving and your wealth will be maintained.
No inflation, unlike fiat currencies.
This is a complete and extremely robust strategy, with the most current possible and 'not possible' techniques involved and applied here.
Today I am at another level in developing 100% automated 'quantitative' strategies.
I was born for this!
🔟 : ❓ What is a Quantitative Trading system ❓
In addition to having access to a revolutionary strategy you will have access to disruptive 100% multifunctional tables with the ability to perform 'backtests' for better tracking and monitoring of your system on a customized basis.
I would like to emphasize one thing, and that is that you keep this in mind.
Today my greatest skill in 'pinescript' is to build indicators, but mainly strategies, based on statistical and probabilistic trading, with a postive mathematical expectation in relation to the market, in a 100% automated way.
This with the goal of building a consistent and continuous positive equity curve through mathematics using data, converting it into statistical / probabilistic parameters and applying them to a Quantitative model.
Before becoming a Quantitative Trader , I was a Technical Analyst and a Discretionary Trader .
First as a position trader and then as a day trader.
Before becoming a Trader, I trained myself as a Technical Analyst , to masterly understand the shape and workings of the market in theory.
But everything changed when I met 'Mark Douglas' , when I got to know his works, that's when my head exploded 🤯, and I started to understand the market for good!
The market is nothing more than a 'random' system of distributing results.
See that I said: 'random' .
Do yourself a mental exercise.
Is there really such a thing as random ?
I believe not, as far as we know maybe the 'singularity'.
So thinking this way, to translate, the market is nothing more than a game of probability, statistics and pure mathematics.
Like a casino!
What happens is that most traders, whenever they take a position, take it with all the empirical certainty that such position will win or lose, and do not take into consideration the total sequence of results to understand their place in the market.
Understanding your place in the market gives you the ability to create and design systems that can exploit the present market anomaly, and thus make money statistically, consistently, and 100% automated.
Thinking of it this way, it is easy to make money from the market.
There are many ways to make money from the market, but the only consistent way I know of is through 'probabilistic and automated statistical trading'.
1️⃣1️⃣ : ❓ How to build a Quantitative Trading system ❓
There are some fundamental points that must be addressed here in order to understand what makes up a system based on statistics and probability applied to a quantitative model.
When we talk about 'discretionary' trading, it is a trading system based on human decisions after the defined 'empirical' conditions are met.
It is quite another thing to build a fully automated system without any human interference/interaction .
That said:
Building a statistically profitable system is perfectly possible, but this is a high level task , but with possible high rewards and consistent gains.
Here you will find a real "Skin In The Game" strategy.
With all due respect, but the vast majority of traders who post strategies on TradingView do not understand what they are doing.
Most of them do not understand the minimum complexity involved in the main variable for the construction of a real strategy, the mother variable: "strategy".
I say this by my own experience, because I have analyzed practically all the existing publications of TradingView + 200,000 indicators and strategies.
I breathe pinescript, I eat pinescript, I sleep pinescript, I bathe pinescript, I live TradingView.
But the main advantage for the TradingView users, is that all entry and exit orders made by this strategy can be checked and analyzed thoroughly, to validate and prove the veracity of this strategy, because this is a 100% real strategy.
Here there is a huge world of possibilities, but only one way to build a 'pinescript strategy' that will work correctly aligned to the real world with real results .
There are some fundamental points to take into consideration when building a profitable trading system:
The most important of these for me is: 'DrawDown' .
Followed by: 'Hit Rate' .
And only after that we use the parameter: 'Profit'.
See, this is because here, we are dealing with the 'imponderable' , and anything can happen in this scenario.
But there is one thing that makes us sleep peacefully at night, and that is: controlling losses .
That is, in other words: controlling the DrawDown .
The amateur is concerned with 'winning', the professional is concerned with conserving capital.
If we have the losses under control, then we can move on to the other two parameters: hit rate and profit.
See, the second most important factor in building a system is the hit rate.
I say this from my own experience.
I have worked with many systems with a 'low hit rate', but extremely profitable.
For example: systems with hit rates of 40 to 50%.
But as much as statistically and mathematically the profit is rewarding, operating systems with a low hit rate is always very stressful psychologically.
That's why there are two big reasons why when I build an automated trading system, I focus on the high hit rate of the system, they are
1 - To reduce psychological damage as much as possible .
2 - And more important , when we create a system with a 'high hit rate' , there is a huge intrinsic advantage here, that most statistic traders don't take in consideration.
That is: knowing more quickly when the system stops being functional.
The main advantage of a system with a high hit rate is: to identify when the system stops being functional and stop exploiting the market's anomaly.
Look: When we are talking about trading and random distribution of results on the market, do you agree that when we create a trading system, we are focused on exploring some anomaly of that market?
When that anomaly is verified by the market, it will stop being functional with time.
That's why trading systems, 'scalpers', especially for cryptocurrencies, need constant monitoring, quarterly, semi-annually or annually.
Because market movements change from time to time.
Because we go through different cycles from time to time, such as congestion cycles, accumulation , distribution , volatility , uptrends and downtrends .
1️⃣2️⃣ : ❓ How to Exploit Market Anomalies ❓
You see there is a very important point that must be stressed here.
As we are always trying to exploit an 'anomaly' in the market.
So the 'number' of indicators/tools that will integrate the system is of paramount importance.
But most traders do not take this into consideration.
To build a professional, robust, consistent, and profitable system, you don't need to use hundreds of indicators to build your setup.
This will actually make it harder to read when the setup stops working and needs some adjustment.
So focusing on a high hit rate is very important here, this is a fundamental principle that is widely ignored , and with a high hit rate, we can know much more accurately when the system is no longer functional much faster.
As Darwin said: "It is not the strongest or the most intelligent that wins the game of life, it is the most adapted.
So simple systems, as contradictory as it may seem, are more efficient, because they help to identify inflection points in the market much more quickly.
1️⃣3️⃣ : ❓ What Defines a Robust, Profitable and Consistent System ❓
See I have built, hundreds of thousands of indicators and 'pinescript' strategies, hundreds of thousands.
This is an extremely professional, robust and profitable system.
Based on the currency pairs: BTC /USDT
There are many ways and avenues to build a profitable trading setup/system.
And actually this is not a difficult task, taking in consideration, as the main factor here, that our trading and investment plan is for the long term, so consequently we will face scenarios with less noise.
He who is in a hurry eats raw.
As mentioned before.
Defining trends in pinescript is technically a simple task, the hardest task is to determine congestion zones with low volume and volatility, it's in these moments that many false signals are generated, and consequently is where most setups face their maximum DrawDown.
That's why this strategy was strictly and thoroughly planned, built on a very solid foundation, to avoid as much noise as possible, for a positive and consistent equity curve in each market cycle, 'Consistency' is our 'Mantra' around here.
1️⃣4️⃣ : 🔧 Fixed Technical
• Strategy: Titan Investments|Quantitative THEMIS|Pro|BINANCE:BTCUSDTP:4h
• Pair: BTC/USDTP
• Time Frame: 4 hours
• Broker: Binance (Recommended)
For a more conservative scenario, we have built the Quantitative THEMIS for the 4h time frame, with the main focus on consistency.
So we can avoid noise as much as possible!
1️⃣5️⃣ : ❌ Fixed Outputs : 🎯 TP(%) & 🛑SL(%)
In order to build a 'perpetual' system specific to BTC/USDT, it took a lot of testing, and more testing, and a lot of investment and research.
There is one initial and fundamental point that we can address to justify the incredible consistency presented here.
That fundamental point is our exit via Take Profit or Stop Loss percentage (%).
🎯 Take Profit (%)
🛑 Stop Loss (%)
See, today I have been testing some more advanced backtesting models for some cryptocurrency systems.
In which I perform 'backtest of backtest', i.e. we use a set of strategies each focused on a principle, operating individually, but they are part of something unique, i.e. we do 'backtests' of 'backtests' together.
What I mean is that we do a lot of backtesting around here.
I can assure you, that always the best output for a trading system is to set fixed output values!
In other words:
🎯 Take Profit (%)
🛑 Stop Loss (%)
This happens because statistically setting fixed exit structures in the vast majority of times, presents a superior result on the capital/equity curve, throughout history and for the vast majority of setups compared to other exit methods.
This is due to a mathematical principle of simplicity, 'avoiding more noise'.
Thus whenever the Quantitative THEMIS strategy takes a position it has a target and a defined maximum stop percentage.
1️⃣6️⃣ : ⚠️ Risk Profile
The strategy, currently has 3 risk profiles ⚠️ patterns for 'fixed percentage exits': Take Profit (%) and Stop Loss (%) .
They are: ⚠️ Rich's Profiles
✔️🆑 Conservative: 🎯 TP=2.7 % 🛑 SL=2.7 %
❌Ⓜ️ Moderate: 🎯 TP=2.8 % 🛑 SL=2.7 %
❌🅰 Aggressive: 🎯 TP=1.6 % 🛑 SL=6.9 %
You will be able to select and switch between the above options and profiles through the 'input' menu of the strategy by navigating to the "⚠️ Risk Profile" menu.
You can then select, test and apply the Risk Profile above that best suits your risk management, expectations and reality , as well as customize all the 'fixed exit' values through the TP and SL menus below.
1️⃣7️⃣ : ⭕ Moving Exits : (Indicators)
The strategy currently also has 'Moving Exits' based on indicator signals.
These are Moving Exits (Indicators)
📈 LONG : (EXIT)
🧃 (MAO) Short : true
📉 SHORT : (EXIT)
🧃 (MAO) Long: false
You can select and toggle between the above options through the 'input' menu of the strategy by navigating to the "LONG : Exit" and "SHORT : Exit" menu.
1️⃣8️⃣ : 💸 Initial Capital
By default the "Initial Capital" set for entries and backtests of this strategy is: 10000 $
You can set another value for the 'Starting Capital' through the tradingview menu under "properties" , and edit the value of the "Initial Capital" field.
This way you can set and test other 'Entry Values' for your trades, tests and backtests.
1️⃣9️⃣ : ⚙️ Entry Options
By default the 'order size' set for this strategy is 100 % of the 'initial capital' on each new trade.
You can set and test other entry options like : contracts , cash , % of equity
You should make these changes directly in the input menu of the strategy by navigating to the menu "⚙️ Properties : TradingView" below.
⚙️ Properties : (TradingView)
📊 Strategy Type: strategy.position_size != 1
📝💲 % Order Type: % of equity
📝💲 % Order Size: 100
Leverage: 1
So you can define and test other 'Entry Options' for your trades, tests and backtests.
2️⃣0️⃣ : ❓ How to Automate this Strategy ❓ : 🤖 Automation : 'Third-Party Services'
It is possible to automate the signals of this strategy for any centralized or decentralized broker, as well as for messaging services: Discord, Telegram and Twitter.
All in an extremely simple and uncomplicated way through the tutorials available in PDF /VIDEO for our Titan Pro 👽 subscriber community.
With our tutorials in PDF and Video it will be possible to automate the signals of this strategy for the chosen service in an extremely simple way with less than 10 steps only.
Tradingview naturally doesn't count with native integration between brokers and tradingview.
But it is possible to use 'third party services' to do the integration and automation between Tradingview and your centralized or decentralized broker.
Here are the standard, available and recommended 'third party services' to automate the signals from the 'Quantitative THEMIS' strategy on the tradingview for your broker:
1) Wundertrading (Recommended):
2) 3commas:
3) Zignaly:
4) Aleeert.com (Recommended):
5) Alertatron:
Note! 'Third party services' cannot perform 'withdrawals' via their key 'API', they can only open positions, so your funds will always be 'safe' in your brokerage firm, being traded via the 'API', when they receive an entry and exit signal from this strategy.
2️⃣1️⃣ : ❓ How to Automate this Strategy ❓ : 🤖 Automation : 'Exchanges
You can automate this strategy for any of the brokers below, through your broker's 'API' by connecting it to the 'third party automation services' for tradingview available and mentioned in the menu above:
1) Binance (Recommended)
2) Bitmex
3) Bybit
4) KuCoin
5) Deribit
6) OKX
7) Coinbase
8) Huobi
9) Bitfinex
10) Bitget
11) Bittrex
12) Bitstamp
13) Gate. io
14) Kraken
15) Gemini
16) Ascendex
17) VCCE
2️⃣2️⃣ : ❓ How to Automate this Strategy ❓ : 🤖 Automation : 'Messaging Services'
You can also automate and monitor the signals of this strategy much more efficiently by sending them to the following popular messaging services:
1) Discord
2) Telegram
3) Twitter
2️⃣3️⃣ : ❓ How to Automate this Strategy ❓ : 🤖 Automation : '🧲🤖Copy-Trading'
It will also be possible to copy/replicate the entries and exits of this strategy to your broker in an extremely simple and agile way, through the available copy-trader services.
This way it will be possible to replicate the signals of this strategy at each entry and exit to your broker through the API connecting it to the integrated copy-trader services available through the tradingview automation services below:
1) Wundetrading:
2) Zignaly:
2️⃣4️⃣ : ❔ Why be a Titan Pro 👽❔
I believe that today I am at another level in 'pinescript' development.
I consider myself today a true unicorn as a pinescript developer, someone unique and very rare.
If you choose another tool or another pinescript service, this tool will be just another one, with no real results.
But if you join our Titan community, you will have access to a unique tool! And you will get real results!
I already earn money consistently with statistical and automated trading and as an expert pinescript developer.
I am here to evolve my skills as much as possible, and one day become a pinescript 'Wizard'.
So excellence, quality and professionalism will always be my north here.
You will never find a developer like me, and who will take so seriously such a revolutionary project as this one. A Maverick! ▬ The man never stops!
Here you will find the highest degree of sophistication and development in the market for 'pinescript'.
You will get the best of me and the best of pinescript possible.
Let me show you how a professional in my field does it.
Become a Titan Pro Member 👽 and get Full Access to this strategy and all the Automation Tutorials.
Be the Titan in your life!
2️⃣5️⃣ : ❔ Why be a Titan Aff 🛸❔
Get financial return for your referrals, Decentralize the World, and raise the collective consciousness.
2️⃣6️⃣ : 📋 Summary : ⚖️ Strategy: Titan Investments|Quantitative THEMIS|Pro|BINANCE:BTCUSDTP:4h
® Titan Investimentos | Quantitative THEMIS ⚖️ | Pro 👽 2.6 | Dev: © FilipeSoh 🧙 | 🤖 100% Automated : Discord, Telegram, Twitter, Wundertrading, 3commas, Zignaly, Aleeert, Alertatron, Uniswap-v3 | BINANCE:BTCUSDTPERP 4h
🛒 Subscribe this strategy ❗️ Be a Titan Member 🏛️
🛒 Titan Pro 👽 🏛️ Titan Pro 👽 Version with ✔️100% Integrated Automation 🤖 and 📚 Automation Tutorials ✔️100% available at: (PDF/VIDEO)
🛒 Titan Affiliate 🛸 🏛️ Titan Affiliate 🛸 (Subscription Sale) 🔥 Receive 50% commission
📋 Summary : QT THEMIS ⚖️
🕵️♂️ Check This Strategy..................................................................0
🦄 ® Titan Investimentos...............................................................1
👨💻 © Developer..........................................................................2
📚 Signal Automation Tutorials : (PDF/VIDEO).......................................3
👨🔧 Revision...............................................................................4
📊 Table : (BACKTEST)..................................................................5
📊 Table : (INFORMATIONS).............................................................6
⚙️ Properties : (TRADINGVIEW)........................................................7
📆 Backtest : (TRADINGVIEW)..........................................................8
⚠️ Risk Profile...........................................................................9
🟢 On 🔴 Off : (LONG/SHORT).......................................................10
📈 LONG : (ENTRY)....................................................................11
📉 SHORT : (ENTRY)...................................................................12
📈 LONG : (EXIT).......................................................................13
📉 SHORT : (EXIT)......................................................................14
🧩 (EI) External Indicator.............................................................15
📡 (QT) Quantitative...................................................................16
🎠 (FF) Forecast......................................................................17
🅱 (BB) Bollinger Bands................................................................18
🧃 (MAP) Moving Average Primary......................................................19
🧃 (MAP) Labels.........................................................................20
🍔 (MAQ) Moving Average Quaternary.................................................21
🍟 (MACD) Moving Average Convergence Divergence...............................22
📣 (VWAP) Volume Weighted Average Price........................................23
🪀 (HL) HILO..........................................................................24
🅾 (OBV) On Balance Volume.........................................................25
🥊 (SAR) Stop and Reverse...........................................................26
🛡️ (DSR) Dynamic Support and Resistance..........................................27
🔊 (VD) Volume Directional..........................................................28
🧰 (RSI) Relative Momentum Index.................................................29
🎯 (TP) Take Profit %..................................................................30
🛑 (SL) Stop Loss %....................................................................31
🤖 Automation Selected...............................................................32
📱💻 Discord............................................................................33
📱💻 Telegram..........................................................................34
📱💻 Twitter...........................................................................35
🤖 Wundertrading......................................................................36
🤖 3commas............................................................................37
🤖 Zignaly...............................................................................38
🤖 Aleeert...............................................................................39
🤖 Alertatron...........................................................................40
🤖 Uniswap-v3..........................................................................41
🧲🤖 Copy-Trading....................................................................42
♻️ ® No Repaint........................................................................43
🔒 Copyright ©️..........................................................................44
🏛️ Be a Titan Member..................................................................45
Nº Active Users..........................................................................46
⏱ Time Left............................................................................47
| 0 | 🕵️♂️ Check This Strategy
🕵️♂️ Version Demo: 🐄 Version with ❌non-integrated automation 🤖 and 📚 Tutorials for automation ❌not available
🕵️♂️ Version Pro: 👽 Version with ✔️100% Integrated Automation 🤖 and 📚 Automation Tutorials ✔️100% available at: (PDF/VIDEO)
| 1 | 🦄 ® Titan Investimentos
Decentralizing the World 🗺
Raising the Collective Conscience 🗺
🦄Site:
🦄TradingView: www.tradingview.com
🦄Discord:
🦄Telegram:
🦄Youtube:
🦄Twitter:
🦄Instagram:
🦄TikTok:
🦄Linkedin:
🦄E-mail:
| 2 | 👨💻 © Developer
🧠 Developer: @FilipeSoh🧙
📺 TradingView: www.tradingview.com
☑️ Linkedin:
✅ Fiverr:
✅ Upwork:
🎥 YouTube:
🐤 Twitter:
🤳 Instagram:
| 3 | 📚 Signal Automation Tutorials : (PDF/VIDEO)
📚 Discord: 🔗 Link: 🔒Titan Pro👽
📚 Telegram: 🔗 Link: 🔒Titan Pro👽
📚 Twitter: 🔗 Link: 🔒Titan Pro👽
📚 Wundertrading: 🔗 Link: 🔒Titan Pro👽
📚 3comnas: 🔗 Link: 🔒Titan Pro👽
📚 Zignaly: 🔗 Link: 🔒Titan Pro👽
📚 Aleeert: 🔗 Link: 🔒Titan Pro👽
📚 Alertatron: 🔗 Link: 🔒Titan Pro👽
📚 Uniswap-v3: 🔗 Link: 🔒Titan Pro👽
📚 Copy-Trading: 🔗 Link: 🔒Titan Pro👽
| 4 | 👨🔧 Revision
👨🔧 Start Of Operations: 01 Jan 2019 21:00 -0300 💡 Start Of Operations (Skin in the game) : Revision 1.0
👨🔧 Previous Review: 01 Jan 2022 21:00 -0300 💡 Previous Review : Revision 2.0
👨🔧 Current Revision: 01 Jan 2023 21:00 -0300 💡 Current Revision : Revision 2.6
👨🔧 Next Revision: 28 May 2023 21:00 -0300 💡 Next Revision : Revision 2.7
| 5 | 📊 Table : (BACKTEST)
📊 Table: true
🖌️ Style: label.style_label_left
📐 Size: size_small
📏 Line: defval
🎨 Color: #131722
| 6 | 📊 Table : (INFORMATIONS)
📊 Table: false
🖌️ Style: label.style_label_right
📐 Size: size_small
📏 Line: defval
🎨 Color: #131722
| 7 | ⚙️ Properties : (TradingView)
📊 Strategy Type: strategy.position_size != 1
📝💲 % Order Type: % of equity
📝💲 % Order Size: 100 %
🚀 Leverage: 1
| 8 | 📆 Backtest : (TradingView)
🗓️ Mon: true
🗓️ Tue: true
🗓️ Wed: true
🗓️ Thu: true
🗓️ Fri: true
🗓️ Sat: true
🗓️ Sun: true
📆 Range: custom
📆 Start: UTC 31 Oct 2008 00:00
📆 End: UTC 31 Oct 2030 23:45
📆 Session: 0000-0000
📆 UTC: UTC
| 9 | ⚠️ Risk Profile
✔️🆑 Conservative: 🎯 TP=2.7 % 🛑 SL=2.7 %
❌Ⓜ️ Moderate: 🎯 TP=2.8 % 🛑 SL=2.7 %
❌🅰 Aggressive: 🎯 TP=1.6 % 🛑 SL=6.9 %
| 10 | 🟢 On 🔴 Off : (LONG/SHORT)
🟢📈 LONG: true
🟢📉 SHORT: true
| 11 | 📈 LONG : (ENTRY)
📡 (QT) Long: true
🧃 (MAP) Long: false
🅱 (BB) Long: false
🍟 (MACD) Long: false
🅾 (OBV) Long: false
| 12 | 📉 SHORT : (ENTRY)
📡 (QT) Short: true
🧃 (MAP) Short: false
🅱 (BB) Short: false
🍟 (MACD) Short: false
🅾 (OBV) Short: false
| 13 | 📈 LONG : (EXIT)
🧃 (MAP) Short: true
| 14 | 📉 SHORT : (EXIT)
🧃 (MAP) Long: false
| 15 | 🧩 (EI) External Indicator
🧩 (EI) Connect your external indicator/filter: false
🧩 (EI) Connect your indicator here (Study mode only): close
🧩 (EI) Connect your indicator here (Study mode only): close
| 16 | 📡 (QT) Quantitative
📡 (QT) Quantitative: true
📡 (QT) Market: BINANCE:BTCUSDTPERP
📡 (QT) Dice: openai
| 17 | 🎠 (FF) Forecast
🎠 (FF) Include current unclosed current candle: true
🎠 (FF) Forecast Type: flat
🎠 (FF) Nº of candles to use in linear regression: 3
| 18 | 🅱 (BB) Bollinger Bands
🅱 (BB) Bollinger Bands: true
🅱 (BB) Type: EMA
🅱 (BB) Period: 20
🅱 (BB) Source: close
🅱 (BB) Multiplier: 2
🅱 (BB) Linewidth: 0
🅱 (BB) Color: #131722
| 19 | 🧃 (MAP) Moving Average Primary
🧃 (MAP) Moving Average Primary: true
🧃 (MAP) BarColor: false
🧃 (MAP) Background: false
🧃 (MAP) Type: SMA
🧃 (MAP) Source: open
🧃 (MAP) Period: 100
🧃 (MAP) Multiplier: 2.0
🧃 (MAP) Linewidth: 2
🧃 (MAP) Color P: #42bda8
🧃 (MAP) Color N: #801922
| 20 | 🧃 (MAP) Labels
🧃 (MAP) Labels: true
🧃 (MAP) Style BUY ZONE: shape.labelup
🧃 (MAP) Color BUY ZONE: #42bda8
🧃 (MAP) Style SELL ZONE: shape.labeldown
🧃 (MAP) Color SELL ZONE: #801922
| 21 | 🍔 (MAQ) Moving Average Quaternary
🍔 (MAQ) Moving Average Quaternary: true
🍔 (MAQ) BarColor: false
🍔 (MAQ) Background: false
🍔 (MAQ) Type: SMA
🍔 (MAQ) Source: close
🍔 (MAQ) Primary: 14
🍔 (MAQ) Secondary: 22
🍔 (MAQ) Tertiary: 44
🍔 (MAQ) Quaternary: 16
🍔 (MAQ) Linewidth: 0
🍔 (MAQ) Color P: #42bda8
🍔 (MAQ) Color N: #801922
| 22 | 🍟 (MACD) Moving Average Convergence Divergence
🍟 (MACD) Macd Type: EMA
🍟 (MACD) Signal Type: EMA
🍟 (MACD) Source: close
🍟 (MACD) Fast: 12
🍟 (MACD) Slow: 26
🍟 (MACD) Smoothing: 9
| 23 | 📣 (VWAP) Volume Weighted Average Price
📣 (VWAP) Source: close
📣 (VWAP) Period: 340
📣 (VWAP) Momentum A: 84
📣 (VWAP) Momentum B: 150
📣 (VWAP) Average Volume: 1
📣 (VWAP) Multiplier: 1
📣 (VWAP) Diviser: 2
| 24 | 🪀 (HL) HILO
🪀 (HL) Type: SMA
🪀 (HL) Function: Maverick🧙
🪀 (HL) Source H: high
🪀 (HL) Source L: low
🪀 (HL) Period: 20
🪀 (HL) Momentum: 26
🪀 (HL) Diviser: 2
🪀 (HL) Multiplier: 1
| 25 | 🅾 (OBV) On Balance Volume
🅾 (OBV) Type: EMA
🅾 (OBV) Source: close
🅾 (OBV) Period: 16
🅾 (OBV) Diviser: 2
🅾 (OBV) Multiplier: 1
| 26 | 🥊 (SAR) Stop and Reverse
🥊 (SAR) Source: close
🥊 (SAR) High: 1.8
🥊 (SAR) Mid: 1.6
🥊 (SAR) Low: 1.6
🥊 (SAR) Diviser: 2
🥊 (SAR) Multiplier: 1
| 27 | 🛡️ (DSR) Dynamic Support and Resistance
🛡️ (DSR) Source D: close
🛡️ (DSR) Source R: high
🛡️ (DSR) Source S: low
🛡️ (DSR) Momentum R: 0
🛡️ (DSR) Momentum S: 2
🛡️ (DSR) Diviser: 2
🛡️ (DSR) Multiplier: 1
| 28 | 🔊 (VD) Volume Directional
🔊 (VD) Type: SMA
🔊 (VD) Period: 68
🔊 (VD) Momentum: 3.8
🔊 (VD) Diviser: 2
🔊 (VD) Multiplier: 1
| 29 | 🧰 (RSI) Relative Momentum Index
🧰 (RSI) Type UP: EMA
🧰 (RSI) Type DOWN: EMA
🧰 (RSI) Source: close
🧰 (RSI) Period: 29
🧰 (RSI) Smoothing: 22
🧰 (RSI) Momentum R: 64
🧰 (RSI) Momentum S: 142
🧰 (RSI) Diviser: 2
🧰 (RSI) Multiplier: 1
| 30 | 🎯 (TP) Take Profit %
🎯 (TP) Take Profit: false
🎯 (TP) %: 2.2
🎯 (TP) Color: #42bda8
🎯 (TP) Linewidth: 1
| 31 | 🛑 (SL) Stop Loss %
🛑 (SL) Stop Loss: false
🛑 (SL) %: 2.7
🛑 (SL) Color: #801922
🛑 (SL) Linewidth: 1
| 32 | 🤖 Automation : Discord | Telegram | Twitter | Wundertrading | 3commas | Zignaly | Aleeert | Alertatron | Uniswap-v3
🤖 Automation Selected : Discord
| 33 | 🤖 Discord
🔗 Link Discord: discord.com
🔗 Link 📚 Automation: 🔒Titan Pro👽
📱💻 Discord ▬ Enter Long: 🔒Titan Pro👽
📱💻 Discord ▬ Exit Long: 🔒Titan Pro👽
📱💻 Discord ▬ Enter Short: 🔒Titan Pro👽
📱💻 Discord ▬ Exit Short: 🔒Titan Pro👽
| 34 | 🤖 Telegram
🔗 Link Telegram: telegram.org
🔗 Link 📚 Automation: 🔒Titan Pro👽
📱💻 Telegram ▬ Enter Long: 🔒Titan Pro👽
📱💻 Telegram ▬ Exit Long: 🔒Titan Pro👽
📱💻 Telegram ▬ Enter Short: 🔒Titan Pro👽
📱💻 Telegram ▬ Exit Short: 🔒Titan Pro👽
| 35 | 🤖 Twitter
🔗 Link Twitter: twitter.com
🔗 Link 📚 Automation: 🔒Titan Pro👽
📱💻 Twitter ▬ Enter Long: 🔒Titan Pro👽
📱💻 Twitter ▬ Exit Long: 🔒Titan Pro👽
📱💻 Twitter ▬ Enter Short: 🔒Titan Pro👽
📱💻 Twitter ▬ Exit Short: 🔒Titan Pro👽
| 36 | 🤖 Wundertrading : Binance | Bitmex | Bybit | KuCoin | Deribit | OKX | Coinbase | Huobi | Bitfinex | Bitget
🔗 Link Wundertrading: wundertrading.com
🔗 Link 📚 Automation: 🔒Titan Pro👽
📱💻 Wundertrading ▬ Enter Long: 🔒Titan Pro👽
📱💻 Wundertrading ▬ Exit Long: 🔒Titan Pro👽
📱💻 Wundertrading ▬ Enter Short: 🔒Titan Pro👽
📱💻 Wundertrading ▬ Exit Short: 🔒Titan Pro👽
| 37 | 🤖 3commas : Binance | Bybit | OKX | Bitfinex | Coinbase | Deribit | Bitmex | Bittrex | Bitstamp | Gate.io | Kraken | Gemini | Huobi | KuCoin
🔗 Link 3commas: 3commas.io
🔗 Link 📚 Automation: 🔒Titan Pro👽
📱💻 3commas ▬ Enter Long: 🔒Titan Pro👽
📱💻 3commas ▬ Exit Long: 🔒Titan Pro👽
📱💻 3commas ▬ Enter Short: 🔒Titan Pro👽
📱💻 3commas ▬ Exit Short: 🔒Titan Pro👽
| 38 | 🤖 Zignaly : Binance | Ascendex | Bitmex | Kucoin | VCCE
🔗 Link Zignaly: zignaly.com
🔗 Link 📚 Automation: 🔒Titan Pro👽
🤖 Type Automation: Profit Sharing
🤖 Type Provider: Webook
🔑 Key: 🔒Titan Pro👽
🤖 pair: BTCUSDTP
🤖 exchange: binance
🤖 exchangeAccountType: futures
🤖 orderType: market
🚀 leverage: 1x
% positionSizePercentage: 100 %
💸 positionSizeQuote: 10000 $
🆔 signalId: @Signal1234
| 39 | 🤖 Aleeert : Binance
🔗 Link Aleeert: aleeert.com
🔗 Link 📚 Automation: 🔒Titan Pro👽
📱💻 Aleeert ▬ Enter Long: 🔒Titan Pro👽
📱💻 Aleeert ▬ Exit Long: 🔒Titan Pro👽
📱💻 Aleeert ▬ Enter Short: 🔒Titan Pro👽
📱💻 Aleeert ▬ Exit Short: 🔒Titan Pro👽
| 40 | 🤖 Alertatron : Binance | Bybit | Deribit | Bitmex
🔗 Link Alertatron: alertatron.com
🔗 Link 📚 Automation: 🔒Titan Pro👽
📱💻 Alertatron ▬ Enter Long: 🔒Titan Pro👽
📱💻 Alertatron ▬ Exit Long: 🔒Titan Pro👽
📱💻 Alertatron ▬ Enter Short: 🔒Titan Pro👽
📱💻 Alertatron ▬ Exit Short: 🔒Titan Pro👽
| 41 | 🤖 Uniswap-v3
🔗 Link Alertatron: uniswap.org
🔗 Link 📚 Automation: 🔒Titan Pro👽
📱💻 Uniswap-v3 ▬ Enter Long: 🔒Titan Pro👽
📱💻 Uniswap-v3 ▬ Exit Long: 🔒Titan Pro👽
📱💻 Uniswap-v3 ▬ Enter Short: 🔒Titan Pro👽
📱💻 Uniswap-v3 ▬ Exit Short: 🔒Titan Pro👽
| 42 | 🧲🤖 Copy-Trading : Zignaly | Wundertrading
🔗 Link 📚 Copy-Trading: 🔒Titan Pro👽
🧲🤖 Copy-Trading ▬ Zignaly: 🔒Titan Pro👽
🧲🤖 Copy-Trading ▬ Wundertrading: 🔒Titan Pro👽
| 43 | ♻️ ® Don't Repaint!
♻️ This Strategy does not Repaint!: ® Signs Do not repaint❕
♻️ This is a Real Strategy!: Quality : ® Titan Investimentos
📋️️ Get more information about Repainting here:
| 44 | 🔒 Copyright ©️
🔒 Copyright ©️: Copyright © 2023-2024 All rights reserved, ® Titan Investimentos
🔒 Copyright ©️: ® Titan Investimentos
🔒 Copyright ©️: Unique and Exclusive Strategy. All rights reserved
| 45 | 🏛️ Be a Titan Members
🏛️ Titan Pro 👽 Version with ✔️100% Integrated Automation 🤖 and 📚 Automation Tutorials ✔️100% available at: (PDF/VIDEO)
🏛️ Titan Affiliate 🛸 (Subscription Sale) 🔥 Receive 50% commission
| 46 | ⏱ Time Left
Time Left Titan Demo 🐄: ⏱♾ | ⏱ : ♾ Titan Demo 🐄 Version with ❌non-integrated automation 🤖 and 📚 Tutorials for automation ❌not available
Time Left Titan Pro 👽: 🔒Titan Pro👽 | ⏱ : Pro Plans: 30 Days, 90 Days, 12 Months, 24 Months. (👽 Pro 🅼 Monthly, 👽 Pro 🆀 Quarterly, 👽 Pro🅰 Annual, 👽 Pro👾Two Years)
| 47 | Nº Active Users
Nº Active Subscribers Titan Pro 👽: 5️⃣6️⃣ | 1✔️ 5✔️ 10✔️ 100❌ 1K❌ 10K❌ 50K❌ 100K❌ 1M❌ 10M❌ 100M❌ : ⏱ Active Users is updated every 24 hours (Check on indicator)
Nº Active Affiliates Titan Aff 🛸: 6️⃣ | 1✔️ 5✔️ 10❌ 100❌ 1K❌ 10K❌ 50K❌ 100K❌ 1M❌ 10M❌ 100M❌ : ⏱ Active Users is updated every 24 hours (Check on indicator)
2️⃣7️⃣ : 📊 PERFORMANCE : 🆑 Conservative
📊 Exchange: Binance
📊 Pair: BINANCE: BTCUSDTPERP
📊 TimeFrame: 4h
📊 Initial Capital: 10000 $
📊 Order Type: % equity
📊 Size Per Order: 100 %
📊 Commission: 0.03 %
📊 Pyramid: 1
• ⚠️ Risk Profile: 🆑 Conservative: 🎯 TP=2.7 % | 🛑 SL=2.7 %
• 📆All years: 🆑 Conservative: 🚀 Leverage 1️⃣x
📆 Start: September 23, 2019
📆 End: January 11, 2023
📅 Days: 1221
📅 Bars: 7325
Net Profit:
🟢 + 1669.89 %
💲 + 166989.43 USD
Total Close Trades:
⚪️ 369
Percent Profitable:
🟡 64.77 %
Profit Factor:
🟢 2.314
DrawDrown Maximum:
🔴 -24.82 %
💲 -10221.43 USD
Avg Trade:
💲 + 452.55 USD
✔️ Trades Winning: 239
❌ Trades Losing: 130
✔️ Average Gross Win: + 12.31 %
❌ Average Gross Loss: - 9.78 %
✔️ Maximum Consecutive Wins: 9
❌ Maximum Consecutive Losses: 6
% Average Gain Annual: 499.33 %
% Average Gain Monthly: 41.61 %
% Average Gain Weekly: 9.6 %
% Average Gain Day: 1.37 %
💲 Average Gain Annual: 49933 $
💲 Average Gain Monthly: 4161 $
💲 Average Gain Weekly: 960 $
💲 Average Gain Day: 137 $
• 📆 Year: 2020: 🆑 Conservative: 🚀 Leverage 1️⃣x
• 📆 Year: 2021: 🆑 Conservative: 🚀 Leverage 1️⃣x
• 📆 Year: 2022: 🆑 Conservative: 🚀 Leverage 1️⃣x
2️⃣8️⃣ : 📊 PERFORMANCE : Ⓜ️ Moderate
📊 Exchange: Binance
📊 Pair: BINANCE: BTCUSDTPERP
📊 TimeFrame: 4h
📊 Initial Capital: 10000 $
📊 Order Type: % equity
📊 Size Per Order: 100 %
📊 Commission: 0.03 %
📊 Pyramid: 1
• ⚠️ Risk Profile: Ⓜ️ Moderate: 🎯 TP=2.8 % | 🛑 SL=2.7 %
• 📆 All years: Ⓜ️ Moderate: 🚀 Leverage 1️⃣x
📆 Start: September 23, 2019
📆 End: January 11, 2023
📅 Days: 1221
📅 Bars: 7325
Net Profit:
🟢 + 1472.04 %
💲 + 147199.89 USD
Total Close Trades:
⚪️ 362
Percent Profitable:
🟡 63.26 %
Profit Factor:
🟢 2.192
DrawDrown Maximum:
🔴 -22.69 %
💲 -9269.33 USD
Avg Trade:
💲 + 406.63 USD
✔️ Trades Winning: 229
❌ Trades Losing : 133
✔️ Average Gross Win: + 11.82 %
❌ Average Gross Loss: - 9.29 %
✔️ Maximum Consecutive Wins: 9
❌ Maximum Consecutive Losses: 8
% Average Gain Annual: 440.15 %
% Average Gain Monthly: 36.68 %
% Average Gain Weekly: 8.46 %
% Average Gain Day: 1.21 %
💲 Average Gain Annual: 44015 $
💲 Average Gain Monthly: 3668 $
💲 Average Gain Weekly: 846 $
💲 Average Gain Day: 121 $
• 📆 Year: 2020: Ⓜ️ Moderate: 🚀 Leverage 1️⃣x
• 📆 Year: 2021: Ⓜ️ Moderate: 🚀 Leverage 1️⃣x
• 📆 Year: 2022: Ⓜ️ Moderate: 🚀 Leverage 1️⃣x
2️⃣9️⃣ : 📊 PERFORMANCE : 🅰 Aggressive
📊 Exchange: Binance
📊 Pair: BINANCE: BTCUSDTPERP
📊 TimeFrame: 4h
📊 Initial Capital: 10000 $
📊 Order Type: % equity
📊 Size Per Order: 100 %
📊 Commission: 0.03 %
📊 Pyramid: 1
• ⚠️ Risk Profile: 🅰 Aggressive: 🎯 TP=1.6 % | 🛑 SL=6.9 %
• 📆 All years: 🅰 Aggressive: 🚀 Leverage 1️⃣x
📆 Start: September 23, 2019
📆 End: January 11, 2023
📅 Days: 1221
📅 Bars: 7325
Net Profit:
🟢 + 989.38 %
💲 + 98938.38 USD
Total Close Trades:
⚪️ 380
Percent Profitable:
🟢 84.47 %
Profit Factor:
🟢 2.156
DrawDrown Maximum:
🔴 -17.88 %
💲 -9182.84 USD
Avg Trade:
💲 + 260.36 USD
✔️ Trades Winning: 321
❌ Trades Losing: 59
✔️ Average Gross Win: + 5.75 %
❌ Average Gross Loss: - 14.51 %
✔️ Maximum Consecutive Wins: 21
❌ Maximum Consecutive Losses: 6
% Average Gain Annual: 295.84 %
% Average Gain Monthly: 24.65 %
% Average Gain Weekly: 5.69 %
% Average Gain Day: 0.81 %
💲 Average Gain Annual: 29584 $
💲 Average Gain Monthly: 2465 $
💲 Average Gain Weekly: 569 $
💲 Average Gain Day: 81 $
• 📆 Year: 2020: 🅰 Aggressive: 🚀 Leverage 1️⃣x
• 📆 Year: 2021: 🅰 Aggressive: 🚀 Leverage 1️⃣x
• 📆 Year: 2022: 🅰 Aggressive: 🚀 Leverage 1️⃣x
3️⃣0️⃣ : 🛠️ Roadmap
🛠️• 14/ 01 /2023 : Titan THEMIS Launch
🛠️• Updates January/2023 :
• 📚 Tutorials for Automation 🤖 already Available : ✔️
• ✔️ Discord
• ✔️ Wundertrading
• ✔️ Zignaly
• 📚 Tutorials for Automation 🤖 In Preparation : ⭕
• ⭕ Telegram
• ⭕ Twitter
• ⭕ 3comnas
• ⭕ Aleeert
• ⭕ Alertatron
• ⭕ Uniswap-v3
• ⭕ Copy-Trading
🛠️• Updates February/2023 :
• 📰 Launch of advertising material for Titan Affiliates 🛸
• 🛍️🎥🖼️📊 (Sales Page/VSL/Videos/Creative/Infographics)
🛠️• 28/05/2023 : Titan THEMIS update ▬ Version 2.7
🛠️• 28/05/2023 : BOT BOB release ▬ Version 1.0
• (Native Titan THEMIS Automation - Through BOT BOB, a bot for automation of signals, indicators and strategies of TradingView, of own code ▬ in validation.
• BOT BOB
Automation/Connection :
• API - For Centralized Brokers.
• Smart Contracts - Wallet Web - For Decentralized Brokers.
• This way users can automate any indicator or strategy of TradingView and Titan in a decentralized, secure and simplified way.
• Without having the need to use 'third party services' for automating TradingView indicators and strategies like the ones available above.
🛠️• 28/05/2023 : Release ▬ Titan Culture Guide 📝
3️⃣1️⃣ : 🧻 Notes ❕
🧻 • Note ❕ The "Demo 🐄" version, ❌does not have 'integrated automation', to automate the signals of this strategy and enjoy a fully automated system, you need to have access to the Pro version with '100% integrated automation' and all the tutorials for automation available. Become a Titan Pro 👽
🧻 • Note ❕ You will also need to be a "Pro User or higher on Tradingview", to be able to use the webhook feature available only for 'paid' profiles on the platform.
With the webhook feature it is possible to send the signals of this strategy to almost anywhere, in our case to centralized or decentralized brokerages, also to popular messaging services such as: Discord, Telegram or Twiter.
3️⃣2️⃣ : 🚨 Disclaimer ❕❗
🚨 • Disclaimer ❕❕ Past positive result and performance of a system does not guarantee its positive result and performance for the future!
🚨 • Disclaimer ❗❗❗ When using this strategy: Titan Investments is totally Exempt from any claim of liability for losses. The responsibility on the management of your funds is solely yours. This is a very high risk/volatility market! Understand your place in the market.
3️⃣3️⃣ : ♻️ ® No Repaint
This Strategy does not Repaint! This is a real strategy!
3️⃣4️⃣ : 🔒 Copyright ©️
Copyright © 2022-2023 All rights reserved, ® Titan Investimentos
3️⃣5️⃣ : 👏 Acknowledgments
I want to start this message in thanks to TradingView and all the Pinescript community for all the 'magic' created here, a unique ecosystem! rich and healthy, a fertile soil, a 'new world' of possibilities, for a complete deepening and improvement of our best personal skills.
I leave here my immense thanks to the whole community: Tradingview, Pinecoders, Wizards and Moderators.
I was not born Rich .
Thanks to TradingView and pinescript and all its transformation.
I could develop myself and the best of me and the best of my skills.
And consequently build wealth and patrimony.
Gratitude.
One more story for the infinite book !
If you were born poor you were born to be rich !
Raising🔼 the level and raising🔼 the ruler! 📏
My work is my 'debauchery'! Do better! 💐🌹
Soul of a first-timer! Creativity Exudes! 🦄
This is the manifestation of God's magic in me. This is the best of me. 🧙
You will copy me, I know. So you owe me. 💋
My mission here is to raise the consciousness and self-esteem of all Titans and Titanids! Welcome! 🧘 🏛️
The only way to accomplish great work is to do what you love ! Before I learned to program I was wasting my life!
Death is the best creation of life .
Now you are the new , but in the not so distant future you will gradually become the old . Here I stay forever!
Playing the game like an Athlete! 🖼️ Enjoy and Enjoy 🍷 🗿
In honor of: BOB ☆
1 name, 3 letters, 3 possibilities, and if read backwards it's the same thing, a palindrome. ☘
Gratitude to the oracles that have enabled me the 'luck' to get this far: Dal&Ni&Fer
3️⃣6️⃣ : 👮 House Rules : 📺 TradingView
House Rules : This publication and strategy follows all TradingView house guidelines and rules:
📺 TradingView House Rules: www.tradingview.com
📺 Script publication rules: www.tradingview.com
📺 Vendor requirements: www.tradingview.com
📺 Links/References rules: www.tradingview.com
3️⃣7️⃣ : 🏛️ Become a Titan Pro member 👽
🟩 Titan Pro 👽 🟩
3️⃣8️⃣ : 🏛️ Be a member Titan Aff 🛸
🟥 Titan Affiliate 🛸 🟥
The Z-score The Z-score, also known as the standard score, is a statistical measurement that describes a value's relationship to the mean of a group of values. It's measured in terms of standard deviations from the mean. If a Z-score is 0, it indicates that the data point's score is identical to the mean score. Z-scores may be positive or negative, with a positive value indicating the score is above the mean and a negative score indicating it is below the mean.
The concept of Z-score was introduced by statistician Carl Friedrich Gauss as part of his "method of the least squares," which was an important step in the development of the normal distribution and Z-score tables. It's a key concept in statistics and is used in various statistical tests.
In financial analysis, Z-scores are used to determine whether a data point is usual or unusual. You can think of it as a measure of how many standard deviations an element is from the mean. For instance, a Z-score of 1.0 would denote a value that is one standard deviation from the mean. Z-scores are also used to predict probabilities, with Z-scores having a distribution that is expected to be normal.
In trading, a Z-score is used to determine how often a trading system may produce a string of winners or losers. It can help a trader to understand whether the losses or profits they see are something that the system would most likely produce, or if it's a once in a blue moon situation. This helps traders make decisions about when to start or stop a system.
I just wanted to play a bit with the Z-score I guess.
Feel free to share your findings if you discover additional applications for this strategy or identify timeframes where it appears to perform more optimally.
How it works:
This strategy is based on a statistical concept called Z-score, which measures the number of standard deviations a data point is from the mean. In other words, it helps determine how unusual or usual a data point is.
In the context of this strategy, Z-score is applied to a 10-period EMA (Exponential Moving Average) of Heikin-Ashi candlestick close prices. The Z-score is calculated over a look-back period of 25 bars.
The EMA of the Z-score is then calculated over a 20-bar period, and the upper and lower thresholds (bounds for buy and sell signals) are defined using the 90th and 10th percentiles of this EMA score.
Long positions are taken when the Z-score crosses above the lower threshold or crosses above the mid-line (50th percentile). An additional long entry is made when the Z-score crosses above the highest value the EMA has been in the past 100 periods.
Short positions are initiated when the EMA crosses below the upper threshold, lower threshold or the highest value the EMA has been in the past 100 periods.
Positions are closed when opposing entry conditions are met, for example, a long position is closed when the short entry condition is true, and vice versa.
Set your desired start date for the strategy. This can be modified in the timestamp("YYYY MM DD") function at the top of the script.
D-BoT Alpha 'Short' SMA and RSI StrategyDostlar selamlar,
İşte son derece basit ama etkili ve hızlı, HTF de çok iyi sonuçlar veren bir strateji daha, hepinize bol kazançlar dilerim ...
Nedir, Nasıl Çalışır:
Strateji, iki ana girdiye dayanır: SMA ve RSI. SMA hesaplama aralığı 200 olarak, RSI ise 14 olarak ayarlanmıştır. Bu değerler, kullanıcı tercihlerine veya geriye dönük test sonuçlarına göre ayarlanabilir.
Strateji, iki koşul karşılandığında bir short sinyali oluşturur: RSI değeri, belirlenen bir giriş seviyesini (burada 51 olarak belirlenmiş) aşar ve kapanış fiyatı SMA değerinin altındadır.
Strateji, kısa pozisyonu üç durumda kapatır: Kapanış fiyatı, takip eden durdurma seviyesinden (pozisyon açıldığından beri en düşük kapanış olarak belirlenmiştir) büyükse, RSI değeri belirlenen bir durdurma seviyesini (bu durumda 54) aşarsa veya RSI değeri belirli bir kar al seviyesinin (bu durumda 32) altına düşerse.
Güçlü Yönleri:
İki farklı gösterge (SMA ve RSI) kullanımı, yalnızca birini kullanmaktan daha sağlam bir sinyal sağlayabilir.
Strateji, karları korumaya ve fiyat dalgalanmalarında kayıpları sınırlamaya yardımcı olabilecek bir iz süren durdurma seviyesi içerir.
Script oldukça anlaşılır ve değiştirmesi nispeten kolaydır.
Zayıf Yönleri:
Strateji, hacim, oynaklık veya daha geniş piyasa eğilimleri gibi diğer potansiyel önemli faktörleri göz önünde bulundurmaz.
RSI seviyeleri ve SMA süresi için belirli parametreler sabittir ve tüm piyasa koşulları veya zaman aralıkları için optimal olmayabilir.
Strateji oldukça basittir. Trade maliyetini (kayma veya komisyonlar gibi) hesaba katmaz, bu da trade performansını önemli ölçüde etkileyebilir.
Bu Stratejiyle Nasıl İşlem Yapılır:
Strateji, short işlemler için tasarlanmıştır. RSI, 51'in üzerine çıktığında ve kapanış fiyatı 200 periyotluk SMA'nın altında olduğunda işleme girer. RSI, 54'ün üzerine çıktığında veya 32'nin altına düştüğünde veya fiyat, pozisyon açıldığından beri en düşük kapanış fiyatının üzerine çıktığında işlemi kapatır.
Lütfen Dikkat, bu strateji veya herhangi bir strateji izole bir şekilde kullanılmamalıdır. Tüm bu çalışmalar eğitsel amaçlıdır. Yatırım tavsiyesi içermez.
This script defines a trading strategy based on Simple Moving Average (SMA) and the Relative Strength Index (RSI) indicators. Here's an overview of how it works, along with its strengths and weaknesses, and how to trade using this strategy:
How it works:
The strategy involves two key inputs: SMA and RSI. The SMA length is set to 200, and the RSI length is set to 14. These values can be adjusted based on user preferences or back-testing results.
The strategy generates a short signal when two conditions are met: The RSI value crosses over a defined entry level (set at 51 here), and the closing price is below the SMA value.
When a short signal is generated, the strategy opens a short position.
The strategy closes the short position under three conditions: If the close price is greater than the trailing stop (which is set as the lowest close since the position opened), if the RSI value exceeds a defined stop level (54 in this case), or if the RSI value drops below a certain take-profit level (32 in this case).
Strengths:
The use of two different indicators (SMA and RSI) can provide a more robust signal than using just one.
The strategy includes a trailing stop, which can help to protect profits and limit losses as the price fluctuates.
The script is straightforward and relatively easy to understand and modify.
Weaknesses:
The strategy doesn't consider other potentially important factors, such as volume, volatility, or broader market trends.
The specific parameters for the RSI levels and SMA length are hard-coded, and may not be optimal for all market conditions or timeframes.
The strategy is very simplistic. It doesn't take into account the cost of trading (like slippage or commissions), which can significantly impact trading performance.
How to trade with this strategy:
The strategy is designed for short trades. It enters a trade when the RSI crosses above 51 and the closing price is below the 200-period SMA. It will exit the trade when the RSI goes above 54 or falls below 32, or when the price rises above the lowest closing price since the position was opened.
Please note, this strategy or any strategy should not be used in isolation. It's important to consider other aspects of trading such as risk management, capital allocation, and combining different strategies to diversify. Back-testing the strategy on historical data and demo trading before going live is also a recommended practice.
D-Bot Alpha RSI Breakout StrategyHello dear Traders,
Here is a simple yet effective strategy to use, for best profit higher time frame, such as daily.
Structure of the code
The code defines inputs for SMA (simple moving average) length, RSI (relative strength index) length, RSI entry level, RSI stop loss level, and RSI take profit level. The default values of these variables can be customized as per the user's preferences.
The script calculates SMA and RSI based on the input parameters and the closing price of the asset.
Trading logic
This strategy allows the placement of a long position when:
The RSI crosses above the RSI entry level and
The close price is above the SMA value.
After entering a long position, it applies a trailing stop mechanism. The stop price is updated to the close price if the close price is lower than the last close price.
The script closes the long position when:
RSI falls below the stop loss level.
RSI reaches or exceeds the take profit level.
If the trailing stop is activated (once RSI reaches or exceeds the take profit level), the closing price falls below the trailing stop level.
Strengths
The strategy includes mechanisms for entering a position, taking profit, and stopping losses, which are fundamental aspects of a trading strategy.
It applies a trailing stop mechanism that allows to capture further gains if the price keeps increasing while protecting from losses if the price starts to decrease.
Weaknesses
This strategy only contemplates long positions. Depending on the market situation, the strategy may miss opportunities for short selling when the market is on a downward trend.
The choice of the fixed RSI entry, stop loss, and take profit levels may not be ideal for all market conditions or assets. It might benefit from a more adaptive mechanism that adjusts these levels according to market volatility or trend.
The strategy doesn't factor in trading costs (such as spread or commission), which could have a significant impact on the net profit, especially if the user is trading with a high frequency or in a low liquidity market.
How to trade with this strategy
Given these parameters and the strategy outlined by the code, the trader would enter a long position when the RSI crosses above the RSI entry level (default 34) and the closing price is above the SMA value (SMA calculated with default period of 200). The trader would exit the position when either the RSI falls below the RSI stop loss level (default 30), or RSI rises above the RSI take profit level (default 50), or when the trailing stop is hit.
Remember "The strategies I have prepared are entirely for educational purposes and should not be considered as investment advice. Support your trades using other tools. Wishing everyone profitable trades..."
Mechanical Trading StrategyThe "Mechanical Trading Strategy" is a simple and systematic approach to trading that aims to capture short-term price movements in the financial markets. This strategy focuses on executing trades based on specific conditions and predetermined profit targets and stop loss levels.
Key Features:
Profit Target: The strategy allows you to set a profit target as a percentage of the entry price. This target represents the desired level of profit for each trade.
Stop Loss: The strategy incorporates a stop loss level as a percentage of the entry price. This level represents the maximum acceptable loss for each trade, helping to manage risk.
Entry Condition: The strategy triggers trades at a specific time. In this case, the condition for entering a trade is based on the hour of the candle being 16 (4:00 PM). This time-based entry condition provides a systematic approach to executing trades.
Position Sizing: The strategy determines the position size based on a fixed percentage of the available equity. This approach ensures consistent risk management and allows for potential portfolio diversification.
Execution:
When the entry condition is met, signified by the hour being 16, the strategy initiates a long position using the strategy.entry function. It sets the exit conditions using the strategy.exit function, with a limit order for the take profit level and a stop order for the stop loss level.
Take Profit and Stop Loss:
The take profit level is calculated by adding a percentage of the entry price to the entry price itself. This represents the profit target for the trade. Conversely, the stop loss level is calculated by subtracting a percentage of the entry price from the entry price. This level represents the maximum acceptable loss for the trade.
By using this mechanical trading strategy, traders can establish a disciplined and systematic approach to their trading decisions. The predefined profit target and stop loss levels provide clear exit rules, helping to manage risk and potentially maximize returns. However, it is important to note that no trading strategy is guaranteed to be profitable, and careful analysis and monitoring of market conditions are always recommended.
Monthly Strategy Performance TableWhat Is This?
This script code adds a Monthly Strategy Performance Table to your Pine Script strategy scripts so you can see a month-by-month and year-by-year breakdown of your P&L as a percentage of your account balance.
The table is based on realized equity rather than open equity, so it only updates the metrics when a trade is closed.
That's why some numbers will not match the Strategy Tester metrics (such as max drawdown), as the Strategy Tester bases metrics like max drawdown on open trade equity and not realized equity (closed trades).
The script is still a work-in-progress, so make sure to read the disclaimer below. But I think it's ready to release the code for others to play around with.
How To Use It
The script code includes one of my strategies as an example strategy. You need to replace my strategy code with your own. To do that just copy the source code below into a blank script, delete lines 11 -> 60 and paste your strategy code in there instead of mine. The script should work with most systems, but make sure to read the disclaimer below.
It works best with a significant amount of historical data, so it may not work very effectively on intraday timeframes as there is a severe limitation of available bars on TradingView. I recommend using it on 4HR timeframes and above, as anything less will produce very little usable data. Having a premium TradingView plan will also help boost the number of available bars.
You can hover your mouse over a table cell to get more information in the form of tooltips (such as the Long and Short win rate if you hover over your total return cell).
Credit
The code in this script is based on open-source code originally written by QuantNomad, I've made significant changes and additions to the original script but all credit for the idea and especially the display table code goes to them - I just built on top of it:
Why Did I Make This?
None of this is trading or investment advice, just my personal opinion based on my experience as a trader and systems developer these past 6+ years:
The TradingView Strategy Tester is severely limited in some important ways. And unless you use complex Excel formulas on exported test data, you can't see a granular perspective of your system's historical performance.
There is much more to creating profitable and tradeable systems than developing a strategy with a good win rate and a good return with a reasonable drawdown.
Some additional questions we need to ask ourselves are:
What did the system's worst drawdown look like?
How long did it last?
How often do drawdowns occur, and how quickly are they typically recovered?
How often do we have a break-even or losing month or year?
What is our expected compounded annual growth rate, and how does that growth rate compare to our max drawdown?
And many more questions that are too long to list and take a lifetime of trading experience to answer.
Without answering these kinds of questions, we run the risk of developing systems that look good on paper, but when it comes to live trading, we are uncomfortable or incapable of enduring the system's granular characteristics.
This Monthly Performance Table script code is intended to help bridge some of that gap with the Strategy Tester's limited default performance data.
Disclaimer
I've done my best to ensure the numbers this code outputs are accurate, and according to my testing with my personal strategy scripts it appears to work fine. But there is always a good chance I've missed something, or that this code will not work with your particular system.
The majority of my TradingView systems are extremely simple single-target systems that operate on a closed-candle basis to minimize many of the data reliability issues with the Strategy Tester, so I was unable to do much testing with multiple targets and pyramiding etc.
I've included a Debug option in the script that will display important data and information on a label each time a trade is closed. I recommend using the Debug option to confirm that the numbers you see in the table are accurate and match what your strategy is actually doing.
Always do your own due diligence, verify all claims as best you can, and never take anyone's word for anything.
Take care, and best of luck with your trading :)
Kind regards,
Matt.
PS. If you're interested in learning how this script works, I have a free hour-long video lesson breaking down the source code - just check out the links below this script or in my profile.
Break even stop loss (% of instrument price)Simply proof of concept to place a stop loss a percentage below entry price and move it to break even if the price moves the same percentage above the entre price.
FRAMA & CPMA Strategy [CSM]The script is an advanced technical analysis tool specifically designed for trading in financial markets, with a particular focus on the BankNifty market. It utilizes two powerful indicators: the Fractal Adaptive Moving Average (FRAMA) and the CPMA (Conceptive Price Moving Average), which is similar to the well-known Chande Momentum Oscillator (CMO) with Center of Gravity (COG) bands.
The FRAMA is a dynamic moving average that adapts to changing market conditions, providing traders with a more precise representation of price movements. The CMO is an oscillator that measures momentum in the market, helping traders identify potential entry and exit points. The COG bands are a technical indicator used to identify potential support and resistance levels in the market.
Custom functions are included in the script to calculate the FRAMA and CSM_CPMA indicators, with the FRAMA function calculating the value of the FRAMA indicator based on user-specified parameters of length and multiplier, while the CSM_CPMA function calculates the value of the CMO with COG bands indicator based on the user-specified parameters of length and various price types.
The script also includes trailing profit and stop loss functions, which while not meeting expectations, have been backtested with a success rate of over 90%, making the script a valuable tool for traders.
Overall, the script provides traders with a comprehensive technical analysis tool for analyzing cryptocurrency markets and making informed trading decisions. Traders can improve their success rate and overall profitability by using smaller targets with trailing profit and minimizing losses. Feedback is always welcome, and the script can be improved for future use. Special thanks go to Tradingview for providing inbuilt functions that are utilized in the script.
Risk Reward Calculator [lovealgotrading]
OVERVIEW:
This Risk Reward Calculator strategy can help you maximize your RR value with help of algorithmic trading.
INDICATOR:
I wanted to setup my trades more easier with this indicator, I didn't want to calculate everytime before orders, with help this indicator we can calculate R:R value, avarage price, stoploss price, take-profit price, order prices, all position cost and more ...
Our strategy is a risk revard calculation indicator that is made easy to use by using visualized lines and panels, and also has algorithmic trading support.
With the help of this indicator, we can quickly and easily calculate our risk reward values and enter the positions.
If we want to ensure that our balance grows regularly while trading in the stock market, we need to manage the risks and rewards otherwise we may fall below our initial balance at the end of the day, even if we seem to be winning.
What is the Risk-Reward value ?
This value is a value that shows how many times the amount of risk we take when entering the position is successful, we will earn.
- For example, you risked $100 while entering the trade, so if your trade stops, you will lose 100 $.
Your Risk-Reward(RR) value is 2 means that if your position is successful, you will have 200 $ in your pocket.
A trader's success is determined by the amount of R he earns monthly or yearly, not how much money he makes.
What is different in this indicator ?
I want to say thank you to © EvoCrypto. His Calculator (weighted) – evo indicator helped me when I was developed my indicator.
I want to explain what I have improved:
1-In this strategy, we can determine the time period in which we want to open our positions.
2-We can open a maximum of 4 positions in the same direction and close our positions at a single level. StopLoss or TakeProfit
3-This indicator, which works in the form of a strategy, shows where our positions have been opened or closed. With the help of this, it helps us to determine our strategy in our future positions more accurately.
4-The most important improvement is that we do not miss our positions with the help of alarms (WEB HOOK). if we want, we receive by quickly connecting all these positions to our robot, the software can enter and exit the position while we are busy.
IMPLEMENTATION DETAILS – SETTINGS:
1 - We can set the start and end dates of the positions we will take.
2- We can set our take profit, stoploss levels.
3- If your trade is stopped, we can determine the amount of the trade that we will lose.
4- We can adjust our entry levels to positions and our position sizes at entry levels.
(Sum of positions weight must be 100%)
5- We can receive our positions even if we are busy with the help of algorithmic trading. For this, we must paste our Jshon codes into the fields specified in the settings panel.
6- Finally, we can change the settings we want and don't want to have in our visual elements.
Let's make a LONG side example together
We have determined our positions to enter stoploss, take profit and long positions. We did not forget to set the start time of our strategy
Our strategy appear on the graph as follows.
Our strategy has calculated the total position size, our R-R value, the distance of the current price to the stop and take profit levels, in short, a lot of things we could look visually.
Notes:
If you're going to connect this bot to an automatic Long or Short direction,
Don’t forget! you need to Webhook URL,
Don’t miss paste this code to your message window {{strategy.order.alert_message}}
ALSO:
If you have any ideas what to add to my work to add more sources or make calculations cooler, feel free to write me.
Dynamic Stop Loss DemoWhat does this script do ?
This script is for pine script programmers and explains how to implement a dynamic stop-loss strategy. It is different from trailing stop-loss. Trailing stop-loss can only set the retracement value, but this script can take profit on part of the position at a fixed price and allows users to decide whether to take profit on all positions based on whether a certain track is breached or other conditions author want. In this demo, it use rsi crossover and crossunder to decide the strategy condition, and use close price as open price, and use lowest low / highest high as stop price, and use 1.5 risk ratio to calculate the fixed first profit price. It will take 50% position size when the first profit price was reached. Then it will close all rest positions when the inverse condition come out or the dynamic stop(calculated by ATR) breached or when the price back to the open price or the stop price.
How is this script implemented
When start strategy by strategy.entry , it gives a custom id which contains direction, openPrice, stopPrice, profitPrice, qty, etc. It can be get from the global variable strategy.posiition_entry_name .
Strategy DesignerHello traders.
Thanks to the tool I have published, everyone who knows or does not know coding will be able to create strategies and see the results instantly on the screen. Yes it looks very nice :)
What does this script do?
Thanks to this tool, even if you don't know any coding, you will be able to create your own strategies. You can add and remove indicators.
Entrance
The first thing you need to do is to set a strategy in your mind.
Then you need to adjust the settings of the indicators installed in the system. Please set the indicators first, because later they are forgotten.
The screen for entering the parameters of the indicators will be as follows.
After entering the parameters there is an important part . In this section, we can adjust the strategy settings.
First we choose between which dates we want the strategy to run. We then choose whether we want the strategy results to be displayed in a table or not.
We choose how the Terms should be linked together. For example, if you have a condition that is expected to produce more than one receive signal, select whether these conditions are connected to each other with and or with the connector.
In this way, you can determine whether all or any of the rules in your strategy should apply.
Next, we choose whether our strategy will work in the spot market or in a bidirectional market. Yes, you can design a strategy for both spot and bidirectional trades :)
At the bottom of the above image, we see a screen where we can adjust the stop level and tp level. As a standard, adjustments are made according to the percentage level you enter. However, if you remove the tick next to the percent sign, the previous stop level and the next profit level are determined as much as the value you entered.
At the bottom is the trailing stop. When you open the trailing stop, the trailing stop becomes active in your strategy.
Very important, when the trailing stop and the stop are active at the same time, the trailing stop value is valid.
It's time to design our strategy. Each chapter that begins with an exclamation point is a separate fiction.
If you do not mark the Active button, that condition will not be included in the calculation.
Direction = It is the direction for which the fiction in this region is valid.
We came to the indicator setting screen. Here, there is a screen where we can select two different indicators on the right and left.
We choose the first indicator starting with 1.
Then we choose from the middle region how we want these two indicators to interact.
We choose our second indicator from the place starting with 2.
If you want an indicator to interact with any value, tick the box where it says Value and fill in the value in the blank. When Value is ticked, the second indicator does not work.
Educational Strategy : TRIPLE DRAG-ON SYSTEM V.1The Triple Dragon System is a technical trading strategy that uses a combination of three different indicators to identify potential buy and sell signals in the market. The three indicators used in this strategy are the Extended Price Volume Trend (EPVT), the Donchian Channels, and the Parabolic SAR. Each of these indicators provides different types of information about the market, and by combining them, we can create a more comprehensive trading system.
The EPVT is used to identify potential trend changes and measure the strength of a trend. The Donchian Channels are used to identify the direction of the trend, while the Parabolic SAR is used to provide additional confirmation of trend changes and help determine potential entry and exit points.
In this strategy, we first use the EPVT and Donchian Channels to identify the direction of the trend. When the EPVT is above its baseline and the price is above the upper Donchian Channel, it suggests an uptrend. Conversely, when the EPVT is below its baseline and the price is below the lower Donchian Channel, it suggests a downtrend.
Once we have identified the trend direction, we use the Parabolic SAR to help determine potential entry and exit points. When the Parabolic SAR is below the price and flips to above the price, it suggests a potential buy signal. Conversely, when the Parabolic SAR is above the price and flips to below the price, it suggests a potential sell signal.
To further refine our trading signals, we use multiple timeframes to confirm the trend direction and ensure that we are not entering the market during a period of high volatility. We also use multiple take-profit levels to lock in profits and manage risk.
Overall, the Triple Dragon System is a comprehensive technical trading strategy that combines multiple indicators to provide clear entry and exit signals. By using a combination of trend-following and momentum indicators, we can identify potential trading opportunities while minimizing risk. Please note that this strategy is for educational purposes only and should not be taken as financial advice.
Strategy Template + Performance & Returns table + ExtrasA script I've been working on since summer 2022. A template for any strategy so you just have to write or paste the code and go straight into risk management settings
Features:
>Signal only Longs/only Shorts/Both
>Leverage system
>Proper fees calculation (even with leverage on)
>Different Stop Loss systems: Simple percentage, 4 different "move to Break Even" systems and Scaling SL after each TP order (read the disclaimer at the bottom regarding this and the TV % profitable metric)
>2 Take Profit systems: Simple percentages, or Risk/reward ratios based on SL level
>Additional option on TP so last one "rides free" until closure of position or Stoploss is hit (for more than 1 orders)
>Up to 5 TP orders
>Show or hide SL/TP levels on demand
>2 date filters. Manual filter is nothing new, enter two dates/hours and filter will turn on. BUT automatic filter is another thing (thanks to user @bfr_ for his help in codingthis feature)
>AUTOMATIC DATE FILTER. Allows you to split all historical data on the chart in X periods, then choose the range of periods used. Up to 10 but that can be changed, instructions included. Useful for WalkForward simulations, haven't seen a script in TradingView that allows you to do this and test your strategy on "unseen data" automatically
EXTRA SETTINGS
Besides, some additions I like to add to my codes:
>Returns table for monthly and weekly performance. Requires recalculation on every tick. This is a modified version of @QuantNomad's work. May add lower TF options later on
>Volume Based S/R system. Original work from @shtcoinr
>One feature that was made by me, the "portfolio table". Yields info and metrics of your strategy, current position and balance. You're able to turn it off and change its size
Should anyone find an error, or have any idea on how to improve this code, please contact me. Future updates could come, stay tuned
DISCLAIMER:
In order to have accurate StopLoss hit, I had to change the previous system, which was a "close position on candle close" instead at actual stoploss level. It was fixed, but resulted on inflation of the number of trading orders, thus reducing the percent profitable and making it strongly biased and unreal. Keep that in mind, that "real" profitability could be 2x or 3x the metric TradingView says. If your strategy has a really high trading frequency, resulting in 3000+ orders, might be a problem. Try to make use of the automatic/manual date filter as workaround, I have no means of changing this, seems it is not a bug but an intended design of the PineScript Code
Kitchen [ilovealgotrading]
OVERVIEW:
Kitchen is a strategy that aims to trade in the direction of the trend by using supertrend and stochRsi data by calculating at different time values.
IMPLEMENTATION DETAILS – SETTINGS:
First of all, let's understand the supertrend and stocrsi indicators.
How do you read and use Super Trend for trading ?
The price is often going upwards when it breaks the super trend line while keeping its position above the indication level.
When the market is in a bullish trend, the indicator becomes green. The indicator level will act as trendline support in such a scenario. The color of the indicator changes to red to indicate a negative trend once the price crosses the support line. The price uses the super trend level as a trendline resistance during a bearish move.
In our strategy, if our 1-hour and 4-hour supertrend lines show the up or down train in the same direction at the same time, we can assume that a train is forming here.
Why do I use the time of 1 hour and 4 hours ?
When I did a backtest from the past to the present, I discovered that the most accurate and consistent time zones are the 1 hour and 4 hour time zones.
By the way we can change our short term timeframe(1H) and long term timeframe(4H) from settings panel.
How do you read and use the Stoch-RSI Indicator?
This indicator analyzes price dynamics automatically to detect overbought and oversold locations.
The indicator includes:
- The primary line, which typically has values between 0 and 100;
- Two dynamic levels for overbought and oversold conditions.
IF our stoch-rsi indicator value has fallen below our lower boundary line, the oversold event has been observed in the price, if our stoch-rsi value breaks up our bottom line after becoming oversold, we think that the price will start the recovery phase.(The case is also true for the opposite.)
However, this does not always apply and we need additional approvals, Therefore, our 1H and 4H supertrrend indicator provides us with additional confirmation.
Buy Condition:
Our 1H(short term) and 4H(long term) supertrrend indicator, has given the buy signal(green line and yellow line), and if our stochrsi indicator has broken our oversold line up on the past 15 bars, the buy signal is formed here.
Sell Condition:
Our 1H(short term) and 4H(long term) supertrrend indicator, has given the sell signal(red line and orange line), and if our stochrsi indicator has broken our overbuy line down on the past 15 bars, the sell signal is formed here.
Stop Loss or Take Profit Conditions:
Exit Long Senerio:
All conditions are completed, the buy signal has arrived and we have entered a LONG trade, the 1-hour supertrend line follows the price rise(yellow line), if the price breaks below the 1-hour super trend line and a sell condition occurs for 1H timeframe for supertrend indcator, LONG trade will exit here.
Exit Short Senerio:
All conditions are completed, the Sell signal has arrived and we have entered a SHORT trade, the 1-hour supertrend line follows the price down(orange line), if the price breaks up the 1-hour super trend line and a buy condition occurs for 1H timeframe for supertrend indcator, SHORT trade will exit here.
What can you change in the settings panel?
1-We can set Start and End date for backtest and future alarms
2-We can set ATR length and Factor for supertrend indicator
3-We can set our short term and long term timeframe value
4-We can set StochRsi Up and Low limit to confirm buy and sell conditions
5-We can set stochrsi retroactive approval length
6-We can set stochrsi values or the length
7-We can set Dollar cost for per position
8- We can choose the direction of our positions, we can set only LONG, only SHORT or both directions.
9-IF you want to place automatic buy and sell orders with this strategy, you can paste your codes into the Long open-close or Short open-close message sections.
For example
IF you write your alert window this code {{strategy.order.alert_message}}.
When trigger Long signal you will get dynamically what you pasted here for Long Open Message
ALSO:
Please do not open trades without properly managing your risk and psychology!!!
If you have any ideas what to add to my work to add more sources or make calculations cooler, suggest in DM .
basilGrid GridBot Live [basilChart]This strategy is a full implementation of Live Grid Trading.
Prominent features of this live grid trading strategy are:
- Logarithmic Chart Support: This strategy can support Log Scale on graph. Meaning that grid lines won't have irregular gaps in between the lines if you would like to view the chart Log Scaled. Every line will be aligned correctly even if you use Log Scale or not.
- Precise Buy & Sell: Script will execute precise Buy and Sell orders.
- Dynamic Grid Level Count: From 2 grid levels to n amount of grid levels are supported. There is no limitation on grid level count, however there may be irregularities because of limitations when higher grid levels are used. You can pick any number starting from 2.
- Average Price: Traders can monitor average price of positions.
- Alerts: When order is filled trader can receive notification. Create new alert > Select basilGrid Live > Order fills only()
Characteristics of this script:
- Able to fill more than one order in one single candle.
- Levels will keep being updated with every trade.
- There will be always one grid level ignored and it will be the level which made the last order filling possible. This is normal behavior of grid trading system.
- You can both use Log Scale and Normal Scale with this script. No issue will be on grid levels.
Using the script:
- Add this script to the chart from indicators tab
- Set starting date for the live grid bot either by dragging and dropping the vertical line or by the date-time picker from indicator Inputs tab.
- Set highest and lowest limit for the script. These will be the boundary limits. Highest and lowest price for the script to work on. Lines will populate between these two values
- Set grid level count. Number of levels of the grid.
- Set amount to spend on per level. This quantity of order will be placed on each level when needed.
After setting the above settings, there is one last thing to do in order to get precise results. It is setting the Initial Capital.
- We can set this setting from 'Properties' tab. Named 'Initial Capital'. After setting the boundaries all we need to is to navigate to TradingView's own 'Data Window', and get the value there. Then paste it on the strategy's own related setting area.
In this example we used pair BTCUSDT 1D timeframe, our settings are:
Inputs Tab:
- Grid Count: 19
- High Limit: 65 500
- Low Limit: 15 000
- Quantity per level: 0.1
- Toggle Log Scale: Checked (because I always use Log Scale on charts, if Log Scale is turned on for the chart, this needs to be checked)
- Terminate Grid At The Upmost Level: Not checked
- Show Grid Levels: Checked
- Show Average Position Price: Checked
Properties Tab:
- Initial Capital: 22 628
- Slippage: 5
- Commission: 0.1% (this is the broker commission value)
This script's purpose is to make it easier to get the idea of grid trading, experiencing it in live session.
CAPTURING THE VIX FUTURES ROLL YIELD
Our trading strategy utilizes the VIX term structure as a tool for gaining valuable insights on market sentiments. We identify the relationship between VIX futures prices and maturity dates, which can be either contango or backwardation. The slope of the VIX term structure is also a leading indicator and usually changes direction before volatility changes.
To execute this strategy, we use volatility ETNs, such as SVXY, which is a portfolio of short front and next month VIX futures. We have observed that the VIX quite often leads the S&P 500, and when this occurs, the signal lets us know whether to be long or short.
Additionally, we consider the difference between future and cash prices, which is often called roll yield. When the VIX futures term structure is in contango, roll yield is positive, and when it is in backwardation, roll yield is negative. We use a combination of the VIX term structure and roll yield to trade VIX ETNs.
When roll yield is positive over time, VIX ETNs tend to lose value. To earn a positive return, we take a long position in inverse VIX ETN, such as SVXY. However, buy and hold SVXY performance is mediocre. Therefore, we can improve the performance by making use of roll yield. We go long SVXY when roll yield is positive, and when yield is negative, we go long VXX. This strategy allows us to effectively trade VIX ETNs by using a combination of, VIX term structure, and roll yield to make informed trading decisions.
Donchian Trend V1The Donchian Trend strategy is a trend-following approach that uses the Donchian Channels indicator to identify potential entry and exit points in a security. The Donchian Channels are formed by taking the highest high and the lowest low prices over a specified period and plotting them as upper and lower channels around the current price. The width of the channels indicates the level of volatility in the market.
In this strategy, the Donchian Channels are used as a trend filter to determine the direction of the market. When the price is above the upper channel, it suggests an uptrend, and when the price is below the lower channel, it indicates a downtrend. The length of the Donchian Channels is a key parameter in the strategy, as it determines the look-back period for identifying the high and low prices.
Additional Logic: To further refine the entry and exit signals, The script uses two moving averages, a fast one (MA5) and a slow one (MA45), to identify trends and generate trading signals. When the fast moving average crosses above the slow moving average, a buy signal is generated, indicating that the market is trending upwards. Conversely, when the fast moving average crosses below the slow moving average, a sell signal is generated, indicating that the market is trending downwards.
Evaluation: The script was backtested on historical price data for the pair. The backtest results showed that the script was able to generate a net profit of , with a profit factor of and a Sharpe ratio of . The script also includes metrics such as the number of winning and losing trades, the average trade, and the largest winning and losing trades.
The strategy is evaluated based on its net profit, gross profit, gross loss, max run-up, max drawdown, buy & hold return, Sharpe ratio, Sortino ratio, and profit factor. The parameters used in the backtest include a Donchian Channel length of 42, which corresponds to a weekly time with divide of 4h time frame, and a short-term MA of 5 and a long-term MA of 45 for more accurate entry and exit signals.
Disclaimer: This script is for educational and research purposes only and should not be used for trading with real money without further testing and validation. Past performance is not indicative of future results.
ARCHENS SHARESThis script marks the high and low of 9.45 to 10.15 price. When the price breaks high, then gives Buy signal. When the price breaks low, then it gives Sell Signal. These buy and sell signals are given with labels "ARCHENS BUY" or "ARCHENS SELL". With my observation in stock market, I have made this strategy.
This strategy works in normal candle pattern but i observed that it works well in heikenashi candle. For this strategy to work well, we have to select 5 mins heikenashi candles.
If this strategy gives "ARCHENS buy", then buy it. Target should be as per individuals mind. But Stop loss should be hitted when there are two continue opposite {red} heikenashi candle.
If this strategy gives "ARCHENS sell", then sell it. Target should be as per individuals mind. But Stop loss should be hitted when there are two continue opposite {green} heikenashi candle.
bc Grid Backtest v1.4This strategy is a full implementation of Grid Trading backtest.
Prominent features of this backtesting strategy are:
- Logarithmic Chart Support: This strategy can support Log Scale on graph. Meaning that grid lines won't have irregular gaps in between the lines if you would like to view the chart Log Scaled. Every line will be aligned correctly even if you use Log Scale or not.
- Precise Buy & Sell: Script will execute precise Buy and Sell orders.
- Dynamic Grid Level Count: From 2 grid levels to n amount of grid levels are supported. There is no limitation on grid level count. You can pick any number starting from 2.
- Customized Backtesting Results Table: A table which includes data for those who want to know has been added at top right. It can be disabled.
Characteristics of this script:
- Able to fill more than one order in one single candle.
- Levels will keep being updated with every trade.
- There will be always one grid level ignored and it will be the level which made the last order filling possible. This is normal behavior of grid trading system.
- You can both use Log Scale and Normal Scale with this script. No issue will be on grid levels.
Using the script:
- Add this script to the chart from indicators tab
- Set starting and ending date for the grid backtesting bot either by dragging and dropping the vertical lines or by the date-time picker from indicator Inputs tab.
- Set highest and lowest limit for the script. These will be the boundary limits. Highest and lowest price for the script to work on. Lines will populate between these two values
- Set grid level count. Number of levels of the grid.
- Set amount to spend on per level. This quantity of order will be placed on each level when needed.
After setting the above settings, there is one last thing to do in order to get precise results. It is setting the Initial Capital.
- We can set this setting from 'Properties' tab. Named 'Initial Capital'. After setting the boundaries all we need to is to navigate to TradingView's own 'Data Window', and get the value there. Then paste it on the strategy's own related setting area.
In this example we used pair BTCUSDT 4h timeframe, our settings are:
Inputs Tab:
- Grid Count: 13
- High Limit: 72 000
- Low Limit: 17 000
- Logarithmic Grids: Checked (because I always use Log Scale on charts, if Log Scale is turned on, this needs to be checked)
- Quantity per level: 0.1
- Show Table: Checked
- Show Grid Levels: Checked
- Show Average Position Price: Checked
Properties Tab:
- Initial Capital: 24 902
- Slippage: 5
- Commission: 0.1% (this is the broker commission value)
This script's purpose is to make simulating possible outcomes between two dates. Therefore making it easier to get the idea of grid trading, finding the best settings for your risk management and for your portfolio.
Reinforced RSI - The Quant Science This strategy was designed and written with the goal of showing and motivating the community how to integrate our 'Probabilities' module with their own script.
We have recreated one of the simplest strategies used by many traders. The strategy only trades long and uses the overbought and oversold levels on the RSI indicator.
We added stop losses and take profits to offer more dynamism to the strategy. Then the 'Probabilities' module was integrated to create a probabilistic reinforcement on each trade.
Specifically, each trade is executed, only if the past probabilities of making a profitable trade is greater than or equal to 51%. This greatly increased the performance of the strategy by avoiding possible bad trades.
The backtesting was calculated on the NASDAQ:TSLA , on 15 minutes timeframe.
The strategy works on Tesla using the following parameters:
1. Lenght: 13
2. Oversold: 40
3. Overbought: 70
4. Lookback: 50
5. Take profit: 3%
6. Stop loss: 3%
Time period: January 2021 to date.
Our Probabilities Module, used in the strategy example:
ichimoku Masters Backtester LightThis Indicator has so many options for build your own strategy
With this indicator you can build your own strategy using the options that we provided here
in the "Static Enter" Section you can choose where do you want to enter your position and customize it with "Enter Candle" Section,by specifying these options, the indicator will start opening the position for you and show you the backtest.
In the "Static Exit (SL & TP)" section you can choose where do you want to exit your positions with setting target and stop for your positions.
And at the end you can set alert on opening and closing position and be aware of that
We hope that you enjoy using ichimoku Masters Backtester Light
-Notice : The Sections: "Dynamic Enter" , "Dynamic Exit" , "9Br Enter" , "9Br Exit" , "Pre Cross" , "Cross Enter" , "Cross Exit" , "Chiko Enter" , "Break Enter" , "Pre Switch" , "Switch Enter" , "Switch Exit" , "Ichi Elements" , "Ichi Elements Order" and "Risk Management" are limited on this version and you are not able to use them
- the "Name" Argument is for naming your strategy
- Open Section has 3 options :
1 : Buy/Sell opens positions when ichimoku cloud and conversion and base line cross at the sametime
2 : 26BoxBr opens position when candle breaks the ichimoku 26 box that indicator builds on "Box" Section
3 : 52BoxBr opens position when candle breaks the ichimoku 52 box that indicator builds on "Box" Section
- Box Section has 6 options :
1 : Cr sets the box on conversion and base cross
2 : OldCr sets the box on conversion and base cross with the beginning candle
3 : PC sets the box on a cross which has no cross before until 26 candles
4 : 9Signal Box sets the box on 9 candles of open position candle
5 : 26Signal Box sets the box on 26 candles of open position candle
4 : 52Signal Box sets the box on 52 candles of open position candle
- Enter1% sets the percent of entry position
- Risk% sets the percent you want to risk your equity
- Max Leverage sets the maximum leverage you want to have on your positions
- S2S is for staying on the position and the indicator does not open the opposite position
- Enter Candle Section has 14 check boxes:
1 : Scandle means that our open position candle should be standard
2 : NoScandle means that our open position candle should not be standard
3 : Tr means that our open position candle should be green for long positions and red for short positions
4 : NoTr means that our open position candle should be red for long positions and green for short positions
5 : G means that our open position candle should be big candle
6 : NoG means that our open position candle should not be big candle
7 : 9Grd means that conversion line shoud be yellow for long positions and white for short positions
8 : No9Grd means that conversion line shoud not be yellow for long positions and white for short positions
9 : 26Grd means that base line shoud be yellow for long positions and white for short positions
10 : No26Grd means that base line shoud not be yellow for long positions and white for short positions
11 : 52Grd means that Lead2 line shoud be yellow for long positions and white for short positions
12 : No52Grd means that Lead2 line shoud not be yellow for long positions and white for short positions
13 : InCL means that our open position candle should be in ichimoku cloud
14 : OutCL means that our open position candle should not be in ichimoku cloud
- Static Exit (SL & TP)
- Sl Section has 6 Options:
1 : Middle26 sets the stop loss of the position on the middle of the box
2 : 9 Stop sets the stop loss of the position on the 9 candles box
3 : 26 Stop sets the stop loss of the position on the 26 candles box
4 : 52 Stop sets the stop loss of the position on the 52 candles box
5 : 26Double box sets the stop loss of the position on the Double of 26 candles box
6 : 52Double box sets the stop loss of the position on the Double of 52 candles box
- in TP we can set our targets from 1 to 20
- LogTp sets our target based on logarithm
- Multiple Enter:
in this section we can set our additional orders for open positions,for this you should turn on the "On" button and then set your orders base on box, for example:
when you put 50 on Enter2 and 10 on Enter2% ,then indicator sets an order on the 50 percent of box in 10% of your equity
- Multiple Exit:
in this section you can set your step exit of order, for this you should turn on the "on" button and set your steps on box targets, for example:
when you put 1 on Exit1 and 10 on Exit1% , then indicator exit 10 percent of your position on the target 1 of box
- RF Stands for risk free and you can risk free your positions using RF ,for example :
when you put 1 on RF and 10 on RF% ,then indicator place your stop on opening position candle when it touches the target 1 of the box and exits 10 percent of your position
- Ichi Numbers : in this section you can specify your ichimoku numbers
- C stands for Conv
- B stands for Base
- L stands for Lead2
- Visual Setting : in this section you can choose variable that you want to see on the chart
- Long TP/SL shows you the Long position target and stop
- Short TP/SL shows you the Short position target and stop
- Cloud shows you the ichimoku cloud
- Offset shifts the ichimoku clouds on 26 candles
- Conv shows you the conversion line
- Base shows you the base line
- Chiko shows you the chiko span line
- Pre shows you the point that conv prediction line and base prediction line cross each other and lead2 prediction line and lead1 prediction line cross too at the same time
- Cr shows you the cross point of conv and base lines
- PC shows the cross point of conv and base lines which has no cross up to 26 candles ago
- EqCr shows you the cross point of conv and base lines which the conv and base are equal
- Buy_Sell shows you the point that conv line and base line cross each other and lead2 line and lead1 line cross too at the same time
- Position Info shows you the information of position such as leverage and entry equity
- Enjoy :)
Strategy: Range BreakoutWhat?
In the price action, levels have a significant role to play. Based on the price moving above/below the levels - the underlying instrument shows some price-action in the direction of breakout/breakdown.
There are plenty of ways level can be determined. Levels are the decision point to take a trade or not. But if we make the level derivation complex, then the execution may get hamper.
This strategy script, developed in PineScript v5, is our attempt at solving this problem at the core by providing this simple, yet elegant solution to this problem.
It's essentially an attempt to Trade Simple by drawing logical (horizontal) lines in the chart and take actions, after multiple associated parameters confirmation, on the breakout / breakdown of the levels.
How?
Let us explain how we are drawing the levels.
We are depending on some of the parameters as described below:
Open Range : During intraday movement, often if prices move beyond a particular level, it exibits more movement in the same swing in same direction. We found out, through our back testing for Indian Indices like NSE:NIFTY , NSE:BANKNIFTY or NSE:CNXFINANCE the first 15m (i.e 09:15 AM to 09:30 AM, IST) is one of such range. For Indian stocks, it is 9:15 to 9:45. And for MCX MCX:CRUDEOIL1! it's 5:00 pm to 6:00 pm. There are our first levels.
PDHCL : Previous Day High, Close, Low. This is our next level
VWAP : The rolling VWAP (volume weighted average price)
In the breakout/breakdown of the Open Range and Previous Day High/Low, we are taking the trade decisions as follows using CEST principle:
C onditions :
If current bar's (say you are in 5m timeframe) closing is broken out the Open Range High or Previous Day High, taken a Buy/Long decision (let's say buying a Call Option CE or selling a Put Option PE or buying the future or cash).
If current bar's (say you are in 5m timeframe) closing is broken down the Open Range Low or Previous Day Low, taken a Sell/Short decision (let's say buying a Put Option CE or selling a Call Option PE or selling the future or cash).
Additionally, and optionally (default ON, one can turn off): we are checking various other associated multiple confirmations as follows:
1. Momentum : Checking 14-period RSI value is more than 50 or less than 50 (all parameters like period, OB, OS ranges are configurable through settings)
2. Current bar's volume is more than the last 20 bars volume average. How much more - that multiplier is also configurable. (default is 1)
3. The breakout candle is bullish (green) or bearish (red).
E ntry :
All of these happens only on the closing of the candle . Means: Non Repainting! .
Clearly in the chart we are showing as green up arrow BO (breakout for buy) and red down arrow BD (breakdown for sell) to take your decision process smooth.
So, on the closing of the decision BO/BD candle we are entering the trade (with a thumping heart and nail biting ...)
S top Loss :
We are relying on the time tasted (last 40 years) mechanism of Average True Range (ATR) of default 14 period. This default period is also configurable.
So for Long trades: the 14 period ATR low band is the SL.
For Short trades: the 14 period ATR high band is the SL.
T arget :
We are depending on the thump rule of 1:2 Risk Reward. It's simple and effective. No fancy thing. We are closing the trade on double the favorable price movement compared to the SL placed. Of course, this RR ratio is confiurable from the settings, as usual.
What's Unqiue in it?
The utter simplicity of this trading mechanism. No fancy things like complex chart pattern, OI data, multiple candlestick patterns, Order flow analysis etc.
Simple level determination,
Marking clearly in the chart.
Making each parameter configurable in Settings and showing tooltip adjacent to the parameter to make you understand it better for your customization,
Wait for the candle close, thus eliminating the chances of repainting menace (as much as possible)
Additional momentum and volume check to trade entry confirmation.
Works with normal candlestick (nothing special ones like HA ...)
Showing everything as a Summary Table (which, again can be turned off optionally) overlaying at the bottom-right corner of the chart,
Optionally the Summary Table can be configured to alert you back (say you get it notified in your email or SMS).
That way, a single, simple, effective trade setup will ease your journey as smooth sail as possible.
Mentions
There are plenty of friends from whom time to time we borrowed some of the ideas while working closely together over last one year.
From tradingview community, we took the spirit of @zzzcrypto123 awesome work done long back (in 2020) as the indicator "ORB - Opening Range Breakout". (We tried to reach him for his explicit consent, unable to catch hold of him).
Some other publicly available materials we have consulted to get the additional checks (like RSI, volume).
Lat word
Use it please and thank you for your constant patronage in following us in this awesome platform. Let's keep growing together.
Disclaimer :
This piece of software does not come up with any warrantee or any rights of not changing it over the future course of time.
We are not responsible for any trading/investment decision you are taking out of the outcome of this indicator.