Session Breakout Scalper Trading BotHi Traders !
Introduction:
I have recently been exploring the world of automated algorithmic trading (as I prefer more objective trading strategies over subjective technical analysis (TA)) and would like to share one of my automation compatible (PineConnecter compatible) scripts “Session Breakout Scalper”.
The strategy is really simple and is based on time conditional breakouts although has more ”relatively” advanced optional features such as the regime indicators (Regime Filters) that attempt to filter out noise by adding more confluence states and the ATR multiple SL that takes into account volatility to mitigate the down side risk of the trade.
What is Algorthmic Trading:
Firstly what is algorithmic trading? Algorithmic trading also known as algo-trading, is a method of using computer programs (in this case pine script) to execute trades based on predetermined rules and instructions (this trading strategy). It's like having a robot trader who follows a strict set of commands to buy and sell assets automatically, without any human intervention.
Important Note:
For Algorithmic trading the strategy will require you having an essential TV subscription at the minimum (so that you can set alerts) plus a PineConnecter subscription (scroll down to the .”How does the strategy send signals” headings to read more)
The Strategy Explained:
Is the Time input true ? (this can be changed by toggling times under the “TRADE MEDIAN TIMES” group for user inputs).
Given the above is true the strategy waits x bars after the session and then calculates the highest high (HH) to lowest low (LL) range. For this box to form, the user defined amount of bars must print after the session. The box is symmetrical meaning the HH and LL are calculated over a lookback that is equal to the sum of user defined bars before and after the session (+ 1).
The Strategy then simultaneously defines the HH as the buy level (green line) and the LL as the sell level (red line). note the strategy will set stop orders at these levels respectively.
Enter a buy if price action crosses above the HH, and then cancel the sell order type (The opposite is true for a stop order).
If the momentum based regime filters are true the strategy will check for the regime / regimes to be true, if the regime if false the strategy will exit the current trade, as the regime filter has predicted a slowing / reversal of momentum.
The image below shows the strategy executing these trading rules ( Regime filters, "Trades on chart", "Signal & Label" and "Quantity" have been omitted. "Strategy label plots" has been switched to true)
Other Strategy Rules:
If a new session (time session which is user defined) is true (blue vertical line) and the strategy is currently still in a trade it will exit that trade immediately.
It is possible to also set a range of percentage gain per day that the strategy will try to acquire, if at any point the strategy’s profit is within the percentage range then the position / trade will be exited immediately (This can be changed in the “PERCENT DAY GAIN” group for user inputs)
Stops and Targets:
The strategy has either static (fixed) or variable SL options. TP however is only static. The “STRAT TP & TP” group of user inputs is responsible for the SL and TP values (quoted in pips). Note once the ATR stop is set to true the SL values in the above group no longer have any affect on the SL as expected.
What are the Regime Filters:
The Larry Williams Large Trade Index (LWLTI): The Larry Williams Large Trade Index (LWTI) is a momentum-based technical indicator developed by iconic trader Larry Williams. It identifies potential entries and exits for trades by gauging market sentiment, particularly the buying and selling pressure from large market players. Here's a breakdown of the LWTI:
LWLTI components and their interpretation:
Oscillator: It oscillates between 0 and 100, with 50 acting as the neutral line.
Sentiment Meter: Values above 75 suggest a bearish market dominated by large selling, while readings below 25 indicate a bullish market with strong buying from large players.
Trend Confirmation: Crossing above 75 during an uptrend and below 25 during a downtrend confirms the trend's continuation.
The Andean Oscillator (AO) : The Andean Oscillator is a trend and momentum based indicator designed to measure the degree of variations within individual uptrends and downtrends in the prices.
Regime Filter States:
In trading, a regime filter is a tool used to identify the current state or "regime" of the market.
These Regime filters are integrated within the trading strategy to attempt to lower risk (equity volatility and/or draw down). The regime filters have different states for each market order type (buy and sell). When the regime filters are set to true, if these regime states fail to be true the trade is exited immediately.
For Buy Trades:
LWLTI positive momentum state: Quotient of the lagged trailing difference and the ATR > 50
AO positive momentum state: Bull line > Bear line (signal line is omitted)
For Sell Trades:
LWLTI negative momentum stat: Quotient of the lagged trailing difference and the ATR < 50
AO negative momentum state: Bull line < Bear line (signal line is omitted)
How does the Strategy Send Signals:
The strategy triggers a TV alert (you will neet to set a alert first), TV then sends a HTTP request to the automation software (PineConnecter) which receives the request and then communicates to an MT4/5 EA to automate the trading strategy.
For the strategy to send signals you must have the following
At least a TV essential subscription
This Script added to your chart
A PineConnecter account, which is paid and not free. This will provide you with the expert advisor that executes trades based on these strategies signals.
For more detailed information on the automation process I would recommend you read the PineConnecter documentation and FAQ page.
Dashboard:
This Dashboard (top right by defualt) lists some simple trading statistics and also shows when a trade is live.
Important Notice:
- USE THIS STRATEGY AT YOUR OWN RISK AND ALWAYS DO YOUR OWN RESEARCH & MANUAL BACKTESTING !
- THE STRATEGY WILL NOT EXHIBIT THE BACKTEST PERFORMANCE SEEN BELOW IN ALL MARKETS !
Cerca negli script per "algo"
Z Algo (Expo)█ Overview
Z Algo (Expo) is a sophisticated and user-friendly trading tool designed to meet the needs of both novice and seasoned traders. With its real-time signals, trend analysis, and risk management capabilities, this tool can be a valuable addition to any trader's toolkit.
█ Main Features & How to Use
Buy/Sell signals: Z Algo provides real-time buy and sell signals, which assist traders in identifying the most opportune moments to enter or exit a trade.
Strong Buy/Sell signals: In addition to regular buy and sell signals, the tool also offers strong buy and sell signals. These are generated when the market conditions align with a higher probability of a significant price movement.
Sniper Signals: This feature is specifically designed for contrarian traders who look to exploit temporary market inefficiencies or take advantage of price reversals. When enabled, Sniper Signals identify potential market turning points, offering traders the opportunity to profit from sharp price fluctuations.
Reversal Cloud: The Reversal Cloud is a unique visual representation of the market's potential trend reversals. It offers traders an easy-to-understand display of changing market dynamics, enabling them to quickly identify potential entry and exit points based on trend reversals.
Support and Resistance (S/R) Levels: Z Algo automatically calculates and displays support and resistance levels on the chart. These are crucial price points where buying or selling pressure may change, providing valuable insights for traders looking to enter or exit positions based on these levels.
Trend Tracker: This feature helps traders monitor and analyze the prevailing market trend. Trend Tracker identifies and highlights the direction of the trend, allowing traders to align their strategies accordingly and increase their chances of success.
Trend Background Color: To improve the user experience and simplify the interpretation of market data, Z Algo changes the chart's background color based on the identified trend direction. This visual cue makes it easier for traders to recognize bullish or bearish trends at a glance.
Bar Coloring: In addition to the trend background color, Z Algo also provides bar coloring for both contrarian and trend bars. This feature helps traders visualize price movements and trends more effectively, enabling them to identify potential opportunities for both trend-following and contrarian trading strategies.
Risk Management: The tool incorporates risk management features that help traders to protect their capital and maximize potential returns. Users can set stop-loss and take-profit levels, as well as customize their risk exposure according to their individual preferences and trading style.
█ Calculations
█ What are the Buy/Sell signals based on?
The Buy/Sell signals use volatility and price range with a weighting function that can help reduce lag and respond faster to recent price changes. The function gives more weight to the most recent volatility values and absolute price changes, making the algorithm more responsive to changes in volatility and price moves. Using a model that factors in both price changes and volatility gives a bias toward more recent data. This advanced approach to trading signal generation incorporates the concepts of trend following and mean reversion while accounting for changing market volatility.
Traditional systems often use fixed parameters, which may not adapt quickly to changes in market conditions. This can lead to late entries or exits, potentially reducing profitability or increasing risk. Our algorithm uses a weighting function to give more importance to recent volatility values, and absolute price changes can make these signals more responsive. This is especially useful in dynamic markets where price swings and volatility can change rapidly.
Adapting to Recent Price Changes: Markets can often exhibit trending behavior over certain periods. By weighing recent price changes more heavily, the model can quickly identify and react to the emergence of new trends. This can lead to earlier entries in a new trend, potentially increasing profitability.
Adapting to Recent Volatility Changes: Markets can shift from low to high volatility regimes (and vice versa) quite rapidly. A model that gives more weight to recent volatility can adapt its signals to these changing conditions. For example, in high volatility conditions, the model might generate fewer signals to reduce the risk of false breakouts. Conversely, in low volatility conditions, the model might generate more signals to capitalize on trending behavior.
Adaptive Trading: The approach inherently leads to an adaptive trading system. Rather than using fixed parameters, the system can adjust its behavior based on recent market activity. This can lead to a more robust system that performs well across different market conditions.
█ What are the Sniper signals (contrarian signals) based on?
Our contrarian signals are based on deviation from the expected value. The algorithm quantifies the amount of variation or dispersion in a set of values. Non-expected values are the fundamental core of the signal generation process.
█ Reversal Cloud Calculation
The cloud uses the information of how much the price fluctuates over a specific time period and updates its equilibrium value automatically at new price changes. The price changes are used to predict what will happen next, and the band adapts accordingly. The algorithm assumes that past price changes can predict future market behavior.
█ Support and Resistance (S/R) Levels Calculation
The support and resistance levels use historical overbought and oversold levels combined with a weighted atr function to predict future support and resistance areas. This calculation can potentially give traders a great heads-up on where the price may find support and resistance at.
█ Trend & Bar coloring Calculation
Trend calculations with dynamic events are key in ever-changing markets. The main idea of the calculation method is to find the mathematical function that best fits the data points, by minimizing the sum of the squares of the vertical distances of each data point from the equilibrium. The outcome is a function that finds the best mathematical description of that data. Hence the trend output may vary depending on the asset and timeframe. A unique approach where the same settings can give different results.
█ Risk Management Calculation
The risk management system is not unique in itself and contains everything that can help traders to manage their risk, such as different types of stop losses, Take Profits calculations.
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
Assisted framework with the Algorithm Builder - INDEXHello traders
I. 💎 SCRIPTS ACCESS AND TRIALS 💎
1. For the trial request access, they have to be done through my website .
2. My website URL is in this script signature at the very bottom (you'll have to scroll down a bit and going past the long description) and in my profile status available here : Daveatt
Due to the new scripts publishing house rules, I won't mention the URL here directly. As I value my partnership with TradingView very much, I prefer showing you the way for finding them :)
3. Many video tutorials explaining clearly how all our indicators work are available on your website > guides section.
4. You may also contact me directly for more information
II. 🔎 Algorithm Builder INDEX 🔎
2.1 INDEX trading
Let's start with a quick definition.
Index Trading is a type of trading of a group of stocks that make up the index. An Index is a measurement of the value of a section of the stock market. It is computed from the prices of selected stocks. It may also be referred to as a group of stock market publicly-listed uppermost businesses within a region. There are numerous Stock Market Indices within the world such as Dow Jones/SPX500 (USA), DAX (Germany), S&P/ASX 200 (Australia), FTSE100 (London), CAC 40 (France), AEX index (Amsterdam), IBEX 35 and more.
2.2 🔗 Which brokers are compatible? 🔗
⚠️⚠️Please note we mostly tested those signals with FXCM broker.
You may use a different broker but you have to make sure your broker has a similar price quote with at most 2/3 pips difference with FXCM.
We chose a broker where the spreads are among the lowest across the board.
Disclaimer : we're not affiliated in any way with them.
2.3 Concept
This indicator is born because we identified 2 types of traders :
1) Those who want to play with the indicators and discover a sound system by themselves.
That's why we made the Algorithm Builders (Singles/Multiples) + Backtest suites
2) Those who want to be guided way more and get signals that actually are very coherent AND without too much configuration on their end.
We're very aware that this point is a big claim and to prove how confident we are with our Algorithm Builder (INDEX), we're sharing on TradingView the signals given by the tool at the end of each day.
Our new PREMIUM customers automatically get a 3 weeks trial to try out all of our indicators and see themselves how they perform.
We could show you all the track records/backtests in the world (which could easily be faked with very optimistic setups or photoshop) - instead, we'd like YOU to try our products yourselves during your Trial - as this would be the best proof you could ever get that our indicators could help your trading.
III. 🔅 The INDEX Framework 🔅
ALL signals are displayed because they have to be taken (unless invalidated or risk too big) because we cannot know before what signal will lead to big profits versus get invalidated.
Those signals were made such as :
- in case of a risk of losing capital, we would lose a small amount thanks to the invalidations/hard exits.
- give only signals where the Risk-to-reward is decent enough and the risk is not disproportioned compared to the potential reward.
- NOT a guarantee at all but we made those signals such as they'll reward the traders with about 30/50 pips gains per trade.
Assuming the Algo INDEX gives 5 trades a day and you applied it on 3 indexes and 1 trade per index is a loss (= likely invalidated with a small loss - a Stop Loss could always happen but we designed it to prevent those from happening), then we're not aware of any other trading method/system beating that on index trading. Period.
And we're actively monitoring what the competition is doing on a daily basis always to stay ahead.
I'll explain below which market condition is riskier and how to act (which is better than usually reacting in trading or in life in general).
IV. 📜 The 10 Commandments 📜
1️⃣ You shall read our guide on our website and look at the video tutorial .
URL available on this script signature (you'll have to scroll down a bit and going past the long description) and in my profile status.
I give way more details there and won't give too much info here because it will make this script description way too long.
2️⃣ You shall follow the method religiously and trade like a “MACHINE” .
All graphical elements displayed on the chart by our indicator is useful (= to be used) and has been thought of, tested and traded with for years.
We know that adopting someone else's method is a huge leap of faith but it's required sometimes to ask our clients to trust us.
3️⃣ You must always consider the supports and resistances.
We know it could be surprising to see so many S/R displayed by the indicator but you'll have to trust us on the following claim: They're all important and must be considered before entering a trade or not
4️⃣ You must Not change the recommended chart timeframe.
Even if the chart timeframe is 1 minute, the sub-indicators used are very smoothed and based on indicators in 15/30/1h timeframes.
Entering in a 1 min chart allows to enter sooner and this combined with multi timeframes indicators allows to enter when a trend is confirmed.
5️⃣ You Must NOT trade anything else than indexes with this indicator.
As said before, we're working really hard on releasing a similar assisted trading framework for cryptocurrencies and other asset classes (FOREX, COMMODITIES, ...) and we aim to release the Algo Builder CRYPTO before the end of this year.
We started with the ALGO INDEX because it's our specialty, there is a ton of liquidity in that market and a lot of traders asked for it - we would say almost as close as the number of traders asking us for an ALGO CRYPTO framework.
6️⃣ You shall know the Leading Trend displayed on your chart
- Signal in the same direction of the leading trend: i.e. green signal on a green chart background and red signal on a red chart background.
- Signal given regardless of the leading trend direction.
In other words, green/red signal may be displayed on either background color (green/red)
In that scenario, we recommend waiting for a pullback near the EMA(20) and set your SL to breakeven quickly.
⚠️ To be clear; ALL signals should be taken but those against the trend could require a pullback as explained above.
7️⃣ You shall know your trading profile
Trend confirmation when entering against the leading trend: You'll also notice that the leading trend is real and strong.
Let's assume a trader enters in a LONG position/RED background and then the chart background turns GREEN at some point later on.
You'll often see that this "event" will confirm even more the trend direction and that's when the trend could very likely accelerate.
8️⃣ You will embrace the Hard Exits philosophy.
The framework won't work as well as expected without them.
It's even the most important "commandment" and it requires to be rigorous and throw away to the bin whatever we might think and feel.
Not exiting a signal when invalidated because you feel differently will not work.
9️⃣ You must know the Risk and Money Management basis.
Each market is unique and cannot possibly be traded the same way.
We're happy to provide a few guidelines for the INDEX market just below.
- Know your macro events with the daily economic calendar.
- Stay consistent with your position sizing
- Stay consistent with your trade management
🔟 You Shall Test and Make your Own Conclusions.
You have a FREE TRIAL period to test because we know that many traders aren't full-time traders and have a family/job/life outside trading.
So take your time to visually backtest the signals, trade with small positions, follow our rules and learn from your own experience.
While we keep saying "do this, do that", we're not dogmatic at all and we welcome any feedback you might have that could benefit the community and we'll likely integrate it if we see a good value in your idea.
You can submit an idea/feedback/comment by contacting me directly.
V. 🧰 Features 🧰
5.1 Supports and Resistances
The indicator displays the main algorithmic supports and resistances according to our trading method for INDEX.
5.2 Choose your favorite risk management algorithm
1/ Pre-defined and recommended mode for this INDEX framework - Algo S/R method using:
- the nearest algorithmic resistances for the take profit levels.
2/ Define your own Stop-loss and Take-profits level in real-time
Stop-Loss Management
For what's following, let's assume that 2 is the stop-loss value you inserted in the indicator, and the Algorithm Builder gives a BUY signal.
This is NOT a recommendation at all, only an example to explain how this feature works.
- %Trailing: The Stop-Loss starts 2% away from the entry price - and will move up (because we're on a BUY trade as per our example) every time your trade will gain 2% profit
- Percentage: The Stop-Loss stays static 2% away from the entry price. There is no trailing here
- TP Trailing: This is a very awesome feature. The stop-loss is set 2% away when the trades start.
When the TP1 is hit, the stop-loss will be moved to the Entry price (also called breakeven).
When the TP2 is hit, the SL is moved to the previous TP1 position
- Fixed: Set the Stop-Loss at a fixed position (value should be in currency/units)
Take Profits Management
You can manage up to 2 take profit levels defined as a percentage or price value.
The expected input is in percentage value (for instance, setting the % target of TP1 to 2% will set the TP1 level 2% away from the entry price
5.3 Built-in Trade Manager
This is very likely the most loved utility script that we shared on TradingView.
It's included in your Algorithm Builder - Single Trend+, and will certainly help you immensely to analyze your charts and your trades.
We made sure that all the graphical elements on the chart will be updated in real-time whenever our user change anything on the indicator configuration.
You'll also be able to change the Trade Manager labels positions as you wish :)
5.4 Built-in Risk-to-Reward Panel
The good stuff doesn't stop here.
You'll notice that this sometimes green (when in a LONG), sometimes red (when in a SHORT) panel at the right of your chart.
It displays for the selected trading algorithmic (see 2.3.2 above), a ton of useful real-time analytics.
- Entry Price: the price when the Algorithm Builder will give a signal.
- The Trade PnL in percentage.
- Entry Stop Loss: Distance (in currency/units) between the selected stop-loss algorithm (percent, trailing, TP trailing, etc.) and the entry price.
- Entry TP1: Distance (in currency/units) between the entry price and the first take profit
- Entry TP2: Distance (in currency/units) between the entry price and the second take profit
- Risk/Reward TP1: Using the Stop-loss distance at entry, and Take Profit 1 at entry to compute the risk-to-reward ratio.
- Risk/Reward TP2: Using the Stop-loss distance at entry, and Take Profit 2 at entry to compute the risk-to-reward ratio.
For more details, please check the guides section of my website. Links are in my signature and profile status.
5.5 Built-in PnL real-time calculations
YES!!!! you read it correctly
The panel displays the risk-to-reward ratios but also the PnL (Profit and Loss in percentage value) of the current and last trade
VI. 🔔 Alerts 🔔
We enabled the alerts on the:
1. Main BUY/SELL entries
3. Exit Signals such as stop-loss, take-profit, hard-exits
VII. 🤖 Compatible with trading bots? 🤖
I'm very aware of all existing solutions out there allowing us to capture the TradingView alerts (Instabot, ProfitView, ...) and forwarding them to the brokers to automatize your trading.
You'll find a more detailed answer on our website.
If you have any doubt or question, please hit me up directly or ask in the comments section of this script.
I'll never claim I have the best trading methodology or the best indicators.
You only will judge and I'll appreciate all the questions and feedback you're sending my way.
They help me a ton to develop indicators based on all the requests I received.
Kind regards,
Dave
BE - OBV MACD█ Overview
BE - OBV MACD - Algo Trading is an indicator developed to analyze volume , MACD and PSAR simultaneously in order to understand how they are co-related to each other. This tool calculates the likelihood of strength for buying or selling within the market direction.
█ Calculations
The algorithm individually computes the likelihood of flow of volumes (OBV, MACD & PSAR). A positive score is assigned for events where the Buyers volume is rising over the candle, MACD on the price is rising and MACD on the OBV is providing positive output and the PSAR is Below the close price thus generating the Buy Signal, and a negative score for the vise versa thus generating the Sell Signal.
Note: Since this indicator is an overlay indicator MACD and OBV is not shown on the chart. One can add them on the chart if you wish to analyze the impact of the same.
█ Settings
Customization of settings is possible for risk management concepts like setting the initial SL level, Trail SL Level, Day Max Level.
Hide or Show plots and Table is possible from the indicator settings.
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, back-test, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
Grid Premium Indicator - The Quant ScienceGrid Premium Indicator - The Quant Science™ is an indicator that represent the grid trading strategy. Unlike our GRID SPOT TRADING ALGORITHM (which buys in a "buy the dip" style, offering a swing type operation) this indicator uses a trend following strategy with a larger number of grids.
A trend-following strategy in a grid algorithm allows you to open long positions if price rises and breaks up or open short positions if price breaks down.
This indicator was created following the guidelines of the best grid algorithms on 3Commas, Bitsgap, Kucoin, and Binance.
Our goal is to recreate a universal and trust model for all traders and investors who use grid algorithms for their trading.
The ideal market condition as for all grid algorithms is the side market. In the side market this algorithm will create profit during upward movements.
The trader using this algorithm can use it to:
1. Manual trading
2. Backtesting
3. Algorithmic trading
HOW TO SET UP
Using this indicator is very simple. We have configured the creation for a three-step set up. You can manage it without any problems experience in coding. All you have to do is click the grid start and end level and the indicator will automatically load generating the grids and backtesting.
OPERATIVITY
Each open trade is long and is opened when the price crossover an upward level. Each order is closed at the next level. If the price breaks upward or downward the extremes of the grid the algorithm stops trading and will not open any more positions.
FEATURES
Grids: this indicator generates 20 levels of grids.
Direction: opens exclusively long positions.
Strategy: trend-following.
Data table: a table collects all the quantitative data on the strategy's performance. By entering your broker's commission costs and initial capital you will have an instant report on the strategy's performance.
MAIN ADVANTAGE
Compound Interest: the high number of grids allows the gains from each trade to be reinvested quickly by speeding capitalization through compound interest.
LIMITATIONS OF THE MODEL
Like all grid strategies, maximum profit is made when the market is flat or sideways. A market with a bullish or bearish trend does not allow you to generate good profits with this strategy.
Unicorn QuantDeeply customizable trading algorithm with instant backtesting. It emulates real trading and displays all the actions it takes on the chart. For example, it shows when to enter or partially close a position, move Stop-Loss to breakeven, etc. The user can replicate these actions in their trading terminal in real time. The algorithm uses up to three Take-Profit levels, and a Stop-Loss level that can move in a trade to protect the floating profit.
The script can send real-time alerts to the user’s Email and to the cell phone via notifications in the TradingView app.
The indicator is designed to be used on all timeframes, including lower ones for intraday trading and scalping.
HOW TO USE
Set the Stop-Loss and up to three Take-Profit levels. Choose the rules for moving the Stop-Loss level in a trade. Adjust the sensitivity of the trading signals. And check the backtest result in the Instant Backtesting dashboard. If the performance of the strategy satisfies you, proceed with the forward testing or live trading.
When using this script, please, keep in mind that past results do not necessarily reflect future results and there are many factors that influence trading results.
FEATURES
Trading Signals
The feature calculates Buy and Sell signals for trend or swing trading. The user can change the Sensitivity parameter to control the frequency of the signals. This allows them to be adjusted for different markets and timeframes.
Position Manager
To make the Position Manager setup as easy as possible, the algorithm calculates Stop-Loss and Take-Profit levels in Average True Range (ATR) units. They are self-adjusting for any market and timeframe, since they account for its average volatility .
You don't have to worry about what market you are trading - Forex, Stocks, Crypto, etc. With the self-adjusting Stop-Loss and Take-Profit, you can find settings that work for one market and use the same numerical values as a starting point for a completely different market.
Instant Backtesting
After changing any settings, you can immediately see the performance of the strategy on the Instant Backtesting panel. Two metrics are displayed there - the percentage of profitable trades and the total return. This information, as well as the historical trades shown on the chart, will help you quickly and easily evaluate the settings.
SETTINGS
TRADING SIGNALS
Sensitivity - controls the sensitivity of the trading signals algorithm. It determines the frequency of the trading signals. The higher the value of this parameter, the less trading signals you get and the longer trends the algorithm tries to catch. The lower the sensitivity value, the more signals you receive. This can be useful if you want to profit from small price movements.
POSITION MANAGER
SL - sets the Stop-Loss level measured in ATR units.
TP1, TP2, TP3 - set the Take-Profit levels measured in the ATR units.
Close % at TP1, Close % at TP2, Close % at TP3 - set portions of the open position (as a percentage of the initial order size) to close at each of the TP levels.
At TP1 move SL to, At TP2 move SL to - set the rules for moving the Stop-Loss level in an open trade to protect the floating profit.
Show Open Position Dashboard - turns on/off a dashboard that shows the current Stop-Loss and Take-Profit levels for the open position.
BACKTESTING
Use Starting Date - turns on/off the starting date for the strategy and backtests. When off, all available historical data is used.
Starting Date - sets the starting date for the strategy and backtests.
Show Instant Backtesting Dashboard - turns on/off a dashboard that shows the current strategy performance: the percentage of profitable trades and total return.
Leverage - sets the leverage that the strategy uses.
MZ HTF HFT ROCit Bot - Non Repainting Scalper v1.2 ADX RSI MOM This is a new iteration based on my Momentum trading bot.
This is an original script meant to be a high frequency trader that works on higher time frame calculations.
I came up with the idea that using calculus I can figure out the actual rate of change and momentum with different calculations than the momentum indicator that is provided by trading view. Once momentum is shifted on a small time frame, it will provide an entry signal. The script is meant to be used on an algorithmic trading system for scalping purposes. It should be run on a one minute time frame. Unfortunately due to various plotting constraints in Pinescript, you cannot plot the rate of change and momentum and price in the same pane. To counter this, I have a showdata toggle to give you values of the indicators at each entry.
This version has two main entry settings toggled with a checkbox. There is the ROC (rate of change) version and the MOM (momentum) entry signals.
The rate of change version is meant to take a look at your moving average and try to trigger when it hits a certain rate of change point. This can be helpful if you rather play it safer. I have noticed that you can get slightly better entry points but also does not give you as many entries. The momentum algorithm will give you faster entry points and might work best with a slight offset (use your back test to help you figure it out).
I have started to add tooltips to help you along. If you have suggestions please let me know.
How does it work?
Let's just assume that you are looking at a one minute chart. I recommend using the one minute for bots because it will give you the fastest execution for entries. Pinescript has an issue where the signal is not usually sent until the end of the bar/beginning of next bar. If the signal was triggered at the beginning of a 15 minute bar, it might not actually send the signal until the following 15 minute bar. If you are trading on small time frames, this can make all the difference. If you are using an algo platform that trailing stops, stop losse, take profits, etc. I would recommend you use that platform to close your trade. The close trade message will work, but pinescript does not know the exact entry price you received, so if you are trying to collect small profits, it is best that intermediary platform does that calculation for you. If you are dealing with larger moves, instead of small 1-3% scalps, you are probably fine to use the close message setting from pinescript.
Ok, so to take an example. I like to use the 3L and 3S tokens on Kucoin. This gives you a lot of volatility to work with compared to other tokens and coins. However, it can also meas that you are likely taking a higher risk. However, there are some things that can help with that (more on that later).
So we have a token we want to run, and have it on the 1m chart.
First, be sure that all of your filters are OFF when you start playing with the back test. This allows you to see how to best optimize the bot.
Use the show data to show you additional data when you are backtesting. This can allow you to try to filter out results or market conditions that do not work. I typically work with the RSI and use the 30 minute and 15 minute RSIs. I make sure that it is trading within a certain band - about 40-75. You can try the inverse and only buy during really low RSI's as well.
www.dropbox.com
Find the source of your data with the variant drop down. You can use any time frame, open, close. high, low, olc4. Open is pretty much guaranteed to not have any repainting issues - although all the other calcs use a custom isbarconfirmed security repaint calculation. I have been finding that Open and SMA work well, but feel free to explore. If you use a source like open, close, high, low, etc - the interval will not change anything further. If you use a variant such as an sma, you should try to find an interval that works well for that token. For instance, try an sma of 8-11 minutes and see which gives you the best backtest result without changing anything else. Offset ALMA/LSMA parameters are only used for those specific variants. These specific parameters will also affect the ALMA and LSMA if you use that variant in the trend filter. In other words, you can skip these if you are not using those types of moving averages.
www.dropbox.com
Configure the ROC and MOM intervals. If you are using a source such as open, close, etc- this is where you set the interval for your change. So consider using OHLC4 or a interval of 5 thru 15 and see what works best. The Momentum inverval usually works best in the 2-5 bars. There is a custom calculation I added in to try to filter out false entries as momentum is waning. This calculation works best in 2-5 bar interval.
Configure the trigger point and offset. If you are using rate of change, the best settings will likely be between -1 to 0.5. If you are using momentum, you will likely want -20 to 10. This is where you will notice the entries will shift a bit. Try to find a balance between your backtest settings and actually finding what you thin will be the best entries based on a slight delay from trading view, to algo, to your trading platform. This can likely be a minute (maybe even) or so- so be sure to not get too caught up between the backtest results and be sure to finesse the entries to actually fit nicely - maybe a bar earlier than you would likely think. If your entries are coming in too early, you can use the offset to delay your entry by a few bars. This is both science and an art form- don't get too caught up on the back test results as that is based on having all the data tha already transpired, it's not based on how it will actually perform during deployment.
Take profit and stop loss. This should be self explanatory. This script can toggle between static take profit and a trailing profit. For scalping, you will likely want to limit it below 2% to get a good win ratio. Stop loss should be at least 5-6% for these types of 3L/3S tokens to give the strategy some room to move (if the token goes down 2% before it shoots back up, the price will go down 6%). This does not yield the best R/R ratio from a traditional trader perspective, but the statistical probabilities are in your favor for these events will happen. If you have better ideas for how to set this all up, feel free to contribute your ideas in the comments as we can all learn from each other. You can definitely set a much tighter stop loss with a larger take profit to get a lower win rate but in turn might get much better returns. It's all up to you.
FILTERS www.dropbox.com
These filters require you to know a bit about each indicator and how you want to use them. I will only go over the general idea.
Variant Filter - this is especially useful if you want to trade above a moving average. Say for instance you only want to take trades when we are over the 100 Day moving average. Or above a 30 minute, 30 bar EMA, etc. Although originally ported over from my other scripts, this is not a filter that I use often in conjunction with this script.
RSI - perhaps you want to buy when we are below the 30 line on the 30 minute RSI, or we want only want to have the strategy work when we are above the 50 RSI, this can all be configured here. I typically like to try a few different rationales here.
Now with brand NEW ADX filter - this is a brand new idea that seems to work rather well. Based on your ADX settings you can also turn on the "only uptrend" which will try to calculate if you are in an uptrend based on your ADX config. Please keep in mind that uptrend is based relatively on the ADX settings.
- There is a sprinkle of RSI magic in the entry signal to make sure that rsi is not declining in the calculation, so this can affect how many entries you get.
Some other tips:
Forward test.
Set up your algo bot on a one minute interval.
Set up take profit and stop loss on your algo trading platform.
Don't use the exact settings as your backtest, maybe try a slightly more conservative approach from the algo trading platform to make sure you are within range of triggering your events with a slight delay from signal to execution. If you have a 1.6% take profit, perhaps try 1.5% on your platform first.
By using these scripts you agree that you are trading at your own risk. I make no guarantees of returns or results. I just provide tools to help you trade better. However, I hope this ROCit will take you to the moon. And if it does, be sure to give me a shout as well as some tips of your own.
Send me a message with any questions or suggestions.
EngineeringRobo DeluxeToday we are releasing the EngineeringRobo Deluxe!
New advanced trading tools for traders and investors. The new Robo 4 is extremely powerful !
It works perfectly with other existing strategies as an add-on feature. EngineeringRobo Deluxe has seen major improvements in accuracy of levels, speed and intelligence to detect the best possible trade setups.
This script is equipped with
🔵 EngineeringRobo 4
It offers strategic trading entry and exit points, so you can preserve capital before markets tumble, and take full advantage as they start to rebound. At a glance, market timing indicators tell investors whether market conditions are right or whether it’s safer on the sideline.
Truly unique tool for technical analysis for the financial market as it includes calculation of specific metrics like SAR + MACD + Price Movement.
You no longer have to worry about spending hours in front of the computer looking for a trade.You can use the indicator on every assets available on your broker.
🔵 Change Candle Color
You can change the colors depending on buy 4 and sell 4 signals. It helps traders a lot to see the direction clearly.
🔵 BB Signals :
This strategy uses the MACD indicator together with the Bollinger Bands to sell when the price is above the upper Bollinger Band (and to buy when this value is below the lower band). This simple strategy only triggers when both the MACD and the Bollinger Band indicators are at the same time in a overbought or oversold condition.
Removed Upper & Lower bands & SMA20 from the charts.
To see bands, You can activate the Bollinger Bands on EngineeringRobo - not the Deluxe version.
If you are buying it with BB BUY, No need to wait for BB Sell to sell it. Vice versa.
They are not the opposite to each other. Get your profit at your target level and move on.
🔵 Ultimate MA crossover signals :
As a general guideline,the idea behind trading crossovers is that a short-term moving average above a long-term moving average is an indicator of upward momentum in a stock & crypto , and the opposite is true about a short-term average trading below a long-term average.
For this guideline to be of use, the moving average should have provided insights into trends and trend changes in the past.
Are the settings of SMA 50 & SMA 200 really the best for Golden Cross and Death Cross?
Have you ever tested ROI for MA cross strategies?
Do you think MA 20 and MA 50 are the best pair for traders?
Do you know that Exponential Moving Average ( EMA ) beats the Simple Moving Average ( SMA ) ?
In order to answer these questions we applied some brute mathematical force and tested 1830 different MA combination to find out the best pair through 50 years of data across stock / forex and 5 years of data across crypto markets . We have done the hard work and you get the benefits .
P.S. The oldest date is 1872 on SPCFD:SPX chart on tradingview . Almost 150 years of backtesting is possible from 1872 to 2020!
🔵 Cloud Signals :
This is a strategy made from ichimoku cloud , together with MACD . Changed Ichimoku cloud formula. Based on that we have a long or a short entry.
it is an effective strategy when paired with a trailing stop loss. Removed standard line ( Kijun Sen ), turning line ( Tenkan Sen ), lagging line ( Chikou Span ) and senkou lines, added buy & sell signals. Traders can use EngineeringRobo's cloud to see the clouds on the chart.
This method doesn't work in sideways markets, only in volatile trending markets.
🔵 EMA TrendLines & Custom Moving Average :
Moving averages help traders isolate the trend in a security or market, or the lack of one, and can also signal when a trend may be reversing. Two of the most common types are simple and exponential. We will look at the differences between these two moving averages, helping traders determine which one to use. Simple moving averages and the more complex exponential moving averages help visualize the trend by smoothing out price movements.
Each trader must decide which MA is better for his or her particular strategy. Many shorter-term traders use EMAs because they want to be alerted as soon as the price is moving the other way. Longer-term traders tend to rely on SMAs since these investors aren't rushing to act and prefer to be less actively engaged in their trades.
🟠50 And 200 Day Moving Average Rules
Trend reversal (downtrend to uptrend) - MA 50 crossover MA 200 from below.
Trend reversal (uptrend to downtrend) - MA 50 crossover MA 200 from above.
Weekly open –close above MA 20 ( bullish trend )
Weekly open –close below MA 50 ( Bearish trend )
Super Bullish : The candle is above MA 20 ( Daily )
Bullish : MA 50 Above MA 100 ( Daily )
Bearish : MA 50 below MA 100 ( Daily )
🔵 Fear & Greed Index
This strategy uses two unique EMA indicators in the formula.
1. Use the indicator to identify when investors are greedy.
2. Use the indicator to identify potential bottom levels
For best testing example:
Open BLX Chart, pick 1D time frame, open only FEAR & Greed Index
🟢Green Area : Ready to buy a lot of cryptocurrencies
🔴Red Area : Ready to sell a lot of cryptocurrencies
Price crosses above red line = Entering overbought zone
Price crosses below red line = Exiting overbought zone
Price crosses below green line = Entering oversold zone
Price crosses above green line = Exiting oversold zone
🔵 Automated Trend Channel Lines
It’s 2020 and you are still drawing lines?
The automated trend lines helps you find the best trend lines and you can stop re-drawing over and over. You don't need to flip back and forth between different timeframes. You can let your robo advisor do the work for you.
🔵 Dynamic Support and Resistance Levels
On the most fundamental level, support and resistance are simple concepts. The price finds a level that it’s unable to break through, with this level acting as a barrier of some sort. In the case of support, price finds a “floor,” while in the case of resistance, it finds a “ceiling.”
Basically, you could think of support as a zone of demand and resistance as a zone of supply.
While more traditionally, support and resistance are indicated as lines, the real-world cases are usually not as precise. Bear in mind; the markets aren’t driven by some physical law that prevents them from breaching a specific level. This is why it may be more beneficial to think of support and resistance as areas. You can think of these areas as ranges on a price chart that will likely drive increased activity from traders.
🔵 Automated Fibonacci Retracements
Automatic Fibonacci let you replace subjective manual analysis with objective automated analysis so you always get the best Fibonacci levels, this can really improve the quality of your trading decisions.
Fibonacci retracements are often used to identify the end of a correction or a counter-trend bounce. Corrections and counter-trend bounces often retrace a portion of the prior move. While short 23.6% retracements do occur, the 38.2-61.8% zone covers the most possibilities (with 50% in the middle). This zone may seem big, but it is just a reversal alert zone. One of the best ways to use the Fibonacci retracement tool is to spot potential support and resistance levels and see if they line up with Fibonacci retracement levels.
Even though Fibonacci levels are extremely popular among technical traders, one should not rely solely on Fibonacci retracement and extension levels in trading. Fibonacci tools return the best results when combined with other technical tools, such as trendlines , chart patterns, candlestick patterns, channels or technical indicators.
If you are following any EngineeringRobo Deluxe signals, you should always wait for the candle close before buying or selling.
The signal can come and go anytime during the live candle. ALL indicators do that, that is not considered repainting.
Repainting is when a signal appears, the candle is closed, and when you refresh the chart it disappeared. It is logical that until the candle is closed the signal is not decided yet, hence the alert setup as Once per bar Close.
Deluxe never repaints! Yes, you heard it right: you will never have to worry about signal changing after the candle is closed.
*** Added alarm system alerts for all signals.
________________________________________________________________________ Timeframes _____________________________________________________________________
Our recommendations to get the best results:
Swing Trading Crypto : Use 1D Time Frame Candles
Swing Trading Stocks : Use 1W Time Frame Candles
Swing Trading Commodities : Use 1W Time Frame Candles
Day Trading Crypto : Use 3H Time Frame Candles
Day Trading Stocks : Use 1D Time Frame Candles
Day Trading Commodities : Use 1D Time Frame Candles
Not recommended any other time frames.
What Is Risk-Reward Ratio RRR?
Your risk-reward ratio is how much you risk per trade, relative to how much you expect to make (reward).
When trading with Robo , you should always aim for a bigger reward compared to your risk per trade.
A good rule is only to risk 1% per trade for day traders and 5% per trade for swing trader . Robo follows strong risk management rules on the algorithm .
One of the biggest advantages of algo trading is removing human emotion from the financial markets,humans trading are susceptible to emotions that lead to irrational decisions. Robo doesn't have to think or feel good to make a trade. If conditions are met, it enters.When the trade goes the wrong way or hits a profit target, It exits. It doesn't get angry at the market or feel invincible after making a few good trades.
EngineeringRobo gives you all the tools and information you need for day-to-day trading and investing, while also keeping a great buy and sell signals! No excuse to lose in any financial market anymore! Try now!
How can you add the algorithm into your chart?
1. Login to TradingView.com
2. From the homepage, click on ‘Chart’ in the top navigation bar
3. Select “Indicators” on the top-center-middle panel
4. In the indicator library, type "EngineeringRobo Deluxe "
5. Use the website link below to obtain access to this indicator
The indicator will be added to your chart after It is approved.
Liquidity Trading Algorithm (LTA)
The Liquidity Trading Algorithm is an algorithm designed to provide trade signals based on
liquidity conditions in the market. The underlying algorithm is based on the Liquidity
Dependent Price Movement (LDPM) metric and the Liquidity Dependent Price Stability (LDPS)
algorithm.
Together, LDPM and LDPS demonstrate statistically significant forecasting capabilities for price-
action on equities, cryptocurrencies, and futures. LTA takes these liquidity measurements and
translates them into actionable insights by way of entering or exiting a position based
on the future outlooks, as measured by the current liquidity status.
The benefit of LTA is that it can incorporate these powerful liquidity measurements into
actionable insights with several features designed to help you tailor LTA's behavior and
measurements to your desired vantage point. These customizable features come by the way of determining LTA's assessment style, and additional monitoring systems for avoiding bear and bull traps, along with various other quality of life features, discussed in more detail below.
First, a few quick facts:
- LTA is compatible on a wide array of instruments, including Equities, Futures, Cryptocurrencies, and Forex.
- LTA is compatible on most intervals in so long as the data can be calculated appropriately,
(be sure to do a backtest on timescales less than 1-minue to ensure the data can be computed).
- LTA only measures liquidity at the end of the interval of the chart chosen, and does not respond to conditions during the candle interval, unless specified (such as with `Stops`).
- LTA is interval-dependent, this means it will measure and behave differently on different
intervals as the underlying algorithms are dependent on the interval chosen.
- LTA can utilize fractional share sizing for cryptocurrencies.
- LTA can be restricted to either bullish or bearish indications.
- Additional Monitoring Systems are available for additional risk mitigation.
In short, LTA is a widely applicable, unique algorithm designed to translate liquidity measurements into liquidity insights.
Before getting more into the details, here is a quick list of the main features and settings
available for customization:
- Backtesting Start Date: Manual selection of the start date for the algorithm during backtesting.
- Assessment Style: adjust how LDPM and LDPS measure and respond to changes in liquidity.
- Impose Wait: force LTA to wait before entering or exiting a position to ensure conditions have remained conducive.
- Trade Direction Allowance: Restrict LTA to only long or only short, if desired.
- Position Sizing Method: determine how LTA calculates position sizing.
- Fractional Share Sizing: allow LTA to calculate fractional share sizes for cryptocurrencies
- Max Size Limit: Impose a maximum size on LTA's positions.
- Initial Capital: Indicate how much capital LTA should stat with.
- Portfolio Allotment: Indicate to LTA how much (in percentages) of the available balance should be considered when calculating position size.
- Enact Additional Monitoring Systems: Indicate if LTA should impose additional safety criteria when monitoring liquidity.
- Configure Take Profit, Stop-Loss, Trailing Stop Loss
- Display Information tables on the current position, overall strategy performance, along
with a text output showing LTA's processes.
- Real-time text output and updates on LTA's inner workings.
Let's get into some more of the details.
LTA's Assessment Style
LTA's assessment style determines how LTA collects and responds to changing data. In traditional terms, this is akin to (but not quite exactly the same as) the sensitivity versus specificity spectrum, whereby on one end (the sensitive end), an algorithm responds to changes in data in a reactive manner (which tends to lower its specificity, or how often it is correct in its indications), and on the other end, the opposite one, the algorithm foresakes quick changes for longevity of outlook.
While this is in part true, it is not a full view of the underlying mechanisms that changing the assessment style augments. A better analogy would be that the sensitive end of the spectrum (`Aggressive`) is in a state such that the algorithm wants to changing its outlooks, and as such, with changes in data, the algorithm has to be convinced as to why that is not a good idea to change outlooks, whereas the the more specific states (`Conservative`, `Diamond`) must be convinced that their view is no longer valid and that it needs to be changed.
This means the `Aggressive` and the `Diamond` settings fundamentally differ not just in their
data collection, but also in the data processing such that the `Aggressive` decision tree has to
be convinced that the data is the same (as its defualt is that it has changed),
and the `Diamond` decision tree has to be convinced that the data is not the same, and as such, the outlook need changed.
From there, the algorithm cooks through the data and determines to what the outlook should be changed to, given the current state of liquidity.
`Balanced` lies in the middle of this balance, attempting to balance being open to new ideas while not removing the wisdom of the past, as it were.
On a scale of most `sensitive` to most `specific`, it is as follows: `Aggressive`, `Balanced`,
`Conservative`, `Diamond`.
Functionally, these different modes can help in different liquidity environments, as certain
environments are more conducive to an eager approach (such as found near `Aggressive`) or are more conducive to a more conservative approach, where sudden changes in liquidity are known to be short-lived and unremarkable (such as many previously identified bull or bear traps).
For instance, on low interval views, it can often-times be beneficial to keep the algorithm towards the `Sensitive` end, since on the lower-timeframes, the crosswinds can change quite dramatically; whereas on the longer intervals, it may be useful to maintain a more `Specific` algorithm (such as found near `Diamond` mode) setting since longer intervals typically lend themselves to longer time-horizons, which themselves typically lend themselves to "weathering the storm", as it were.
LTA's Assessment Style is also supported by the Additional Monitoring Systems which works
to add sensitivity without sacrificing specificity by enacting a separate monitoring system, as described below.
Additional Monitoring Systems
The Additional Monitoring System (AMS) attempts to add more context to any changes in liquidity conditions as measured, such that LTA as a whole will have an expanded view into any rapidly changing liquidity conditions before these changes manifest in the traditional data streams. The ideal is that this allows for early exits or early entrances to positions "a head of time".
The traditional use of this system is to indicate when liquidity is suggestive of the end of a particular run (be it a bear run or a bull run), so an early exit can be initiated (and thus,
downside averted) even before the data officially showcase such changes. In such cases (when AMS becomes activated), the algorithm will signal to exit any open positions, and will restrict the opening of any new positions.
When a position is exited because of AMS, it is denoted as an `Early Exit` and if a position is prevented from being entered, the text output will display `AM prevented entry...` to indicate that conditions are not meeting AMS' additional standards.
The algorithm will wait to make any actions while `AMS` is `active` and will only enter into a new position once `AMS` has been `deactivated` and overall liquidity conditions are appropriate.
Functionally, the benefits of AMS translate to:
- Toggeling AMS on will typically see a net reduction in overall profitability, but
- AMS will typically (almost always) reduce max drawdown,
an increases in max runup, and increase return-over-maxdrawdown, and
- AMS can provide benefit for equities that experience a lot of "traps" by navigating early
entrance and early exits.
So in short, AMS is way of adding an additional level of liquidity monitoring that attempts to
exit positions if conditions look to be deteriorating, and to enter conditions if they look to be
improving. The cost of this additional monitoring, however, is a greater number of trades indicated, and a lower overall profitability.
Impose Wait
Note: `Impose Wait` will not force Take Profit, Stop Loss, or Trailing Stop Loss to
wait.
LTA can be indicated to `wait` before entering or exiting a position if desired. This means that if conditions change, whereas without a `wait` imposed, the algorithm would immediately indicate this change via a signal to alter the strategy's position, with a `wait` imposed, the algorithm will `wait` the indicated number of bars, and then re-check conditions before proceeding.
If, while waiting, conditions change to a state that is no longer compatible with the "order-in-
waiting", then the order-in-waiting is removed, and the counts reset (i.e.: conditions must remain favorable to the intended positional change throughout the wait period).
Since LTA works at the end-of-intervals, there is an inherently "built-in" wait of 1 bar when
switching directly from long to short (i.e.: if a full switch is indicated, then it is indicated as
conditions change -> exit new position -> wait until -> check conditions ->
enter new position as indicated). Thus, to impose a wait of `1 bar` would be to effectively have a total of two candles' ends prior to the entrance of the new position).
There are two main styles of `Impose Wait` that you can utilize:
- `Wait` : this mode will cause LTA to `wait` when both entering and exiting a position (in so long as it is not an exit signaled via a Take Profit, Stop Loss or Trailing Stop Loss).
- `Exit-Wait` : This mode will >not< cause LTA to `wait` if conditions require the closing of a position, but will force LTA to wait before entering into a position.
Position:
In addition to the availability to restrict LTA to either a long-only or short-only strategy, LTA
also comprises additional flexibility when deciding on how it should navigate the markets with
regards to sizing. Notably, this flexibility benefits several aspects of LTA's existence, namely the ability to determine the `Sizing Method`, or if `Fractional Share Sizing` should be employed, and more, as discussed below.
Position Sizing Method
There are two main ways LTA can determine the size of a position. Either via the `Fixed-Share` choice, or the `Fixed-Percentage` choice.
- `Fixed-Share` will use the amount indicated in the `Max Sizing Limit` field as the position size, always.
Note: With `Fixed-Share` sizing, LTA will >not< check if the balance is sufficient
prior to signaling an entrance.
- `Fixed-Percentage` will use the percentage amount indicated in the `Portfolio Allotment` field as the percentage of available funds to use when calculating the position size. Additionally, with the `Fixed-Percentage` choice, you can set the `Max Sizing Limit` if desired, which will ensure that no position will be entered greater than the amount indicated in the field.
Fractional Share Sizing
If the underlying instrument supports it (typically only cryptocurrencies), share sizing can be
fractionalized. If this is done, the resulting positin size is rounded to `4 digits`. This means any
position with a size less than `0.00005` will be rounded to `0.0000`
Note: Ensure that the underlying instrument supports fractional share sizing prior
to initiating.
Max Sizing Limit
As discussed above, the `Max Sizing Limit` will determine:
- The position size for every position, if `Sizing Method : Fixed-Share` is utilized, or
- The maximum allowed size, regardless of available capital, if `Sizing Method : Fixed-Percentage` is utilized.
Note: There is an internal maximum of 100,000 units.
Initial Capital
Note: There are 2 `Initial Capital` settings; one in LTA's settings and one in the
`Properties` tab. Ensure these two are the same when doing backtesting.
The initial capital field will be used to determine the starting balanace of the strategy, and
is used to calculate the internal data reporting (the data tables).
Portfolio Allotment
You can specify how much of the total available balance should be used when calculating the share size. The default is 100%.
Stops
Note: Stops over-ride `AMS` and `Impose Wait`, and are not restricted to only the
end-of-candle and will occur instantaneously upon their activation. Neither `AMS` nor `Impose Wait` can over-ride a signal from a `Take-Profit`, `Stop-Loss`, or a `Trailing-Stop Loss`.
LTA enhouses three stops that can be configured, a `Take-Profit`, a `Stop-Loss` and a `Trailing-Stop Loss`. The configurations can be set in the settings in percent terms. These exit signals will always over-ride AMS or any other restrictions on position exit.
Their configuration is rather standard; set the percentages you want the signal to be sent at and so it will be done.
Some quick notes on the `Trailing-Stop Loss`:
- The activation percentage must be reached (in profits) prior to the `Traililng-Stop Loss`
from activating the downside protection. For example, if the `Activation Percentage` is 10%, then unless the position reaches (at any point) a 10% profit, then it will not signal any exits on the downside, should it occur.
- The downside price-point is continuously updated and is calculated from the maximum profit reached in the given position and the loss percentage placed in the appropriate field.
Data Tables and Data Output
LTA provides real-time data output through a variety of mechanisms:
- `Position Table`
The `Position Table` displays information about the current position, including:
> Position Duration : how long the position has been open for.
> Indicates if the side is Long or Short, depending on if it is long or short.
> Entry Price: the price the position was entered at.
> Current Price (% Dif): the current price of the underlying and the %-difference between the entry price and the current price.
> Max Profit ($/%): the maximum profit reached in $ and % terms.
> Current PnL ($/%) : the current PnL for the open position.
- `Performance Table`
The `Performance Table` displays information regarding the overall performance of the algorithm since its `Start Date`. These data include:
> Initial Equity ($): The initial equity the algorithm started with.
> Current Equity ($): The current total equity of the account (including open positions)
> Net Profits ($|%) : The overall net profit in $ and % terms.
> Long / Short Trade Counts: The respective trade counts for the positions entered.
> Total Closed Trades: The running sum of the number of trades closed.
> Profitability: The calculation of the number of profitable trades over the total number of
trades.
> Avg. Profit / Trade: The calculation of the average profit per trade in both $ and % terms.
> Avg. Loss / Trade: The calculation of the average loss per trade in both $ and % terms.
> Max Run-Up: The maximum run-up the algorithm has seen in both $ and % terms.
> Max Drawdown: The maximum draw-down the algorithm has seen in both $ and % terms.
> Return-Over-Max-Drawdown: the ratio of the maximum drawdown against the current net profits.
- `Text Output`
LTA will output, if desired, signals to the text output field every time it analysis or performs and action. These messages can include information such as:
"
08:00:00 >> AM Protocol activated ... exiting position ...
08:00:00 >> Exit Order Created for qty: 2, profit: 380 (4.34%)
...
09:30:00 >> Checking conditions ...
09:30:00 >> AM protocol prevented entry ... waiting ...
"
This way, you can keep an eye out on what is happening "under the hood", as it were.
LTA will produce a message at the end of its assessment at the end of each candle interval, as well as when a position is exited due to a `Stop` or due to `AMS` being activated.
Additionally, the `Text Output` includes a initial message, but for space-constraints, this
can be toggled off with the `Blank Text Output` option within LTA's configurations.
For additional information, please refer to the Author's Instructions below.
Broadview Algorithmic StudioWelcome! This is the writeup for the Broadview Algorithmic Studio.
There are many unique features in this script.
- Broadview Underpriced & Overpriced
- Broadview Blackout Bollinger Bands
- Trailing Take Profit Suite
- Algorithmic Weights
- VSA Score
- Pip Change Log
- Activation Panel
- Weight Scanner
There are 116 primary inputs that allow users to algorithmically output unique DCA signal-sets. There are 85 inputs that allow users to control individual lengths, levels, thresholds, and multiplicative weights of the script. You will not find any other script with this many inputs, properly strung together for you to produce unlimited strategies for any market. The entire premise for the Broadview Algorithmic Studio is for users to be able to have extensive-cutting-edge features that allow them to produce more strategies, having control over every element that outputs a signal set. The number of unique strategies you can output with this script is VAST, and each continues to follow a safe DCA methodology.
This script is ready for use with 3Commas, interactive brokers, and other means of automation. It provides detailed information on Base Orders and Safety Orders, giving the number, cumulative spending, position average, and remaining balance for each SO in the series. Using this script we will explore the depths of strategic volume scaling, and the algorithms we use to determine spending.
Let me first start by saying the number of safe DCA-friendly signal-sets this script can output is absolutely staggering.
Let's limit the scope just to the Broadview Underpriced & Overpriced and Broadview Dominance indicators.
Each band of the Dominance Suite can be controlled individually with unique lengths, levels, and weights. This means the Dominance Suite can establish Bearish or Bullish dominance, in any market condition, and give it a unique overloading weight. The Broadview Underpriced & Overpriced indicator finally gives us the ability to establish these "market conditions" first with cycles. Of all the cycles this indicator establishes, the two primary are Underpriced & Overpriced. We determine this using a composite Overbought & Oversold with an Exponential Moving Average. So the script can now know, what cycle it is in, who is dominant during that cycle, and exactly how much weight in volume scaling the order should have.
Brand new is the ability for indicators of this level to be able to talk together in a single script. The Broadview Underpriced & Overpriced indicator and the Broadview Dominance indicator can inform one another across multiple vectors, create a unique market snapshot, and give that snapshot a unique weight every bar. The unique weight is compiled in the volume scaling math, thus giving us an automated-strategic-safe and quite efficient volume scaling for every order. In our coming updates we will explore this synergy to its very deepest layers. These indicators can be laced together in many ways, called vectors.
Only in the Algorithmic Studio do we explore these depths and yield those findings, features, and inputs to the user.
Let me take a quick break to explain another area-of-opportunity for our research and development.
The VSA Score is something we've tried before, but until the creation of the Broadview Blackout Bollinger Bands Auto Indicator it was not possible. The concept we want to explore is "Positional Honing". Over time we want users and the script itself to be able to understand the difference between a script-config that produces a high number of Hits, from a configuration that produces a high number of "Misses". The Volume Scaling Accuracy Score uses the BBB Auto Indicator as a heavily reliable, non-repainting, method of determining what the very-best signals for increased volume-scaling are.
Increased volume scaling is denoted by the near-white highlighter line running vertically. This line will either fall inside the BBB Auto Indicator bands (which are hidden), or, they will fall below and outside the BBB Auto bands. If increased spending happens inside the bands it's a "Miss". If increased spending happens below and outside the bands, it's a Hit. Oftentimes misses are actually pretty good spots for extra spending, which helps lower your position average, but Hits are always better. The Hits that the BBB Auto Indicator provides are extremely good.
Let's talk about the Trailing Take Profit Suite. This suite allows us to set a trailing take profit which is a feature that lets one maximize their profits. If the trailing take profit is engaged, then when the regular take profit is hit, it will trigger, denoted in red vertical lines, and the trailing take profit will look for a specified rate of change before it actually takes profit. This usually helps traders in those times when their regular take profit was set too low, allowing them to maximize their profits with a Trailing Take Profit.
For the moment, let's think about our scores. In the dashboard you'll notice a score beginning the Pip Change Log, the VSA Score, and the Activation Panel.
These scores use a new kind of logistic correlation formula where 4 digits are given to activation, rather than 1. This is to allow room for a future concept in AI we call "Deadzones" or you can think of it as impedance. This is not a bias in logistic regression. It's an entirely different concept. A neuron, which a perceptron attempts to mimic, has a bias.. but it also has a sort of electrical resistance. This is because a neuron is individually-alive entity. So a perceptron, as it were, would need to have both a bias and a natural resistance, or deadzone.
It is a lot of fun to watch the scores and how they react during playback. They tend to smooth trends but are also quite quick to correct to accuracy. In the future we will add the deadzones and biases to the scores. This should help both users and the script produce better signal sets. The Pip Change Log is an indicator that measures Rate of Change in Pips. This is one that I am particularly excited to study, as I am a huge fan of ROC. The Activation Panel shows these scores for 4 primary indicators: On Balance Volume, Relative Strength Index, Average Directional Index, and Average True Range.
Having the Pip Change Log, VSA Score, and Activation Panel up on the dashboard with their logistic correlation scores allows traders to study markets and setups quite intimately. The weight scanner at the bottom allows users to track the cumulative applied multiplicative weights during playback. The massive number of inputs, connected vectors of indicators, input-weights, lengths, levels, and thresholds sets up all the algorithmic infrastructure for powerusers to explore every idea and strategy output they could imagine. Also with the connected vector infrastructure we can deepen our indicators in a way where, "How they talk to each other.", comes first in every development conversation.
The Algorithmic Studio is for the Power-user.
These are not basic equations coming together to determine spending. This is a massive multi-layered-perceptron with everything from Trailing-Take-Profits to strategic-automatic algorithmic downscaling. The Broadview Algorithmic Studio gives a home to the poweruser who wants access to everything in a trading and investing AI, right up until the backpropagation. The Broadview Algorithmic Studio, gives users the ability to sit in the chair of the would-be AI.
Thank you.
Orion Algo Strategy v2.0Hi everyone.
I decided to make the latest Orion Algo open to people. I don't have enough time to work on it lately, so I figured it would be best that everyone can have it to work on it. I took out some stuff from the original but it should give an idea on how things work. I made two strategies with this so far so you can use that to come up with your own. I recommend the DCA strategy because it gives you the most bang for Orion Algo's buck. It's pretty good at finding long entries.
Overall I hope you guys like this one. Also, Banano is the best crypto currency :)
-INFO-
Orion Algo is a trading algorithm designed to help traders find the highs and lows of the market before, during, and after they happen. We wanted to give an indicator to people that was simple to use. In fact we created the algorithm in such a way that it currently only needs a single input from the user. Since no indicator can predict the market perfectly, Orion should be used as just another tool (although quite a sharp one) for you to trade with. Fundamental knowledge of price action and TA should be used with Orion Algo.
Being an oscillator, Orion currently has a bias towards market volatility . So you will want to be trading markets over 30% volatility . We have plans to develop future versions that take this into account and adjust automatically for dead conditions. Also, while there are some similarities across all oscillators, what sets ours apart is the prediction curve. The prediction curve looks at the current signal values and gives it a relative score to approximate tops and bottoms 1-2 bars ahead of the signal curve. We also designed a velocity curve that attempts to predict the signal curve 2+ bars ahead. You can find the relative change in velocity in the Info panel. The bottom momentum wave is based on the signal curve and helps find overall market direction of higher time-frames while in a lower one.
Settings and How to Use them:
User Agreement – Orion Algo is a tool for you to use while trading. We aren’t responsible for losses OR the gains you make with it. By clicking the checkbox on the left you are agreeing to the terms.
Super Smooth – Smooths the main signal line based on the value inside the box. Lower values shift the pivot points to the left but also make things more noisy. Higher values move things to the right making it lag a bit more while creating a smoother signal. 8 is a good value to start with.
Theme – Changes the color scheme of Orion.
Dashboard – Turns on a dashboard with useful stats, such as Delta v, Volatility , Rsi , etc. Changing the value box will move the dashboard left and right.
Prediction – A secondary prediction model that attempts to predict a reversal before it happens (0-2bars). This can be noisy some times so make your best judgement. Curve will toggle a curve view of the prediction. Pivots will toggle bull/bear dots.
∆v – Delta v (change in velocity). This shows momentum of the signal. Crossing 0 signals a reversal. If you see the delta v changing direction, it may signify a reversal in the several bars depending on the overall momentum of the market.
Momentum Wave – Uses the signal as a macro trend indicator. Changes in direction of the wave can signify macro changes in the market. Average will toggle an averaging algorithm of the momentum waves and makes it easy to understand.
-STRATEGIES-
Simple - Just buy and sell on the dots
DCA - Uses the settings in the script for entries. If a buy dot appears then it will buy, if the price goes below the percentage it will wait for another dot before entering. This drastically improves DCA potential.
MyAlgoPLEASE READ THE ENTIRE POST BEFORE PURCHASING & USING THE MyAlgo Tool. Saves you and me some time in emails and messages. :)
This is the official version of MyAlgo
PLEASE UNDERSTAND THAT THIS IS A DIFFERENT AND SEPARATE PRODUCT AND SCRIPT FROM "MyAlgo SLIM" FROM THE MyAlgo TRADING TOOL SERIES
Description
Buy & Sell Alerts can be set on all Tickers. This includes, but is not limited to Crypto, Commodities , FOREX, Equities and Indices. Also all candle Types are compatible.
Recommended Time-frames - Due to the complexity of MyAlgo-SLIM the user has a choice between three algorithms and is like that able to trade on all timeframes with the highest returns.
MyAlgo combines many different aspects at the same time, scans multiple other Algorithms and comes to a conclusion based on over 1350 lines of code.
It is based on Divergences, Elliott Waves , Ichimoku , MACD , MACD Histogram, RSI , Stoch , CCI , Momentum, OBV, DIOSC, VWMACD, CMF and multiple EMAs.
Every single aspect is weighted into the decision before giving out an indication.
Most buy/sell Algorithms FAIL because they try to apply the same strategy to every single chart, which
are as individual as humans. To conquer this problem, MyAlgo has a wide range of settings and variables which can be easily
modified.
To make it a true strategy, MyAlgo has as well settings for Take Profit Points and Stop
Losses. Everything with an Alert Feature of course so that FULL AUTOMATION IS POSSIBLE.
I know from experience that many people take one Algorithm and are simply too LAZY to add multiple Algorithms to make a rational choice. The result of that is that they lose money, by following blatantly only one Algorithm.
MyAlgo has additional 15 Indicators, perfect for all markets, which can be turned on and off individually.
Side Notes
MyAlgo is being updated and upgraded very frequently to suit the requests of our customers.
This is not financial advice. Please read our disclaimer before using.
Anything below this sentence will be Updates regarding MyAlgo
MyAlgo-SLIMPLEASE READ THE ENTIRE POST BEFORE PURCHASING & USING THE MyAlgo-SLIM Tool. Saves you and me some time in emails and messages. :)
This is the official version of MyAlgo-SLIM
Description
Buy & Sell Alerts can be set on all Tickers. This includes, but is not limited to Crypto, Commodities , FOREX, Equities and Indices. Also all candle Types are compatible.
Recommended Time-frames - Due to the complexity of MyAlgo-SLIM the user has a choice between three algorithms and is like that able to trade on all timeframes with the highest returns.
MyAlgocombines many different aspects at the same time, scans multiple other Algorithms and comes to a conclusion based on over 1350 lines of code.
It is based on Divergences, Elliott Waves , Ichimoku , MACD , MACD Histogram, RSI , Stoch , CCI , Momentum, OBV, DIOSC, VWMACD, CMF and multiple EMAs.
Every single aspect is weighted into the decision before giving out an indication.
Most buy/sell Algorithms FAIL because they try to apply the same strategy to every single chart, which
are as individual as humans. To conquer this problem, MyAlgo has a wide range of settings and variables which can be easily
modified.
To make it a true strategy, MyAlgo has as well settings for Take Profit Points and Stop
Losses. Everything with an Alert Feature of course so that FULL AUTOMATION IS POSSIBLE.
I know from experience that many people take one Algorithm and are simply too LAZY to add multiple Algorithms to make a rational choice. The result of that is that they lose money, by following blatantly only one Algorithm.
MyAlgo has additional 15 Indicators, perfect for all markets, which can be turned on and off individually.
Side Notes
MyAlgo is being updated and upgraded very frequently to suit the requests of our customers.
This is not financial advice. Please read our disclaimer before using.
Anything below this sentence will be Updates regarding MyAlgo-SLIM
Altcoins DCA ScalperIntroduction
The Altcoins DCA Scalper is a Pine Strategy Script designed to automate Altcoins trading through 3Commas integration. It implements a Dollar-Cost Averaging (DCA) strategy that expands upon 3Commas' standard DCA capabilities, helping to manage risk while trading both long and short positions automatically.
This tool aims to assist both beginners exploring automated trading and experienced 3Commas users seeking dynamic DCA automation. The script is specifically designed for the 1-minute timeframe , where it has shown a good balance between performance and risk management. Complete setup typically takes less than 10 minutes, with a detailed guide making configuration straightforward for users of all experience levels.
------------------------------
🔶 What is DCA?
------------------------------
Dollar-cost averaging (DCA) refers to the practice of gradually increasing your position size at lower prices when trading long, or at higher prices when trading short, to achieve a better average entry price if the market moves against the initial entry . Instead of investing all capital at once, which could result in a significant drawdown if the price moves unfavorably, DCA spreads entries across different price levels to help manage potential drawdowns as they occur.
In this script, DCA is implemented through a system that:
🔹 Triggers safety orders only when/if needed (if take profit isn't reached quickly)
🔹 Dynamically adjusts order sizing based on market volatility
🔹 Automatically reduces take profit targets after each DCA order to increase the likelihood of a positive outcome
🔹 Can handle drawdowns depending on market volatility and settings
The images below illustrate two scenarios: one where an entry reaches the take profit directly, without activating DCA orders, and another where DCA is utilized, with the order closing positively after two DCA orders.
Case 1: Order closes in profit after entry
Case 2: Order closes in profit after 2 DCA orders (dynamically placed based on trend and volatility)
This DCA implementation aims to enhance standard 3Commas DCA by adding market-adaptive features while maintaining risk management principles.
------------------------------
🔶 Could this strategy script benefit you?
------------------------------
This script may be helpful if you are:
✅ Looking to automate your trading through 3Commas integration while maintaining full control of your assets
✅ Wanting to enhance 3Commas' standard DCA with market-adaptive features that consider:
Multi-timeframe trend analysis
Real-time volatility assessment
Dynamic safety order sizing and timing
✅ Seeking to minimize chart monitoring through full automation of:
Entry and exit decisions
Safety order management
Risk controls
✅ Interested in comprehensive performance tracking with:
Real-time position metrics
Detailed backtesting capabilities
Risk/reward analysis
Backtesting Metrics (script performance over the backtesting period - which is approx. 15 days on the 1min timeframe with the TradingView Pro Plan):
Current/Open Deal Metrics (the deal is currently under DCA, and waiting for further actions to close):
✅ Looking for trading automation that remains easy to set up and use
Note: While this script provides trading automation, successful trading requires proper education, risk management, and regular performance monitoring. No automated tool can guarantee trading success or profits.
------------------------------
🔶 How it Works
------------------------------
The Altcoins DCA Scalper provides trading automation through:
Market Analysis
* Multi-timeframe trend analysis (1m to 1d) for market direction and entry validation
* Volatility assessment (1h, 4h, 24h) benchmarked against TOTAL3 (excluding Top10 Altcoins and Stablecoins)
* Real-time adjustment of DCA parameters based on:
* Current volatility class (low/medium/high) vs. overall Altcoins market
* Market trend strength
* Price action dynamics
Trading Execution
* Position opening aligned with detected market trends
* "Beast Mode" base order sizing that increases position size during strong trends
* Dynamic take-profit targets that automatically reduce after each safety order to increase the likelihood of positive exits
* Dynamic DCA with safety orders that can:
* Adapt timing based on volatility
* Scale order sizes based on market conditions
* Handle 30-50% drawdowns depending on volatility class
* Execute up to 6 safety orders per position
Risk Management
* Emergency exits during extreme market events:
* "Black Swan" protection for long positions
* "God-Candle" protection for short positions
* Configurable stop-loss with volatility-based placement
* Trend-switch management with automated position reversal
* Position aging controls to prevent capital lock-up
* Leveraged trading protection with a pre-liquidation exit system
Integration & Automation
* Quick setup with two 3Commas bots (typically under 10 minutes)
* Fully automated signal generation and execution through 3Commas
* Detailed performance tracking including:
* Real-time position metrics
* DCA depth analysis
* Win rate and ROE calculations
* Pre-configured settings optimized for most pairs
* Multiple customization options for experienced users
Note: While this strategy employs automation and risk management, trading always carries the risk of loss. No system can guarantee profits, and market conditions significantly impact performance. Always do your own research and monitor your positions closely.
------------------------------
How to Use
------------------------------
Setting up the Altcoins DCA Scalper is quick and facilitated by the User Interface:
1️⃣ 3Commas/TradingView Setup
* Create two 3Commas accounts if using the FREE plan:
* One account for Long Bot
* One account for Short Bot
* This split allows full functionality while staying within 3Commas' free tier limits
* You do not need two separate accounts if you have a Paid 3Commas subscription
* While a free TradingView account works with the script, it limits you to one trading pair and a 4-day backtesting history. A paid TradingView subscription removes these limitations (such as the "Essential" plan).
2️⃣ Bot Configuration
* Create one Long and one Short DCA Bot in 3Commas
* Follow the setup guide available in the script itself for hassle-free configuration
* Copy Bot IDs and Email Token for script connection
* No complex settings needed - the script manages all DCA parameters by itself
3️⃣ Script Implementation
* Apply the script to your TradingView charts
* Use the built-in backtesting to analyze performance on different pairs
* Focus on USDT.P futures pairs with good volatility
4️⃣ Trading Activation
* Create TradingView alerts for each trading pair you want to activate
* Example: Set an alert for BINANCE: XRPUSDT.P following the in-script guide
* The script automatically manages all aspects:
* Entry and exit decisions
* DCA execution
* Risk management
* Position monitoring
Capital Requirements
* Important: Ensure sufficient capital to cover all activated pairs
* Consider volatility class when allocating capital to specific pairs
Once setup is complete, the script operates fully automatically while you maintain complete control of your funds through 3Commas and your exchange.
Note: While the setup is straightforward, always start with a small number of pairs and monitor performance before expanding. Trade responsibly and never risk more than you can afford to lose.
------------------------------
Explaining the Settings
------------------------------
The Altcoins DCA Scalper offers mulitple customization options during the setup process. All settings include detailed tooltips and default values.
Core Settings Sections:
1️⃣ 3Commas Connection
* Bot IDs and Email Token configuration
* Leverage settings (1x to 5x supported)
* Detailed 3Commas bot setup guide included
* Automatic bot control configuration
2️⃣ Trading Parameters
* Capital allocation per trade
* Timeframe verification
* Alert system setup
* Backtesting period control
* Performance tracking preferences
3️⃣ Advanced Features
🔹 Risk Management Suite
* Emergency exit controls (to strengthen protection against extraordinary market events)
* Customizable stop-loss system
* Trend-based exit management
* Position aging controls
* Liquidation protection features
* Advanced DCA controls
🔹 Performance Analytics
* Real-time position monitoring
* Comprehensive backtesting metrics
* DCA depth analysis
* Win rate calculations
* Capital efficiency tracking
🔹 Technical Optimizations
* Exchange minimum order adjustment
* Trading pair name override capability
* System stability controls
* Error handling mechanisms
🔹 Interface Customization
* Theme selection
* Chart overlay options
* Warning display preferences
* Performance metrics visibility
All settings come pre-configured but can be fully customized based on your trading preferences and risk tolerance. The script includes tooltips and setup guides for each option.
Note: While default settings may be tested, market conditions vary and all trading involves risk. Monitor performance and adjust settings according to your risk management requirements.
------------------------------
Frequently Asked Questions
------------------------------
Here are some common questions you may have, and our answers:
❓ Is this tool only for experts? I'm new to algo trading, can I use it?
No, the Altcoins DCA Scalper could be used by both beginners and experienced traders. The setup process is guided, and the algorithm handles all the calculations in the background.
❓ I'm not familiar with 3Commas. Is that a problem?
While the script is designed to work with 3Commas, a step-by-step guide is provided within the script to help you set up your 3Commas accounts and bots, if needed.
❓ Do I need to constantly monitor the script after it's set up?
No, after the initial setup and configuration, the script operates autonomously. It handles all aspects of trading including entries, exits, DCA management, and risk controls. However, we recommend:
* Checking performance metrics daily
* Reviewing position statistics weekly
* Adjusting pair selection monthly based on performance
* Monitoring overall market conditions that might require adjustments
❓ Can I use it with leverage?
Yes, the script is designed to work with leverage up to 5x on perpetual futures pairs (USDT.P). It includes specific features for leveraged trading:
* Dynamic safety order placement based on distance to liquidation
* Pre-liquidation exit system to minimize exchange fees
* Adjustable take-profit targets optimized for leveraged positions
* Emergency exit system for extreme market movements
* Optional risk controls specific to leverage:
* Automatic exit in the liquidation danger zone
* Position size scaling based on leverage level
* Safety order adjustments for different leverage settings
While leverage can amplify returns, it also increases risk. We recommend starting with lower leverage (2x), or no leverage at all, until familiar with the script's operation.
❓ Does this script guarantee profits?
No, no script or trading strategy can guarantee profits. The Altcoins DCA Scalper provides a framework for implementing an automated DCA strategy, but your success will depend on many different factors and conditions.
❓ Do I need to understand the complex algorithms used in the script?
No, it’s not necessary. The logic is handled by the script, and you do not need to understand every detail to use it effectively. However, a basic knowledge of DCA concepts will be beneficial.
❓ Can I use this script with spot or leveraged trades?
The script is optimized for USDT.P pairs (perpetual futures) with leverage up to 5x. This allows:
* Automatic long/short position management
* Increased capital utilization
* Full DCA functionality without holding the underlying assets
* Enhanced risk management features specific to futures
While spot trading is possible, it requires holding underlying assets for shorts and doesn't access the script's full capabilities.
❓What timeframe should I use?
This script is optimized for the 1-minute timeframe , which is the recommended setting for the best balance between performance, capital efficiency, and risk. While we recommend using the tool on the 1 minute TF, it would work on other timeframes too.
❓ What happens if my internet/computer goes down?
Since the script sends signals from Tradingview to 3Commas (which executes trades on your exchange), your positions and DCA management continue to function even if your TradingView chart is closed or your computer is off. The script only needs to be active to generate new signals.
❓ How are the DCA parameters determined?
The script dynamically adjusts DCA parameters based on:
* The pair's volatility class (compared to the overall altcoin market)
* Current market conditions and volatility
* Position direction (long/short)
* Leverage settings
* Number of safety orders already executed
This allows for adaptive/dynamic DCA compared to static or %-based parameters.
❓ What exchanges are supported?
The script works with any exchange supported by 3Commas for futures trading (approximately 15 different crypto Exchanges). However, it's optimized for Binance Futures (USDT.P pairs) due to its high liquidity and for consistency.
❓ What happens during extreme market conditions?
The script includes some (optional) protective measures that can be activated:
* Emergency exits during sharp and abnormal market moves
* Automatic adjustment of DCA parameters during high volatility
* Position closure on significant trend changes
* Special handling of aged positions
These features aim to protect capital during unusual market conditions.
❓How many pairs can I trade simultaneously?
This depends on your total capital. As a general indication, define the number of pairs to activate based on:
* Total available capital
* Desired position size per pair
* Risk tolerance
* Pairs' volatility class
------------------------------
Final Thoughts
------------------------------
We believe that your trading performance will greatly depend on your selection of appropriate trading pairs for this script (high volatility), and your commitment to regularly monitoring its performance and adjust the settings, rather than on the script alone.
------------------------------
⚠️ Risk Disclaimer
------------------------------
Remember that trading involves risk, and most day traders experience losses. This script is for educational and informational purposes only. Past performance does not guarantee future results. This is not financial advice, and you should always do your own research (DYOR). Trade responsibly with capital you can afford to lose.
The Altcoins DCA Scalper is an independent tool and is not endorsed, connected, or validated by TradingView.
3Commas is a third-party service, and TradingView is not responsible for the 3Commas integration or the performance of 3Commas bots. You are solely responsible for the security and management of your 3Commas account. Do not share your 3Commas access credentials (like login information, Bots-ID, Email Token) with anyone. The Author of the script has no access to such information, and nobody (but you) should.
NexTrade
Overview of NexTrade: The Future of Crypto Trading
Introduction
NexTrade is a cutting-edge algorithmic trading platform designed to optimize cryptocurrency trading strategies. Developed by myself, a software engineer with a passion for quantitative development. Over the past year, I have focused on learning and applying quantitative techniques to the crypto space, ultimately crafting a platform that leverages advanced market analysis, automation, and robust risk management to help investors maximize returns while minimizing risk. NexTrade is engineered to help you capitalize on market movements in a fast-paced and highly competitive space, that is Cryptocurrency.
Key Features and Advantages
Sophisticated Market Analysis: NexTrade uses a comprehensive market analysis framework that examines historical trends, price movements, and market conditions across multiple cryptocurrency exchanges. The algorithm identifies trading opportunities by chart analysis on higher timeframes in order to follow trends, allowing it to execute trades at optimal moments.
Multi-Exchange Integration: NexTrade connects to multiple leading cryptocurrency exchanges, such as Binance, Kraken, and Coinbase Pro, to ensure access to diverse liquidity pools. This multi-exchange connectivity allows the platform to execute trades at the most favorable prices, optimizing profitability and minimizing slippage across various platforms. However, we suggest using the exchange with lowest fees possible.
Risk Management: NexTrade’s risk management features such as Stop Losses, ATR Trailing SL, and ADX chop indicator allows us to ensure we are effectively managing our risk.
Backtesting and Optimization: Before going live, NexTrade’s trading strategies undergo rigorous backtesting using historical market data. This enables users to see how strategies would have performed under various conditions, providing transparency and confidence in the platform’s potential for generating consistent returns. Ongoing optimization ensures that strategies evolve in response to market changes.
Real-Time Performance Monitoring: Users have access to detailed, real-time performance reports, tracking key metrics such as trades executed, profits, losses, and overall portfolio performance. This transparency allows investors to make informed decisions and monitor their investments closely at any time.
Market Opportunity
The cryptocurrency market continues to experience rapid growth, with trillions of dollars in trading volume annually. However, it is also notoriously volatile, creating both risk and reward opportunities for traders. To successfully navigate this market, investors need sophisticated tools that can automate the trading process and optimize decisions based on accurate market analysis.
NexTrade was developed to address this need. With its combination of data-driven market analysis, automated execution, and risk management, NexTrade is positioned to help investors gain an edge in a market that is often unpredictable and challenging. The platform offers a reliable, scalable solution to crypto trading, designed for both beginners and seasoned professionals.
Why Invest in NexTrade?
Scalable and Flexible: Whether you’re trading small amounts or large volumes, NexTrade can scale to accommodate your needs. The platform supports multiple exchanges, giving users the flexibility to diversify and grow their investments. Users can start with as low as $100!
Risk-Adjusted Returns: By focusing on risk management, NexTrade aims to deliver returns that are balanced with the level of risk the investor is willing to accept. The algorithm continuously adjusts trading strategies to align with market conditions, maximizing the potential for profits while minimizing the likelihood of significant losses.
24/7 Trading: The cryptocurrency market operates around the clock, and NexTrade is designed to take advantage of this. Its automated nature means that it can execute trades at any time, without the need for human intervention.
Conclusion
NexTrade offers a sophisticated yet accessible solution for investors looking to capitalize on the growth of the cryptocurrency market. With its focus on data-driven analysis, automated trade execution, and advanced risk management, NexTrade empowers investors to achieve optimal returns while managing risk effectively. Whether you are new to crypto or an experienced trader, NexTrade provides the tools needed to stay competitive and succeed in a fast-moving market.
By investing in NexTrade, you are gaining access to a proven algorithmic trading platform that has the potential to enhance your crypto trading strategy and deliver consistent results. The future of cryptocurrency trading is automated, risk-managed, and optimized—and NexTrade is leading the way.
If users wish the enable the chop detector on the bot, which uses ADX, they can turn it on in the settings after the strategu is added to the chart. By default, it is set to false.
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.
Cloud X MesoHello there fellow Traders!
Thanks for stopping by, so today I will be covering everything you need to to know about this TradingView strategy.
Below I will discuss everything you need to know about this strategy so you can get a full grasp of what the strategy is, the features, what it does, how it works, the benefits of how this strategy can help you, and the results.
What is Cloud X Meso?
-Cloud X Meso is a strategy that consists of 7 indicators to all line up for total confluence to take a buy or sell once all 6 indicators conditions are met. This strategy does not repaint and doesn't require any technical analysis to be used. The strategy can be used on any timeframe, and any instrument.
-I have optimized many different variations for different types of trading instruments of this strategy ready to be used. The difference of this strategy is that these variations do not need any reoptimization to keep up with recent market conditions since there are hardly any inputs used, which prevents common overfitting problems. The main goal was for this strategy to be automated, as well as plug and play or you can officially consider this as set and forever forget.
What does this strategy do?
-The main goal for this strategy is to catch long or short term trends by waiting for all 7 indicators to line up as well as using customized trading times to trade certain sessions where there is high amounts of volume in the market. This strategy doesn't always need to have a clear trending market, since it can also catch short term trends in choppy markets as well. Overall, the strategy tell you when it buys, sells, and exits after all conditions are met.
How does the strategy work?
-The way that this strategy works is when all of the indicators confluences are met. Next, a buy or sell label will print and the candles colors will color blue or red to show that the trade is in the buy or sell position followed along with a magenta colored line which is the trailing stop to follow the trade until the trade exits from the trailing stop being hit or if the strategies exit condition is met.
-The strategy does have a set Take Profit target since it relies on the trailing stop to end the trade. This is beneficial so you can catch any size of a trend move when the strategy is in high volume market sessions. You catch these trends by customizing the settings to toggle on or off certain indicators, functions, configuring a customized trading time, and toggling on or off certain trading days to make a specific approach for fine tuning a pair to trade in a certain time window with high amounts of volume to catch trending moves whether it be a long or short term trend.
Below I will explain each functionality of the strategy for you to better understand the different ways you can adjust the settings of this strategy.
Backtest Settings:
-You can use these settings to determine a start / end date of what results you would like to see in the strategy tester.
-You can determine the $ amount you would like to see on strategy testers results to be in terms of net profit and max drawdown.
-You can choose whether you want the strategy to take buys only, sells only, or buys and sells.
Automation:
-Compatible with Pine Connectors to fully automate this strategy for MT4/5
-It uses a % based risk when placing trades so you won't have to calculate a proper lot size or dollar amount.
-You can also put the symbol of what that strategy will be trading on so you know what pair its trading.
Custom Trading Times:
-When you customize a trading time for the strategy to trade in, the background will turn blue for that specific time window, and you can use the "Session Exit" function to have trades close once the time window ends when toggled on, or you can have the existing trades close on their own when "Session Exit" is toggled off.
Dynamic Trailing:
-The algorithm uses a volatility based indicator to determine proper stop loss placement depending on how volatile the market is. This will prevent you from guesstimating if your stop loss is too big or too small.
-When Dynamic trailing is off, then the strategy will use a Risk Reward based stop loss to trail everytime the trades hits a new Risk Reward target.
-You can also toggle on or off for the stop loss to go to break even once the trade hits a 1:1 Risk Reward.
Directional Bias Settings:
-This indicator is the main directional bias that uses a multi timeframe function to determine the directional bias, you can also use the Exponential Moving Average as a form of directional bias instead, or you can use both of them to work together to find the directional bias. You can also toggle each one on or off
Entry / Exit Settings:
-This indicator also uses a multi timeframe function but it determines the entry and exit for a trade when all confluences are met. You can also toggle the entry and exit functions on or off.
1 Candle Rule:
-This feature is inspired by No Nonsense Forex (NNFX) the main function of this is if your entry doesn't meet all the entry conditions, then the strategy will wait 1 more candle to meet all the entry conditions to take a trade.
No Trade Zone:
-This feature will uses a Volume based indicator to filter out low volume markets. The candles will turn grey to indicate the algorithm not to take trades, and you can also customize the sensitivity of how strong this indicator will filter out the low volume in the markets.
Indicator functions
Each indicator plays a certain role and also meets certain conditions when a buy or sell trade is placed. I will reveal 3 out of 7 of the indicators used to preserve the uniqueness of this strategy but overall, the logic of this strategies main goal is to ride long or short terms trends while getting dynamic Risk Reward trades.
-The first indicator that the strategy uses an Exponential Moving Average that is customizable, and is used as a form of a filter for either a long or short term directional bias to filter out false signals to help the algorithm trade with the trend.
-The second indicator that the strategy uses is an Oscillator which is the Wavetrend and this indicators functionality for the algorithm is used for the its buy and sell signals to line up with all the other indicators for confluence. This indicator can also be toggled on or off for you own preference
-The third indicator used is the Volume indicator, and this is used to give the other indicators the green light to enter a trade if there are high amounts of volume in the market.
What are the benefits of using this algorithm?
Stress Free Trading:
-Once automated, you will no longer need to stare at the charts all day, as well as trying to execute the trades on time or worried that you missed a setup. Or you can choose to take trades manually when a buy or sell signal comes up
Stress Free Risk Management:
-All you have to do is provide a risk % and the algorithm will do the rest of the work calculating the stop loss, exiting trades, etc. No more needing to find the right lot size, or dollar amount, all in all the strategy will manage the trades for you.
Psychology:
-when you choose to have a systematic trading approach, it eliminates a lot bad habits from human nature
What are the results like?
-I have multiple different variations of results of this strategy, but I will share one of the results.
Here is a screenshot below of what this strategy can do from just one of the variations.
The backtest below was done with another variation on simulating a 100k account risking 0.50% per trade.
Thank you for taking the time to read through this whole guide, and I hope this helped you better understand the strategy.
iMoku (Ichimoku Complete Tool) - The Quant Science iMoku™ is a professional all-in-one solution for the famous Ichimoku Kinko Hyo indicator.
The algorithm includes:
1. Backtesting spot
2. Visual tool
3. Auto-trading functions
With iMoku you can test four different strategies.
Strategy 1: Cross Tenkan Sen - Kijun Sen
A long position is opened with 100% of the invested capital ($1000) when "Tenkan Sen" crossover "Kijun Sen".
Closing the long position on the opposite condition.
There are 3 different strength signals for this strategy: weak, normal, strong.
Weak : the signal is weak when the condition is true and the price is above the 'Kumo'
Normal : the signal is normal when the condition is true and the price is within the 'Kumo'
Strong : the signal is strong when the condition is true and the price is below the 'Kumo'
Strategy 2: Cross Price - Kijun Sen
A long position is opened with 100% of the invested capital ($1000) when the price crossover the 'Kijun Sen'.
Closing the long position on the opposite condition.
There are 3 different strength signals for this strategy: weak, normal, strong.
Weak : the signal is weak when the condition is true and the price is above the 'Kumo'
Normal : the signal is normal when the condition is true and the price is inside the 'Kumo'
Strong : the signal is strong when the condition is true and the price is below the 'Kumo'
Strategy 3: Kumo Breakout
A long position is opened with 100% of the invested capital ($1000) when the price breakup the 'Kumo'.
Closing the long position with a percentage stop loss and take profit on the invested capital.
Strategy 4: Kumo Twist
A long position is opened with 100% of the invested capital ($1000) when the 'Kumo' goes from negative to positive (called "Twist").
Closing the long position on the opposite condition.
There are 2 different strength signals for this strategy: weak, and strong.
Weak : the signal is weak when the condition is true and the price is above the 'Kumo'
Strong : the signal is strong when the condition is true and the price is below the 'Kumo'
This script is compliant with algorithmic trading.
You can use this script with trading terminals such as 3Commas or CryptoHopper. Connecting this script is very easy.
1. Enter the user interface
2. Select and activate a strategy
3. Copy your bot's links into the dedicated fields
4. Create and activate alert
Disclaimer: algorithmic trading involves risk, the user should consider aspects such as slippage, liquidity and costs when evaluating an asset. The Quant Science is not responsible for any kind of damage resulting from use of this script. By using this script you take all the responsibilities and risks.
Mean Reverse Grid Algorithm - The Quant ScienceMean Reverse Grid Algorithm - The Quant Science™ is a dynamic grid algorithm that follows the trend and run a mean reverting strategy on average percentage yield variation.
DESCRIPTION
Trades on different price levels of the grid, following the trend. The grid consists of 10 levels, 5 higher and 5 lower. The grids together create a channel, this channel represents the total percentage change where the algorithm works. The channel also represents the average change yields of the asset, identified during analysis with the "Yield Trend Indicator".
The algorithm can be set long or short.
1. Long algorithm: opens long positions with 20% of the capital every time the price crossunder a lower grid, for a maximum total of 5 simultaneous trades. Trades are closed each time the price crossover a higher grid.
2. Short algorithm: opens short positions with 20% of the capital every time the price crossover a higher grid, for a maximum total of 5 simultaneous trades. Trades are closed each time the price crossunder a lower grid.
USER INTERFACE SETTING
The user configures the percentage value of each grid from the user interface.
AUTO TRADING COMPLIANT
With the user interface, the trader can easily set up this algorithm for automatic trading. Automating it is very simple, activate the alert functions and enter the links generated by your broker.
BACKTESTING INCLUDED
With the user interface, the trader can adjust the backtesting period of the strategy before putting it live. You can analyze large periods such as years or months or focus on short-term periods.
NO LIMIT TIMEFRAME
This algorithm can be used on all timeframes and is ideal for lower timeframes.
GENERAL FEATURES
Multi-strategy: the algorithm can apply either the long strategy or the short strategy.
Built-in alerts: the algorithm contains alerts that can be customized from the user interface.
Integrated grid: the grid indicator is included.
Backtesting included: automatic backtesting of the strategy is generated based on the values set.
Auto-trading compliant: functions for auto trading are included.
ABOUT BACKTESTING
Backtesting refers to the period 1 August 2022 - today, ticker: ETH/USDT, timeframe 1H.
Initial capital: $1000.00
Commission per trade: 0.03%
MZ Momentum Non Repainting HTF HFT Scalper BotThis is an original script meant to be a high frequency trader that works on higher time frame calculations. I came up with the idea that using calculus I can figure out the actual rate of change and momentum with different calculations than the momentum indicator that is provided by trading view. Once momentum is shifted on a small time frame, it will provide an entry signal. The script is meant to be used on an algorithmic trading system for scalping purposes. It should be run on a one minute time frame.
Set it up on a one minute chart - setup your bot on a one minute interval.
Find the source of your data. You can use any time frame, open, close. high, low, olc4. Open is pretty much guaranteed to not have any repainting issues - although all the other calcs use a custom isbarconfirmed security repaint calculation.
Set your rate of change period - typically I use a one minute time frame for this as well - but set my length fairly long (30-40).
Then set your period for momentum calculation. This will sample the rate of change data to figure out your momentum. I typically try a setting of 6-8. If that doesn't work, try setting it about the same as the rate of change period and add or subtract a few from there.
Unfortunately due to various plotting constraints in Pinescript, you cannot plot the rate of change and momentum and price in the same.
Set your trigger point. I try values -30, -20, -10, 0, 1. Then finesse to get an earlier entry signal. You should account for a slight delay from the signal to the actual entry. Your backtest should test well, but please note that does not gaurantee results. In my findings, I have seen that there is a slight minimal delay between signal to entry and that can make the difference whether your trade is profitable or not.
Use the show data to show you additional data when you are backtesting. This can allow you to try to filter out results or market conditions that do not work. I typically work with the RSI and use the 30 minute and 15 minute RSIs. I make sure that it is trading within a certain band - about 40-75. You can try the inverse and only buy during really low RSI's as well.
Use the enter and close messages to setup your webhook messages. But I recommend to allow the algo trading platform to close the trade for you based on their calcs since that platform knows the actual price level and when it has become profitable.
Filters have been setup for
Moving Average Variants - any time frame, any length.
RSI - Any time frame, any length,
Future Plans: ATR Filter so you can filter out low volatility periods.
Send me a message with any suggestions.
Customizable Non-Repainting HTF MACD MFI Scalper Bot StrategyThis script was originally shared by Wunderbit as a free open source script for the community to work with.
WHAT THIS SCRIPT DOES:
It is intended for use on an algorithmic bot trading platform but can be used for scalping and manual trading.
This strategy is based on the trend-following momentum indicator . It includes the Money Flow index as an additional point for entry.
HOW IT DOES IT:
It uses a combination of MACD and MFI indicators to create entry signals. Parameters for each indicator have been surfaced for user configurability.
Take profits are fixed, but stop loss uses ATR configuration to minimize losses and close profitably.
HOW IS MY VERSION ORIGINAL:
I started trying to deploy this script myself in my algorithmic trading but ran into some issues which I have tried to address in this version.
Delayed Signals : The script has been refactored to use a time frame drop down. The higher time frame can be run on a faster chart (recommended on one minute chart for fastest signal confirmation and relay to algotrading platform.)
Repainting Issues : All indicators have been recoded to use the security function that checks to see if the current calculation is in realtime, if it is, then it uses the previous bar for calculation. If you are still experiencing repainting issues based on intended (or non intended use), please provide a report with screenshot and explanation so I can try to address.
Filtering : I have added to additional filters an ABOVE EMA Filter and a BELOW RSI Filter (both can be turned on and off)
Customizable Long and Close Messages : This allows someone to use the script for algorithmic trading without having to alter code. It also means you can use one indicator for all of your different alterts required for your bots.
HOW TO USE IT:
It is intended to be used in the 5-30 minute time frames, but you might be able to get a good configuration for higher time frames. I welcome feedback from other users on what they have found.
Find a pair with high volatility (example KUCOIN:ETH3LUSDT ) - I have found it works particularly well with 3L and 3S tokens for crypto. although it the limitation is that confrigurations I have found to work typically have low R/R ratio, but very high win rate and profit factor.
Ideally set one minute chart for bots, but you can use other charts for manual trading. The signal will be delayed by one bar but I have found configurations that still test well.
Select a time frame in configuration for your indicator calculations.
Select the strategy config for time frame. I like to use 5 and 15 minutes for scalping scenarios, but I am interested in hearing back from other community memebers.
Optimize your indicator without filters (trendFilter and RSI Filter)
Use the TrendFilter and RSI Filter to further refine your signals for entry. You will get less entries but you can increase your win ratio.
I will add screenshots and possibly a video provided that it passes community standards.
Limitations: this works rather well for short term, and does some good forward testing but back testing large data sets is a problem when switching from very small time frame to large time frame. For instance, finding a configuration that works on a one minute chart but then changing to a 1 hour chart means you lose some of your intra bar calclulations. There are some new features in pine script which might be able to address, this, but I have not had a chance to work on that issue.
Maddrix_club III (strategy)Maddrix club III (STRATEGY) is an advanced trading algorithm that goes long and short in spite of the market condition. It aims to capture large moves. It is the fruit of over a thousand hours of work, trials, errors, research, etc.
The STUDY version is also posted.
There are 5 main variables to adjust the indicator:
Framework length – Use this to establish the environment. Shorter length = volatile environment. Longer length = steadier.
Framework multiplier – Use this to adjust the environment to the asset. Lower value for less volatile price action and higher value for very volatile price action.
Search timeframe – Use this to lookback for a fractal . In theory, the longer the lookback the more reliable the fractal recognition.
Trigger line – Use this to adjust the trigger level. In theory, the lower the trigger the more signals you get.
Threshold – Use this to filter the signals. The higher the threshold, the less signal you get.
The best way to go about changing the settings, is to start off the default value. I’d do a monthly check-in playing with few of them and readjusting based on results from the exchange.
They are different, as this one can show you the equity curve.
It works on many markets as long as there is sufficient activity to create patterns and repetition.
You will notice a slight difference between the strategy calculation and the algo calculation (built in the algo) - this is because the exits are not exactly at the same levels. I left this on purpose, so that you can see that even with a little slippage, overall this is positive.
Very good results have been observed on the 15 min time frame though it technically works on all timeframe (5 min for example, 1 hour also). On the example above ETHUSDT – 15 min, the back test shows consistency in the results for the last 2 years. The theory behind it is based on probabilities, human emotions, and repetition in market patterns.
Results have also shown great adaptability, meaning the total profits don’t change considerably when we play with settings. This is very good because even if you try to fine tune a set of settings to the past, the probability that it keeps working in the future is rather high.
Very important note: the calculations DO NOT take into account any fee or slippage that you always experience on the exchanges.
The indicators only uses real time data, therefore it can’t repaint.
There are absolutely no guarantees about this algorithm and past results are not indicative of future performance.
Fees, slippage and API delay: for any algorithm you will use (from me or others), please keep in mind that fees add up, slippage and delay creates differences between algo theory and reality. We can put in place systems to circumvent that, but we will always have them.
Unicorn Quant Strategy [Astride Unicorn]Deeply customizable trading algorithm with instant back-testing. Its position management and trading signals engines emulate every step of the trading process and display all the actions on the chart. For example, the algorithm shows when to enter or partially close a position, move stop-loss to breakeven, etc. The trader can use these signals in their decision-making and replicate these actions in their trading terminal. The script can also send real-time alerts to the user’s Email.
The trading signals feature calculates entry signals for momentum and trend trading. The calculation is based on trend filtering using our custom filter based on rolling historical volatility. The historical volatility is used to distinguish the market regime and determine the current trend direction. In its calculations, the algorithm uses linear regressions instead of averaging. As our practice shows, it helps to reduce signal lag while keeping the number of false signals low.
HOW TO USE
Set stop-loss and up to three take-profit levels, choose rules for moving the stop-loss level, adjust sensitivity of the entry signals and see the back-test result immediately. If the performance of the strategy satisfies you, proceed with the forward-testing or live-trading.
When using this script, please, keep in mind that past results do not necessarily reflect future results and that many factors influence trading results.
SETTINGS
Use Starting Date - when the flag is turned off, the algorithm uses all available pricing data to calculate back-tests; when turned on, back-tests start from a starting date the user can select in the setting below.
Starting Date - sets a starting date for back-testing.
Trading Signals
Trade Length - defines the length of the trades the algorithm tries to calculate entry signals for. Recommended values are from 1.0 to 6.0.
Sensitivity - controls the sensitivity of the trading signals algorithm. The sensitivity determines the density of trading signals and how close the trailing-stop levels follow the price. The higher the value of this parameter is, the less sensitive the algorithm is. High values of the Sensitivity parameters (100-500) can help to withstand large price swings to stay in longer price moves. Lower values (10-100) work well for short- and medium-term trades.
Signals Type - In the Signals Type dropdown list, there are two options: Market Timing and Market Bias. Market timing is a type of trading signaling when the algorithm tries to find a perfect moment to enter and exit a trade. Market Bias is the type of trading signaling when the algorithm tries to be in a position all the time. When a trade is closed, the algorithm determines a direction to which the market is currently “biased” and immediately opens a trade in this direction.
Position Management
SL - sets stop-loss level measured as a percentage of the trade entry price
TP1, TP2, TP3 - sets take-profit levels measured as a percentage of the trade entry price
Close % at TP1, Close % at TP2, Close % at TP3 - Sets portions of the open position(as a percentage of the initial order size) to close at each of the TP levels
At TP1 move SL to, At TP2 move SL to - Sets the rules for moving stop-loss level in an open trade to protect the floating profit
Dashboards
Active Position Information - turns on/off a dashboard that shows the current SL and TP levels for the active position.
Recommended SL,TP Settings - turns on/off a dashboard that shows recommended settings for the SL and TP levels.