Trailing % StopTrailing % Stop is a simple Stop Loss indicator which users have to define a % percent rate to trail the price like MOVING STOP LOSS "MOST" Indicator.
The main difference is MOST refers to exponential moving averages although Trail % Stop refers to source price.
Default price of source is CLOSE price which can be optimized by the user.
"What is a Trailing Stop-Loss?
A trailing stop-loss order is a special type of trade order where the stop-loss price is not set at a single, absolute dollar amount, but instead is set at a certain percentage or a certain dollar amount below the market price. A trailing stop-loss is sometime referred to simply as a trailing stop.
How a Trailing Stop-Loss Works
When the price goes up, it drags the trailing stop-loss along with it, but when the price stops going up, the stop-loss price remains at the level it was dragged to.
A trailing stop-loss is a way to automatically protect yourself from an investment's downside while locking in the upside.
For example, you buy Company XYZ for $10. You decide that you don't want to lose more than 5% on your investment, but you want to be able to take advantage of any price increases. You also don't want to have to constantly monitor your trades to lock in gains.
You set a trailing stop on XYZ that orders your broker to automatically sell if the price dips more than 5% below the market price.
The benefits of the trailing stop are two-fold. First, if the stock moves against you, the trailing stop will trigger when XYZ hits $9.50, protecting you from futher downside.
But if the stock goes up to $20, the trigger price for the trailing stop comes up along with it. At a price of $20, the trailing stop will only trigger a sale if the stock drops below $19. This helps you lock in most of the gains from the stock's rally.
In the example, you could also decide you don't want to lose more than $2 on your $10 investment. If the stock goes up to $20, the trailing stop-loss would drag along behind the price and only trigger a sale if the stock falls to $18.
Why a Trailing Stop-Loss Matters
A trailing stop-loss can be good for investors who may not have enough discipline to lock-in gains or cut losses. It removes some of the emotion from the trading process and offers some capital protection automatically.
There are some drawbacks to consider. First, you need to consider your trailing stop percentage or amount very carefully. If you're investing in a particularly volatile stock, you could find the stop level triggered fairly frequently."
Long Short signals and alarms are also included.
Cerca negli script per "stop loss"
Algorithm Builder - Multiple TrendsHello 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. You may also contact me directly for more information
II. Algorithm Builder - Multiple Trends
2.1 Forewords
This indicator is available only to our PREMIUM users. Our PREMIUM indicators offer more trading analysis capabilities and opportunities.
A few words of caution: the Algorithm Builders - Multiple Trends are more advanced and as such, would require slightly more time to be mastered.
They're not that much difficult, but we understand that designing a trading system with 2 trends might be slightly more complicated - however, there is nothing to be scared of :).
The time spent to learn how to use our PREMIUM tools might be rewarded handsomely.
2.2 Concept
The Algorithm Builder - Multiple Trends is made to detect the convergence of many unrelated indicators and give a BUY or SELL signal whenever all the selected sub-indicators are converging in the same direction.
This is an upgrade of the PRO package giving access to the Algorithm Builder - Single Trend - designed to show 1 unique entry per trend - whereas the Multiple Trends offers re-entries in the same direction of the trend if the indicator detects good convergences to accumulate more positions.
III. Multiple Trends versus Single Trend
3.1 Multiple Trends benefits
A friend asked us recently Why using the Multiple Trends if we can use the Single Trend in a smaller timeframe, and get more entries that way?
We thought this was an excellent question, but the answer is obvious.
Using a Single Trend on a smaller timeframe to solely getting more entries will reduce the security of the given trades.
We designed the Algorithm Builders to take a trade in an identified trend but reducing the timeframe too much will mostly increase your risk - and might lead to capital loss.
By the way, this is a universal rule valid also for a big majority of indicators.
We're absolutely not saying that the Single Trend won't work on small timeframes because actually it really does. But, if you find out a great configuration for your Single Trend, and want to get more signals without increasing your risk - then the Multiple Trends would be a very viable option.
3.2 Main signal versus secondary signals
For the main and secondary trends, the color green symbolizes any identified "BUY" trend. And the color red symbolizes any identified "SELL" trend.
-The MAIN trend symbol is unique and symbolized by a triangle.
- The SECONDARY (could also be called re-entries) trends are multiple and symbolized by a diamond.
In the Algorithm Builder indicator settings, they're identified with the Additional keyword.
3.3 How the convergences are calculated
Extremely important: The diamonds (or re-entries) are displayed, as long as a triangle (or main/primary signal) is displayed.
For a trend change (buy to sell or sell to buy), the system waits for ALL selected re-entries sub-indicators , to give a convergence/confluence in the opposite direction.
For example, let's assume a BUY/green convergence based on 3 indicators. One or Two of them going turning red, won't be enough for a trend change.
But, if all of them turn red, then we'll see a red triangle - signaling the beginning of a new downtrend.
3.4 Why multiple entries?
Here are a few use cases :
1. The main use case why we made those Multiple Trends indicators: A trader got invalidated or stopped out on a trade, but wants a system to let hin/her jump back in with a minimum of security. (security depending on the configuration of the Algorithm Builder as a whole).
This is very frustrating to get in a trade, being stopped out, and finally, see the trade going in the expected direction.
Even more frustrating to jump back in at the end of a trend, and get stopped out again - we all agree on this.
2. You want to add more positions on your main trade as your Algo Builder identified a solid trend - this is a nice way to possibly maximize your gains.
Once again, we don't/won't guarantee any performance result (not because we don't believe in our tools, but for legal reason), all depends on the time spent reading our documentation and playing with the Algo Builder - as explained on our Tutorials.
More info available on our website. URL available in this script signature and on my profile status.
IV. Why the Algorithm Builder Multiple Trends may help you
I worked with many traders during my career, and their feedback about trading is often pretty similar.
They all tried a lot of complicated indicators, losing their capital, and finally getting back to the basics (even to the basic indicators if I might say)
The art is finding a good combination of indicators and setting strict money/risk management rules.
Easy in concept, but more than 90+% of traders lose money on the markets... which teach us that trading is not only about drawing trendlines, or using cool indicators but finding ways to ease our psychology while trading.
4.1 The Algorithm Builder trading framework
The sub-indicators (full list on our website) weren't chosen randomly. They're based on a trading method we've developed over the last 6 years - while working with traders and other trading quants.
The Algo Builders are made to detect a convergence - and as such, will give a signal once a trend has been identified.
They're not made to detect reversal but have been designed to give a signal when all sub-indicators are either ALL bullish (green) or ALL bearish (red).
We provide a framework based on indicators we selected because they:
1. make sense to be used altogether
2. work on asset classes like INDEX, CRYPTO, STOCK OPTIONS, FOREX, COMMODITIES
3. it may expand your knowledge about what detecting a convergence with pre-selected indicator really means
4.2 Supports and Resistances
The indicator displays the main algorithmic supports and resistances according to our trading method.
I think they're relevant for all asset classes, but you're absolutely free to use any different supports/resistances logic if you want to.
I'm not against it because I know that pivots, Fibonacci levels, etc. may work very well also.
4.6 Hard Exits
Our trading method is known for the hard exits, also called invalidation.
The Single Trend+ includes a hard exit based on a MACD - settings are flexible and you may update them.
Having a stop-loss protecting your trade is a best practice - Protecting your stop-loss also from getting hit is incredible.
We prefer invalidate a few positions, even if sometimes we don't want to. Rather than the market hard exiting on us, and leaving with our hard-working money.
4.7 Alerts
Alerts are enabled for:
- BUY/SELL MAIN triangles signals
- BUY/SELL SECONDARY diamond signals
- Hard Exits
V. Pain points that we're trying to solve with our Algorithm Builders
Issue #1 There are many informations / indicators / strategies / backtests / noise. Finding the right ones is not a simple task.
Solution #1 A reliable system that removes the external noise is much needed in trading to stay "in the game".
Issue #2 Trading could be quite stressful - The majority doesn't lose in trading because technical analysis is hard, but because managing our psychology is one of the hardest things a human can do.
Solution #2 Some ways to reduce the "trading stress" could be: getting better quality signals and trading like a "machine". Forgetting about Twitter and trusting the system you designed.
Issue #3 Trading without strict rules and only based on what we feel, or what we think the market should do is the fastest way to kiss our money goodbye.
Only 1 indicator generally is not enough. Traders generally use a combination of several indicators but they're monitoring them individually.
It's normal then to feel exhausted at the end of the day ^^ (to say the least)... and exhaustion leads to mistakes which leads to..... (I'm sure you got it) ... capital loss.
Solution #3 As a trader, I needed a trading framework and a method. I offer our trading method but they're plenty others out there. We cannot claim obviously it's the best ever ....but let's say we're using those exact same
scripts ourselves for our trading. And this what we've been recommending our clients to trade with for the past years. Also, having a tool detecting the convergence of several indicators and giving 1 unique signal
for BUY/SELL position will save you a lot of time/energy, and perhaps might help you out getting better trading performance.
VI. Resolving a complex puzzle and having fun in the process
Trading has to stay a passion and not (only be) a source of intense stress.
The most successful traders I know are "trading geeks" - literally always looking for optimizing, searching for the best possible entries, setups, indicators, tools, etc.
For them, it's not even about the money anymore, but only about beating their previous performance.
Why are they doing this? Because it's fun
Might appears as a bold statement, but I guarantee that looking for setups is fun.
One of our users even told us, that it's like playing with "Legos" and we couldn't possibly agree more.
VII. Designing a system that "makes sense"
Another bold statement now. Brace yourselves ladies and gentlemen
The Algorithm Builders allow to design trading systems quickly. What could takes days/weeks/months to find out... might be now within your reach in less than a few hours.
With a bit of practice, less than an hour might be enough per asset/timeframe to find a system that makes sense to you and adapted to your trading capital and psychology.
Assuming our users read our guides and are fully committed to learning a new way of trading - then we do guarantee you'll be able to design kick-ass trading systems that make sense.
"Making sense" doesn't mean at all it's guaranteed to win, it means you're the one defining the convergence of indicators, using your Algorithm Builder, and observe that most of the time - whenever there is a BUY signal, the candlesticks are going upwards - whenever there is a SELL signal, it's going downwards.
This is a necessary step to make real progress from a trading analyst perspective - and hopefully could lead to profits.
VII. Algorithm Builder versus the main trader enemy(=psychology)
This indicator has the goal to help solving one of the MAIN issues encountered by traders.
Most of traders realize, they can't perform with only 1 indicator (or 1 price pattern or 1 price action) and need a combination of multiple indicators before getting in a trade.
Far from being a magic pill, if it could at least reduce the stress you have while trading, then we'll consider we made a great job - it's a technical "useless noise remover", and needs to be followed strictly.
Such trust in a trading system can only be built by testing your Algorithm Builder configuration on either:
1. a demo account
2. or a live account with small bids. And then, increasing progressively the bids if your capital increases progressively.
Though, you should still use your common sense. (for instance: if we get a BUY signal right on a big timeframe resistance we're hitting for the first time).
I'm aware this is a new way of trading but for many, and while we cannot foresee the future, neither predict performance, we believe it might save you a lot of time to find good signals.
My maximum level of happiness will be reached the day when our users will contact me and showing me setups being mine.
I'm sure that even I can learn from my users and, we can all learn from each other Algorithm Builder configuration
VIII. What is a wrong or bad configuration?
Simply put. If you see that most of your signals react such as described below:
1. a buy triangle predicts, most of the time an upwards move
2. a sell triangle predicts, most of the time a downwards move
3. you estimated yourself the stop-loss needed to give enough room for your trades.
4. take profits based on algorithmic support and resistances or your own take profit method.
So what's a good Algorithm Builder configuration? A configuration you're happy with and makes sense.
A better Algorithm Builder setup is one used in demo or a live account w/ small bids for a few weeks, and you're consistent in your trading performance.
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 be the 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
™TradeChartist Entry/Exit Indicator™TradeChartist Entry/Exit Indicator is an easy to use indicator that plots very high probability BUY and SELL signals on the chart along with an optional dynamic trigger line for SELL and BUY which can be used as a reference for Stop Loss/ Trailing Stop Loss.
What does the ™TradeChartist Entry/Exit Indicator do?
Plots very high probability BUY and SELL signals on chart
Plots dynamic BUY or SELL trigger lines that can be used to
---------1. Set Stop Loss reference or Trailing Stop Loss.
---------2. Anticipate change in trend/momentum when price breaches the trigger line.
Plots BUY and SELL price lines which are Candle open prices when BUY/SELL signals are posted.
Alert traders when BUY/SELL signal is generated and Trigger for BUY/SELL is breached.
Plots Background vertical Signal break lines at BUYs in green and at SELLs in red.
Plots % Gains based on candle close in real-time and based on candle high for BUY/candle low for SELL on previous candles calculated from the candle open price at BUY/SELL.
Plots RSI colour candles based on user preferred Overbought and Oversold RSI levels from indicator settings.
Paints background colour for BUY and SELL zones which can be changed from indicator settings under Style tab to personalise the chart screen.
What markets can this indicator be used on?
Forex
Stocks
Commodities
Cryptocurrencies
and almost any asset on Trading View
Works really well when there is good volume, volatility or both in the asset observed/traded.
Does this indicator repaint?
No and Yes
Once the confirmed BUY (in green) and SELL (in red) signals are posted after a candle close, it doesn't repaint.
Repainting happens for real time BUY and SELL trigger plots on the current candle as price tries to breach the trigger line.
For confirmed BUY and SELL alerts, use alerts on candle close. Real-time BUY and SELL trigger alerts can also be set.
Does the indicator send alerts when a signal is generated?
Yes, traders can get alerts by setting Trading View alerts for BUY/SELL Signals and BUY/SELL Triggers. For confirmed BUY/SELL alerts, 'Once per bar close' must be used.
Why are there two Signal Generator types in the indicator settings?
The two types of signal generators cater to almost all types of traders and trade types. Some assets perform well with Type 1 and some assets with Type 2. Also some traders prefer Type 1 and some prefer Type 2 based on variation in frequency of signals on the asset observed. Both types can be used along with 'Use Heikin Ashi Candles' from the indicator settings to have more combinations to test on an asset for maximising gains.
Type 1 on GBPUSD 1hr chart
Type 2 on GBPUSD 1hr chart
Type 1 normally works well with most types of assets.
Should the indicator be used on normal candles or Heikin Ashi candles?
The indicator can be used on either of the candle types. If signals from Heikin Ashi chart needs to be plotted on normal chart, just check 'Use Heikin Ashi Candles' from indicator settings. It may not be exact, but very close as it mimics Heikin Ashi chart trend.
Heikin Ashi charts are recommended to spot trends and reversals but they don't reflect real OHLC values in the candles, so BUY/SELL entry price points may not be ideal using Heikin Ashi charts especially when there are gaps in price action (example Stocks, FOREX, Commodities). For real OHLC prices and to know exact price points for entering/exiting trade, use normal candlestick charts. It is purely for this reason Heikin Ashi chart signals can be mimicked on normal candles using 'Use Heikin Ashi Candles' option from settings without having to switch between the two.
It can be seen from the GOLD 1hr charts above (Heikin Ashi on left and normal candlestick chart on right), the indicator mimics signals sensibly (not copy) and doesn't use same entry values as Heikin Ashi chart to aid the trader with practical trade execution.
How do the Trigger Lines work and should they be used?
Trigger for BUY/SELL lines are coded to adapt to bull and bear power in the asset trading environment and helps the trader to anticipate change in trend based on direction of price momentum when enabled from indicator settings (On by default). Traders can use trigger lines as reference for Stop Loss points. For example, when a BUY signal is posted, the 'Trigger for SELL' can be used as initial Stop Loss reference and as price starts going up, the trigger line starts moving up enabling the trader to use it as a trailing stop loss point which helps secure or lock profits as they act as ideal support/resistance lines based on the type of trade too. BUY/SELL Trigger lines can be enabled or disabled from indicator settings 'Inputs' tab.
Also, the trigger lines can alert traders to anticipate change in trend/momentum when price hits them and it helps them take a position, either Long or Short when confirmed BUY/SELL signal is posted. As price tries to breach the trigger lines, they change from 'Trigger to BUY/SELL' to 'BUY/SELL Triggered' as shown below on 1hr Gold chart. This feature is coded purely to signal the trader a potential change in trend/momentum. The trigger lines also act as strong support/resistance so only a confirmed close above them will ensure a High Probability Trade.
It should also be noted that price tends to test the BUY/SELL trigger lines to see if a breach is possible. A rejection at trigger lines could mean trend continuation in the signal direction. Traders could use other trend indicators like Ichimoku cloud, stoch, TRIX etc. to make an informed trade decision here. In the chart below, the 'BUY triggered' label has changed back to 'Trigger for BUY' as price failed to close above it.
What is the use of 'Plot BUY/SELL Price Line'?
Enabling BUY/SELL price line from settings (On by default) plots the price line corresponding to candle open when BUY/SELL signals were posted on the chart by the indicator. Open price is used as it is close to the trigger lines and is a fair reference point for indicator to calculate the gains plot on chart since BUY/SELL signals.
Can trade gains be plotted on chart and how are they calculated?
To show percentage gains on chart, just enable 'Show % Gains on Chart' from indicator settings (Off by default). As explained above, % gains are calculated from BUY/SELL candle Open price to high (for Long trades) or low (for Short trades) and to current candle close (for both Long and Short trades) as it helps see real-time gains from BUY/SELL candle Open price. The % gains are plotted as below.
0 - 0.75% - ↑ in green
0.75-1.5% - 1% in green
1.51-2.5% - 2% in green
2.51-3.5% - 3% in green
3.51-4.5% - 4% in green
4.51-5.5% - 5% in green
5.51-10.5% - 5+% in green
10.51-20% - 10+% in green
20+% - 20+% in green
Down from Entry - ↓ in red
What are RSI Colour Candles?
RSI Colour Candles are visual candle plots in colour (Blue when RSI>60, Yellow when RSI<30 and On by default) that help trades spot RSI levels at a glance visually from the chart in real-time without the need for another indicator on screen. Traders can also choose the source to be used for plotting RSI colour candles from indicator settings input tab and change candle colours from indicator settings style tab. The length for RSI calculation is 14 and works well for almost any trading scenario and cannot be changed from indicator settings. The default overbought RSI is set at 60 as it helps spot momentum increase and big moves happen above 60 RSI. When deciding to sell or buy, RSI can be tuned from settings to spot decent entry or exit. For example, RSI>80 on a red Heikin Ashi candle (blue body and red border) after an uptrend could signal potential sell-off or RSI<30 on a green Heikin Ashi candle (yellow body and green border) after a down trend could signal a good move up. In the example daily chart of RVN-BTC below, RSI>75 on a red Heikin Ashi candle signalled a potential sell off way before the actual SELL signal plot on chart.
What is the use of Signal Break Line Plot and Paint Background options from indicator settings?
Signal break lines can be useful if traders prefer to switch off BUY/SELL signals from indicator settings to show where previous signals were generated. (On by default)
Paint Background is just a nice to have feature that paints the signal zones to personalise the chart screen. (Off by default). The background paint colours can be changed from indicator settings style tab.
4hr SPX chart below showcases the difference when the Signal Break Lines and Background Paint options are used with BUY/SELL signals switched off.
Important Note:
When using this indicator on a chart, check 'Scale Price Chart Only' and 'Auto (Fits Data to Screen)' by clicking on settings wheel on the bottom right under the chart screen as shown below. If not checked, the chart screen will look like one on the left as shown below.
-----------------------------------------------------------------------------------------
This is not a free to use indicator. Get in touch with me if you would like access to the indicator for a 1 day trial before deciding on a paid access for a period of your choice. Monthly, Quarterly, Half-Yearly and 1 Year access available.
-----------------------------------------------------------------------------------------
MACKAVELLI Algorithmic ALERTThis is the ALERT script to compliment the strategy script.
When you set the alerts, make sure you use "On Bar Close" as the option, otherwise you will get repeated alerts. You can use this ALERT script with Autoview for automated algorithmic trading.
I had a hard time finding a strategy that would work in different time-frames and multiple different currency pairs. This is what I ended up with after countless hours of research and testing. I designed this strategy for auto-algorithmic trading and it uses three different indicators for Long/Short positions and a 4th indicator for exiting positions.
1) A green-light indicator that tells you whether or not you can go long/short.
2) A confirmation indicator that executes the long/short positions.
3) A chop indicator that measures the distance between the two MA's. When they're too close a trade will not be executed, as this usually indicates a chop zone.
4) A third MA is used as an exit indicator.
5) Finally, a loop function is designed to prevent repeat signals. Once a signal is produced on bar close it cannot happen again until that trade is closed or a new position is opened.
Be advised, you need to adjust the settings for each currency pair and time-frame. Once you do that, back-test it and count the last 100 trades to determine accurately your wins/losses. Long entries are the top of the previous bar, shorts are the bottom of the previous bar. This is a more accurate way of counting wins/losses. Tradingview back-test's are not accurate because of where they estimate your long/short entries are, it's very misleading.
Right now I have it setup for 2hr USDCAD with a back-test of 58% win rate on the last 100 trades.
The chop indicator is set to 0.04, I suggest starting there. 0.03 is the lowest I would go. You can go all the way up to 0.1 and higher if needed. You'll start missing big trades though.
The EMA for green-light signal is set to 10, a lower number will give you more entries but less accurate results, bigger number will give less entries with more accuracy but with missed opportunities. 10 is a good starting point.
This strategy is also designed so you can use tight stop losses to prevent large losses. This is because the strategy typically catches trends on the way up/down, minimizing risk for reversal.
I use Heikin Ashi candles for a smoother chart to work with. I have not tested this strategy with normal candles.
DEMO this strategy before using it live and make sure you back-test and tune it before you start. This is written in PINE V3 SO IT WILL NOT REPAINT.
MACKAVELLI Algorithmic StrategyI had a hard time finding a strategy that would work in different time-frames and multiple different currency pairs. This is what I ended up with after countless hours of research and testing. I designed this strategy for auto-algorithmic trading and it uses three different indicators for Long/Short positions and a 4th indicator for exiting positions.
1) A green-light indicator that tells you whether or not you can go long/short.
2) A confirmation indicator that executes the long/short positions.
3) A chop indicator that measures the distance between the two MA's. When they're too close a trade will not be executed, as this usually indicates a chop zone.
4) A third MA is used as an exit indicator.
5) Finally, a loop function is designed to prevent repeat signals. Once a signal is produced on bar close it cannot happen again until that trade is closed or a new position is opened.
Be advised, you need to adjust the settings for each currency pair and time-frame. Once you do that, back-test it and count the last 100 trades to determine accurately your wins/losses. Long entries are the top of the previous bar, shorts are the bottom of the previous bar. This is a more accurate way of counting wins/losses. Tradingview back-test's are not accurate because of where they estimate your long/short entries are, it's very misleading.
Right now I have it setup for 2hr USDCAD with a back-test of 58% win rate on the last 100 trades.
The chop indicator is set to 0.04, I suggest starting there. 0.03 is the lowest I would go. You can go all the way up to 0.1 and higher if needed. You'll start missing big trades though.
The EMA for green-light signal is set to 10, a lower number will give you more entries but less accurate results, bigger number will give less entries with more accuracy but with missed opportunities. 10 is a good starting point.
This strategy is also designed so you can use tight stop losses to prevent large losses. This is because the strategy typically catches trends on the way up/down, minimizing risk for reversal.
I use Heikin Ashi candles for a smoother chart to work with. I have not tested this strategy with normal candles.
DEMO this strategy before using it live and make sure you back-test and tune it before you start. This is written in PINE V3 SO IT WILL NOT REPAINT.
Momentum Trader Strategy 3.0Momentum Trader 3.0 is a momentum trading strategy which uses volume to confirm market momentum driven moves.
By default it only trades between 0900 and 1530 (designed for futures trading and can be toggled to 24/7)
No repaint issues, what you see is real
Toggles allow you to enable Long or Short independently which may work better or worse for your market
Designed primarily for Day Trading (1-15m interval)
Presently only the Short side is optimized, the Long works but overtrades a bit. I will be adding an option to remove the less useful signals and improve performance.
Momentum Trader is a real and successful momentum strategy (which I use myself). It isn't a miracle 'always win' strategy but it is a steady workhorse. By combining high probability momentum trades and auto stop-losses, it takes a good slice of most rallies, a big slice of the grand drops, and avoids heavy sudden losses.
Momentum Trader can be used in any timeframe. Your success depends on the volatility of the individual market. I recommend trading at 10m and below for high volatility instruments like ES/SPX while low volatility instruments can be traded at the 1h and beyond. At the level of 1D+ it also works as well but naturally as a momentum strategy it may take a while to pivot.
Momentum Trader provides you with 3 long and 2 short entries which represent different levels of risk/reward. Like any real strategy, there can be periods of chop where the strategy will lose (small based on stop-loss) if the market is chopping very quickly back and forth or pivoting suddenly. As a rule, Momentum Trader attempts to avoid most of that by typically flagging trends which are established and confirmed. Different signals give you different degrees of confirmation and thus different risk/reward.
Trend-following Microprofit w/ Smart DCA + Profit Plot + AlertsThis alert script is oriented towards automated trading with Gunbot.
I call it "Options Galore" because of all the user-configurable settings it offers for up-trending and down-trending markets. (See: " Market Tone " study).
A strategy script for quantitative backtesting, smarter buy/sell indicator such as TSI or Stoch RSI, and stop loss/trailing stop are all in the pipeline. Please share any other suggestions in the comments!
Features:
Set backtesting range, or start forward testing from the current time. Historical Renko charts can lead to repainting, which is avoided by keeping the chart open in your browser and running with real time data.
Average protection: only buy if price drops by a certain % below your average price -- can be automatically toggled by market trender if we want to continue buying during an uptrend. This reduces net profit but increases gross profit.
Gain protection: only sell if price is a certain % above your average price -- can be automatically toggled by market trender. Wait for larger profits in an uptrend, but sell earlier in a down trend.
Minimum percent gain can also be set to a negative value to allow selling at a loss. This is not true stop loss behavior, we still need a sell signal from the indicator. This means we will try to get the best price above your price floor, but in some rare situations we may not sell before the price drops below your price floor.
Position plotter: plots average long position price relative to current price.
Plot loss level: plots average price - loss %. With pyramiding turned off, this can be used to find out where to set your stop loss.
This script is free to use, just comment or PM for access. It is mainly meant to showcase some new features, and is only safe to use in carefully selected markets such as USDT-BTC.
Stay posted for upcoming scripts with smarter signaling and additional features! If you would like to add these features to your own preferred strategy, please PM me.
Position Size CalculatorPosition Size Calculator - User Guide
A simple tool to calculate optimal position size based on your risk preferences, visualize trade levels, and automatically determine trade direction.
Introduction
The Position Size Calculator is a TradingView indicator designed to help traders calculate the optimal position size for their trades based on account size and risk tolerance. This tool visually represents entry, stop loss, and take profit levels while automatically calculating the appropriate position size to maintain consistent risk management.
Getting Started
Setting Up Your Account Parameters
Setting Price Levels
Understanding the Visual Elements
Adjusting Your Trade on the Chart
Reading the Information Panel
1. Getting Started
After adding the indicator to your chart, you'll see three horizontal lines representing:
Yellow line: Entry price
Green line: Take profit price
Red line: Stop loss price
The indicator automatically detects whether you're planning a Long or Short trade based on the position of your take profit relative to your entry.
2. Setting Up Your Account Parameters
In the "Position Calculator" settings group:
Account Size : Enter your total account balance
Account Currency : Set your account currency (USD, EUR, etc.)
Risk (%) : Enter the percentage of your account you're willing to risk per trade (e.g., 2%)
Instrument Type : Select your trading instrument (Forex, Futures, Stocks, or Crypto)
Value per 0.01 lot per tick : Enter the value of 0.01 lots per tick (for most Forex pairs, this is $1 per pip for 0.01 lot)
Minimum Lot Size : Set the minimum lot size allowed by your broker (usually 0.01 for Forex)
3. Setting Price Levels
In the "Price Levels" section:
Entry Price : The price at which you plan to enter the trade
Stop Loss Price : Where you'll exit if the trade goes against you
Take Profit Price : Your target price where you'll take profits
If you set Entry Price to 0, it will default to the current price. If Stop Loss or Take Profit are set to 0, they'll default to 5% below or above entry price respectively.
4. Understanding the Visual Elements
Yellow line : Your entry price
Green line : Your take profit level
Red line : Your stop loss level
Green zone : The profit zone (between entry and take profit)
Red zone : The loss zone (between entry and stop loss)
Information panel : Shows all calculations and trade details
5. Adjusting Your Trade on the Chart
The beauty of this tool is its interactivity:
You can drag any of the lines directly on the chart to adjust entry, stop loss, or take profit
If you drag the take profit above the entry , the indicator automatically sets up for a Long trade
If you drag the take profit below the entry , it automatically configures for a Short trade
All calculations and visuals update in real-time as you adjust the lines
This means you can quickly test different scenarios and see how they affect your position size and potential profit/loss.
6. Reading the Information Panel
The information panel displays:
Account details : Your account size and currency
Risk information : Your percentage risk and the equivalent monetary amount
Position Size : The optimal lot size calculated based on your risk parameters
Price levels : Entry, Stop Loss, and Take Profit with distances in ticks
Risk/Reward ratio : Shown as 1:X (where X is the reward relative to 1 unit of risk)
Potential outcomes : The exact amount you stand to gain or lose on this trade
Trade direction : Whether this is a Long or Short trade
Visual Settings
You can customize the appearance in the "Visual" settings group:
Adjust colors for profit and loss zones
Change the transparency of colored zones
Toggle the filling of spaces between lines
Adjust how far the lines extend beyond the last candle
Practical Tips
Always double-check your "Value per 0.01 lot per tick" setting for the specific instrument you're trading
For Forex major pairs, the standard is usually $1 per pip for 0.01 lots
For other instruments, consult your broker's specifications
The indicator works best when you place your stop loss at a logical market level (support/resistance, swing high/low) rather than a fixed percentage
Final Thoughts
This Position Size Calculator helps remove emotion from your trading by objectively calculating your position size based on your predefined risk parameters. It ensures that you maintain consistent risk across all your trades, regardless of the stop loss distance, which is a key component of successful risk management.
Remember: The most important goal in trading is capital preservation. This tool helps you ensure that each trade risks only what you've decided is acceptable for your trading strategy.
Previous Highs & Lows [TradeWithRon]
Previous Highs & Lows + Fibonacci
This script plots previous Daily, Weekly, Monthly, and Quarterly Highs and Lows along with optional Fibonacci retracement levels (0.5 and 0.618) based on the prior session ranges. It is designed to help traders quickly identify potential support/resistance levels and liquidity zones across multiple timeframes.
✅ Features:
Toggle visibility for Daily, Weekly, Monthly, and Quarterly levels.
Customizable line styles, colors, and widths.
Option to display Fibonacci retracement lines with configurable labels and styles.
Auto-adjusts and extends levels for real-time visualization.
Efficient label handling to minimize chart clutter.
Usage:
Use previous highs/lows to gauge breakout or rejection areas.
Leverage Fibonacci levels to identify potential retracement points or confluence zones with price action.
Combine timeframe levels for stronger zone validation.
Use Cases:
Identify areas where price may react based on historical ranges.
Combine with other strategies for confluence trading.
Perfect for traders who value market structure and clean, reliable levels.
🔶 Disclaimer
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (Tradewithron) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future
Time Based Liquidity [TradeWithRon]This is a ICT Liquidity tool visualizes that liquidity zones derived from major trading sessions (Asia, London, and New York) to help traders identify key areas where price may react. It plots highs and lows from each session, highlights breaks of structure, and tracks live session ranges with optional background boxes and labels great for ICT Traders. The indicator also displays timestamp lines, previous period highs/lows, and a liquidity dashboard table with real-time updates.
Key Features:
* Session Liquidity Lines:
* Plots session highs and lows for Asia, London, and NY sessions.
* Tracks both historical and live session highs/lows.
* Breaks are detected and color-coded for quick visual feedback.
* Session Boxes:
* Optional background boxes visually represent each session’s high/low range.
* Fully customizable per session.
* Break Detection and Bar Coloring:
* Price breaking a session high/low triggers visual bar coloring.
* Breaks are tracked with customizable color styles for highs/lows.
* Timestamp & Vertical Lines:
* Add vertical lines for key time points like 9:30, 12:00, etc.
* Add horizontal lines for open prices at specific times (e.g., NY open).
* Previous Highs & Lows:
* Toggle on daily, weekly, monthly, and quarterly high/low levels.
* Includes label styling and extension options.
* Liquidity Table:
* Shows last break prices and next unbroken targets for each session.
* Updates in real-time to highlight active liquidity zones.
Customization Options:
* Session line colors, widths, and number of lines shown.
* Session box background colors and visibility toggles.
* Timestamp label text, styles, and drawing limits.
* Bar color styling for break confirmation.
* Table location, size, and colors.
* Extensive support for lower timeframe detail with timeframe filter.
Use Case:
This script is ideal for liquidity-based trading, session scalping, and smart money concepts (SMC). Traders can use this tool to identify areas of liquidity interest, detect real-time structural breaks, and track how price interacts with unmitigated levels.
🔶 Disclaimer
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (Tradewithron) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future
EMA Cross Pro v2.5 | True PnL Tracking + Break Even SystemEMA Cross Pro v2.5 | True PnL Tracking + Break-Even System
Description
This strategy combines fast and slow EMA crossovers with multi-stage profit-taking, a configurable stop-loss, and an optional break-even mechanism—while tracking real, closed-trade PnL on the chart. It’s designed to show exactly how much you earn or lose on each partial exit, reset your breakeven when a profit target hits, and label every trade’s midpoint profit/loss.
1) Strategy Logic & Rationale
EMA Crossover (Fast = 21 / Slow = 55): Signals trend changes.
Partial Profit-Taking:
TP1 at +0.5% on 60% of position
TP2 at +1.0% on 30%
TP3 at +1.5% on final 10%
This pyramided exit reduces risk and locks in gains in stages.
Stop-Loss at 1.0% ensures maximum risk per trade.
Break-Even: Optionally moves your stop to entry when TP1 (or TP2/TP3) is reached, protecting unrealized gains.
True PnL Tracking: Calculates and plots realized profit/loss—including partial exits and break-even closes—directly on chart labels.
Alerts: Flexible alarms for entry, each TP, SL, and break-even activation.
2) Default Inputs & Execution
Backtest Start Date: Jan 1 2025
Initial Capital: $1 000
Position Sizing: 10% of equity per entry
Commission: 0.10% per side
Slippage: 0.05%
TP & SL Levels:
TP1: +0.5% (60%)
TP2: +1.0% (30%)
TP3: +1.5% (10%)
SL: –1.0% on remaining size
Break-Even Triggers: Activate on TP1 (default), TP2 or TP3
Alerts: All configurable on/off in the settings panel
3) Backtest Parameters & Results
Backtested on BTCUSDT 1H bars from 2025-01-01 to 2025-05-01:
Total Trades: 78
Win Rate: 62.8%
Average Risk/Reward: 1 : 1.25
Max Drawdown: 7.5%
Net Return: +14.2%
(Assumes 0.10% commission and 0.05% slippage. Past performance does not guarantee future results.)
4) How to Use
Add to Chart: Search “EMA Cross Pro v2.5” and apply to your instrument.
Set Inputs: Adjust EMAs, TP/SL levels, break-even triggers and alarms to suit your style.
Monitor Labels: Entry, TP1, TP2, TP3, SL and break-even labels appear on chart with exact $ profit or loss.
Review PnL Panel: A table shows total trades, win rate, net P/L and streaks—updated in real time.
Risk Management: Never risk more than 1% per trade; always factor in commission/slippage.
5) Warnings & Disclaimer
This strategy is for educational purposes only. Always validate with your own data feed, apply robust risk controls, and be aware that backtest results may differ from live performance.
AlphaTrend++AlphaTrend++
Overview
The AlphaTrend++ is an advanced Pine Script indicator designed to help traders identify buy and sell opportunities in trending and volatile markets. Building on trend-following principles, it uses a modified Average True Range (ATR) calculation combined with volume or momentum data to plot a dynamic trend line. The indicator overlays on the price chart, displaying a colored trend line, a filled trend zone, buy/sell signals, and optional stop-loss tick labels, making it ideal for day trading or swing trading, particularly in markets like futures (e.g., MES).
What It Does
This indicator generates buy and sell signals based on the direction and momentum of a custom trend line, filtered by optional time restrictions and signal frequency logic. The trend line adapts to price action and volatility, with a filled zone highlighting trend strength. Buy/sell signals are plotted as labels, and stop-loss distances are displayed in ticks (customizable for instruments like MES). The indicator supports standard chart types for realistic signal generation.
How It Works
The indicator employs the following components:
Trend Line Calculation: A dynamic trend line is calculated using ATR adjusted by a user-defined multiplier, combined with either Money Flow Index (MFI) or Relative Strength Index (RSI) depending on volume availability. The line tracks price movements, adjusting upward or downward based on trend direction and volatility.
Trend Zone: The area between the current trend line and its value two bars prior is filled, colored green for bullish trends (upward movement) or red for bearish trends (downward movement), providing a visual cue of trend strength.
Signal Generation: Buy signals occur when the trend line crosses above its value two bars ago, and sell signals occur when it crosses below, with optional filtering to reduce signal noise (based on bar timing logic). Signals can be restricted to a 9:00–15:00 UTC trading window.
Stop-Loss Ticks: For each signal, the indicator calculates the distance to the trend line (acting as a stop-loss level) in ticks, using a user-defined tick size (default 0.25 for MES). These are displayed as labels below/above the signal.
Time Filter: An optional filter limits signals to 9:00–15:00 UTC, aligning with active trading sessions like the US market open.
The indicator ensures compatibility with standard chart types (e.g., candlestick or bar charts) to avoid unrealistic results associated with non-standard types like Heikin Ashi or Renko.
How to Use It
Add to Chart: Apply the indicator to a candlestick or bar chart on TradingView.
Configure Settings:
Multiplier: Adjust the ATR multiplier (default 1.0) to control trend line sensitivity. Higher values widen the stop-loss distance.
Common Period: Set the ATR and MFI/RSI period (default 14) for trend calculations.
No Volume Data: Enable if volume data is unavailable (e.g., for certain forex pairs), switching from MFI to RSI.
Tick Size: Set the tick size for stop-loss calculations (default 0.25 for MES futures).
Show Buy/Sell Signals: Toggle signal labels (default enabled).
Show Stop Loss Ticks: Toggle stop-loss tick labels (default enabled).
Use Time Filter: Restrict signals to 9:00–15:00 UTC (default disabled).
Use Filtered Signals: Enable to reduce signal frequency using bar timing logic (default enabled).
Interpret Signals:
Buy Signal: A blue “BUY” label below the bar indicates a potential long entry (trend line crossover, passing filters).
Sell Signal: A red “SELL” label above the bar indicates a potential short entry (trend line crossunder, passing filters).
Trend Zone: Green fill suggests bullish momentum; red fill suggests bearish momentum.
Stop-Loss Ticks: Gray labels show the stop-loss distance in ticks, helping with risk management.
Monitor Context: Use the trend line and filled zone to confirm the market’s direction before acting on signals.
Unique Features
Adaptive Trend Line: Combines ATR with MFI or RSI to create a responsive trend line that adjusts to volatility and market conditions.
Tick-Based Stop-Loss: Displays stop-loss distances in ticks, customizable for specific instruments, aiding precise risk management.
Signal Filtering: Optional bar timing logic reduces false signals, improving reliability in choppy markets.
Trend Zone Visualization: The filled zone between trend line values enhances trend clarity, making it easier to assess momentum.
Time-Restricted Trading: Optional 9:00–15:00 UTC filter aligns signals with high-liquidity sessions.
Notes
Use on standard candlestick or bar charts to ensure accurate signals.
Test the indicator on a demo account to optimize settings for your market and timeframe.
Combine with other analysis (e.g., support/resistance, volume spikes) for better decision-making.
The indicator is not a standalone system; use it as part of a broader trading strategy.
Limitations
Signals may lag in highly volatile or low-liquidity markets due to ATR-based calculations.
The 9:00–15:00 UTC time filter may not suit all markets; disable it for 24-hour assets like forex or crypto.
Stop-loss tick calculations assume consistent tick sizes; verify compatibility with your instrument.
This indicator is designed for traders seeking a robust, trend-following tool with customizable risk management and signal filtering, optimized for active trading sessions.
Heiken Ashi Supertrend ADXHeiken Ashi Supertrend ADX Indicator
Overview
This indicator combines the power of Heiken Ashi candles, Supertrend indicator, and ADX filter to identify strong trend movements across multiple timeframes. Designed primarily for the cryptocurrency market but adaptable to any tradable asset, this system focuses on capturing momentum in established trends while employing a sophisticated triple-layer stop loss mechanism to protect capital and secure profits.
Strategy Mechanics
Entry Signals
The strategy uses a unique blend of technical signals to identify high-probability trade entries:
Heiken Ashi Candles: Looks specifically for Heiken Ashi candles with minimal or no wicks, which signal strong momentum and trend continuation. These "full-bodied" candles represent periods where price moved decisively in one direction with minimal retracement. These are overlayed onto normal candes for more accuarte signalling and plotting
Supertrend Filter: Confirms the underlying trend direction using the Supertrend indicator (default factor: 3.0, ATR period: 10). Entries are aligned with the prevailing Supertrend direction.
ADX Filter (Optional) : Can be enabled to focus only on stronger trending conditions, filtering out choppy or ranging markets. When enabled, trades only trigger when ADX is above the specified threshold (default: 25).
Exit Signals
Positions are closed when either:
An opposing signal appears (Heiken Ashi candle with no wick in the opposite direction)
Any of the three stop loss mechanisms are triggered
Triple-Layer Stop Loss System
The strategy employs a sophisticated three-tier stop loss approach:
ATR Trailing Stop: Adapts to market volatility and locks in profits as the trend extends. This stop moves in the direction of the trade, capturing profit without exiting too early during normal price fluctuations.
Swing Point Stop: Uses natural market structure (recent highs/lows over a lookback period) to place stops at logical support/resistance levels, honoring the market's own rhythm.
Insurance Stop: A percentage-based safety net that protects against sudden adverse moves immediately after entry. This is particularly valuable when the swing point stop might be positioned too far from entry, providing immediate capital protection.
Optimization Features
Customizable Filters : All components (Supertrend, ADX) can be enabled/disabled to adapt to different market conditions
Adjustable Parameters : Fine-tune ATR periods, Supertrend factors, and ADX thresholds
Flexible Stop Loss Settings : Each of the three stop loss mechanisms can be individually enabled/disabled with customizable parameters
Best Practices for Implementation
[Recommended Timeframes : Works best on 4-hour charts and above, where trends develop more reliably
Market Conditions: Performs well across various market conditions due to the ADX filter's ability to identify meaningful trends
Performance Characteristics
When properly optimized, this has demonstrated profit factors exceeding 3 in backtesting. The approach typically produces generous winners while limiting losses through its multi-layered stop loss system. The ATR trailing stop is particularly effective at capturing extended trends, while the insurance stop provides immediate protection against adverse moves.
The visual components on the chart make it easy to follow the strategy's logic, with position status, entry prices, and current stop levels clearly displayed.
This indicator represents a complete trading system with clearly defined entry and exit rules, adaptive stop loss mechanisms, and built-in risk management through position sizing.
Heiken Ashi Supertrend ADX - StrategyHeiken Ashi Supertrend ADX Strategy
Overview
This strategy combines the power of Heiken Ashi candles, Supertrend indicator, and ADX filter to identify strong trend movements across multiple timeframes. Designed primarily for the cryptocurrency market but adaptable to any tradable asset, this system focuses on capturing momentum in established trends while employing a sophisticated triple-layer stop loss mechanism to protect capital and secure profits.
Strategy Mechanics
Entry Signals
The strategy uses a unique blend of technical signals to identify high-probability trade entries:
Heiken Ashi Candles: Looks specifically for Heiken Ashi candles with minimal or no wicks, which signal strong momentum and trend continuation. These "full-bodied" candles represent periods where price moved decisively in one direction with minimal retracement.
Supertrend Filter : Confirms the underlying trend direction using the Supertrend indicator (default factor: 3.0, ATR period: 10). Entries are aligned with the prevailing Supertrend direction.
ADX Filter (Optional) : Can be enabled to focus only on stronger trending conditions, filtering out choppy or ranging markets. When enabled, trades only trigger when ADX is above the specified threshold (default: 25).
Exit Signals
Positions are closed when either:
An opposing signal appears (Heiken Ashi candle with no wick in the opposite direction)
Any of the three stop loss mechanisms are triggered
Triple-Layer Stop Loss System
The strategy employs a sophisticated three-tier stop loss approach:
ATR Trailing Stop: Adapts to market volatility and locks in profits as the trend extends. This stop moves in the direction of the trade, capturing profit without exiting too early during normal price fluctuations.
Swing Point Stop : Uses natural market structure (recent highs/lows over a lookback period) to place stops at logical support/resistance levels, honoring the market's own rhythm.
Insurance Stop: A percentage-based safety net that protects against sudden adverse moves immediately after entry. This is particularly valuable when the swing point stop might be positioned too far from entry, providing immediate capital protection.
Optimization Features
Customizable Filters: All components (Supertrend, ADX) can be enabled/disabled to adapt to different market conditions
Adjustable Parameters: Fine-tune ATR periods, Supertrend factors, and ADX thresholds
Flexible Stop Loss Settings: Each of the three stop loss mechanisms can be individually enabled/disabled with customizable parameters
Best Practices for Implementation
Recommended Timeframes: Works best on 4-hour charts and above, where trends develop more reliably
Market Conditions: Performs well across various market conditions due to the ADX filter's ability to identify meaningful trends
Position Sizing: The strategy uses a percentage of equity approach (default: 3%) for position sizing
Performance Characteristics
When properly optimized, this strategy has demonstrated profit factors exceeding 3 in backtesting. The approach typically produces generous winners while limiting losses through its multi-layered stop loss system. The ATR trailing stop is particularly effective at capturing extended trends, while the insurance stop provides immediate protection against adverse moves.
The visual components on the chart make it easy to follow the strategy's logic, with position status, entry prices, and current stop levels clearly displayed.
This strategy represents a complete trading system with clearly defined entry and exit rules, adaptive stop loss mechanisms, and built-in risk management through position sizing.
Follow Line Strategy Version 2.5 (React HTF)Follow Line Strategy v2.5 (React HTF) - TradingView Script Usage
This strategy utilizes a "Follow Line" concept based on Bollinger Bands and ATR to identify potential trading opportunities. It includes advanced features like optional working hours filtering, higher timeframe (HTF) trend confirmation, and improved trend-following entry/exit logic. Version 2.5 introduces reactivity to HTF trend changes for more adaptive trading.
Key Features:
Follow Line: The core of the strategy. It dynamically adjusts based on price breakouts beyond Bollinger Bands, using either the low/high or ATR-adjusted levels.
Bollinger Bands: Uses a standard Bollinger Bands setup to identify overbought/oversold conditions.
ATR Filter: Optionally uses the Average True Range (ATR) to adjust the Follow Line offset, providing a more dynamic and volatility-adjusted entry point.
Optional Trading Session Filter: Allows you to restrict trading to specific hours of the day.
Higher Timeframe (HTF) Confirmation: A significant feature that allows you to confirm trade signals with the trend on a higher timeframe. This can help to filter out false signals and improve the overall win rate.
HTF Selection Method: Choose between Auto and Manual HTF selection:
Auto: The script automatically determines the appropriate HTF based on the current chart timeframe (e.g., 1min -> 15min, 5min -> 4h, 1h -> 1D, Daily -> Monthly).
Manual: Allows you to select a specific HTF using the Manual Higher Timeframe input.
Trend-Following Entries/Exits: The strategy aims to enter trades in the direction of the established trend, using the Follow Line to define the trend.
Reactive HTF Trend Changes: v2.5 exits positions not only based on the trade timeframe (TTF) trend changing, but also when the higher timeframe trend reverses against the position. This makes the strategy more responsive to larger market movements.
Alerts: Provides buy and sell alerts for convenient trading signal notifications.
Visualizations: Plots the Follow Line for both the trade timeframe and the higher timeframe (optional), making it easy to understand the strategy's logic.
How to Use:
Add to Chart: Add the "Follow Line Strategy Version 2.5 (React HTF)" script to your TradingView chart.
Configure Settings: Customize the strategy's settings to match your trading style and preferences. Here's a breakdown of the key settings:
Indicator Settings:
ATR Period: The period used to calculate the ATR. A smaller period is more sensitive to recent price changes.
Bollinger Bands Period: The period used for the Bollinger Bands calculation. A longer period results in smoother bands.
Bollinger Bands Deviation: The number of standard deviations from the moving average that the Bollinger Bands are plotted. Higher deviations create wider bands.
Use ATR for Follow Line Offset?: Enable to use ATR to calculate the Follow Line offset. Disable to use the simple high/low.
Show Trade Signals on Chart?: Enable to show BUY/SELL labels on the chart.
Time Filter:
Use Trading Session Filter?: Enable to restrict trading to specific hours of the day.
Trading Session: The trading session to use (e.g., 0930-1600 for regular US stock market hours). Use 0000-2400 for all hours.
Higher Timeframe Confirmation:
Enable HTF Confirmation?: Enable to use the HTF trend to filter trade signals. If enabled, only trades in the direction of the HTF trend will be taken.
HTF Selection Method: Choose between "Auto" and "Manual" HTF selection.
Manual Higher Timeframe: If "Manual" is selected, choose the specific HTF (e.g., 240 for 4 hours, D for daily).
Show HTF Follow Line?: Enable to plot the HTF Follow Line on the chart.
Understanding the Signals:
Buy Signal: The price breaks above the upper Bollinger Band, and the HTF (if enabled) confirms the uptrend.
Sell Signal: The price breaks below the lower Bollinger Band, and the HTF (if enabled) confirms the downtrend.
Exit Long: The trade timeframe trend changes to downtrend or the higher timeframe trend changes to downtrend.
Exit Short: The trade timeframe trend changes to uptrend or the higher timeframe trend changes to uptrend.
Alerts:
The script includes alert conditions for buy and sell signals. To set up alerts, click the "Alerts" button in TradingView and select the desired alert condition from the script. The alert message provides the ticker and interval.
Backtesting and Optimization:
Use TradingView's Strategy Tester to backtest the strategy on different assets and timeframes.
Experiment with different settings to optimize the strategy for your specific trading style and risk tolerance. Pay close attention to the ATR Period, Bollinger Bands settings, and the HTF confirmation options.
Tips and Considerations:
HTF Confirmation: The HTF confirmation can significantly improve the strategy's performance by filtering out false signals. However, it can also reduce the number of trades.
Risk Management: Always use proper risk management techniques, such as stop-loss orders and position sizing, when trading any strategy.
Market Conditions: The strategy may perform differently in different market conditions. It's important to backtest and optimize the strategy for the specific markets you are trading.
Customization: Feel free to modify the script to suit your specific needs. For example, you could add additional filters or entry/exit conditions.
Pyramiding: The pyramiding = 0 setting prevents multiple entries in the same direction, ensuring the strategy doesn't compound losses. You can adjust this value if you prefer to pyramid into winning positions, but be cautious.
Lookahead: The lookahead = barmerge.lookahead_off setting ensures that the HTF data is calculated based on the current bar's closed data, preventing potential future peeking bias.
Trend Determination: The logic for determining the HTF trend and reacting to changes is critical. Carefully review the f_calculateHTFData function and the conditions for exiting positions to ensure you understand how the strategy responds to different market scenarios.
Disclaimer:
This script is for informational and educational purposes only. It is not financial advice, and you should not trade based solely on the signals generated by this script. Always do your own research and consult with a qualified financial advisor before making any trading decisions. The author is not responsible for any losses incurred as a result of using this script.
FiFto -Stock movement % calcIndicator Overview:
The script creates an overlay on your chart to display two key features:
Burst Power Calculation: A measure of significant price moves (5%, 10%, 19%) with counts of occurrences for each move type.
SL/Target Info: Displays stop-loss (SL) quantities and target percentages based on your risk parameters.
These features are displayed in a customizable table and offer real-time data for analysis.
Inputs:
Burst Power Inputs:
Lookback Period: Specifies the timeframe to calculate price moves for. You can choose from options like "3 Months", "6 Months", "1 Year", etc.
Display Mode: You can choose to display the table in "Full" mode (showing all relevant data) or "Mini" mode (showing only basic information).
Show Latest Date: Toggles whether the table includes a column showing the date of the latest move.
Dark Mode: Switches the colors of the table between light and dark modes for better visibility.
Closing Threshold: Defines how close the closing price must be to the high of the bar to consider it valid for analysis.
Table Settings:
Table Size: Allows you to select the table size from options like "small", "normal", "large", etc.
Table Position: Lets you choose where the table is positioned on the screen (top, middle, or bottom of the chart).
Table Font Size: Adjusts the font size of the text in the table (small, normal, or large).
Disable Table Colors: If true, the table will not use colors for cells, giving a more neutral appearance.
SL/Target Settings:
Show SL/Target Info: Whether to include Stop-Loss and Target information in the table.
Risk Amount: The monetary value you're willing to risk on a trade. This is used to calculate the stop-loss quantity.
SL Percentage: The percentage below the entry point at which the stop-loss will be triggered.
Target Percentage: The percentage above the entry point at which the target will be set.
Style Settings:
These settings define the appearance of the table, including colors and fonts. The table will adjust based on your color preferences (dark mode or light mode), with options for customizing background colors, text colors, and border styles.
Burst Power Calculation:
This part of the script calculates the Burst Power value based on price movements and updates the table with:
Counts of Price Moves:
5% or more
10% or more
19% or more
Burst Power Value: A weighted value calculated by summing the counts of each price move, with different weights for each move type:
5% moves contribute 1/5
10% moves contribute 1/2
19% moves contribute 1/0.5
Max Price Move: Tracks the maximum price move (and its timestamp) for the current period.
Logic:
For each bar, it checks if the price moved by 5%, 10%, or 19% or more, and updates the respective count and date of the last occurrence of each price move.
It calculates a "Burst Power" value based on the occurrences of these price moves and assigns a color to indicate how strong the burst power is.
Stop-Loss (SL) and Target Calculation:
This part calculates the quantity of the asset you can purchase based on your risk amount and stop-loss percentage:
One-Hour High: Tracks the highest price over the past hour (using 60-minute candles).
Target Price: Sets a target price based on the daily close and the target percentage input.
SL Quantity: The amount of the asset you can risk given the stop-loss points and your risk amount.
Target Percent Remaining: Shows how much of your target is left to reach, based on the one-hour high price.
Table Display Logic:
This is the most important part of the indicator because it determines how the data is displayed on the chart in a table. Here's a breakdown:
Column and Row Setup:
Based on the display mode (Full or Mini), it adjusts the number of rows and columns in the table.
The columns display the types of data (e.g., "Max%", "05% +", "Burst Power", etc.), while the rows show the values of those parameters.
If "Show Latest Date" is enabled, an additional column will show the date of the last occurrence for each price move.
Burst Power and SL/Target Info:
The table displays the following information:
Max % Move: The largest price move observed.
Burst Power: A score indicating the strength of the price move (calculated from 5%, 10%, and 19% price moves).
SL Quantity: The quantity you can trade based on your risk and stop-loss.
Target % Left: The remaining percentage to reach the target price.
The table updates whenever the barstate is the last and the selected timeframe is active.
Table Position:
The table position is adjustable based on the inputs (top, middle, bottom), allowing you to control where the table appears on the screen.
Changes Made for Timeframe Flexibility:
The table and all its calculations previously only displayed when the chart was in a daily timeframe (timeframe.isdaily). This behavior has been removed.
No Timeframe Dependency: The table now displays regardless of which timeframe you are viewing. If you switch to another timeframe (e.g., 15-minute, 1-hour), the table will still appear without needing to be modified. The table will display in all timeframes you choose.
How to Use:
Install the Script: Add this script to your chart in TradingView as a custom indicator.
Customize Settings: Use the inputs in the settings panel to adjust your preferred values for lookback period, risk amount, SL percentage, target percentage, and other table display options.
Analyze the Data: Watch the table update with real-time data as you analyze price movements. The table will show the frequency and magnitude of price bursts, along with risk and target data to help you make better trading decisions.
Open Range Candle [TradeWithRon]This Open Range Break indicator is a tool designed to help traders identify and visualize key price levels using the Opening Range Breakout (ORB) strategy. This indicator dynamically plots critical levels such as the high, low, and middle of a predefined range, along with Fibonacci retracement levels for further analysis. It also features several customization options to fit various trading styles.
Key Features:
Session Setup: Allows the user to set the time offset in GMT - or + to adjust the ORB session to their local time zone.
The default ORB session is set at 9:45 AM but can be adjusted based on user preferences.
Warning: Only supports 5-minute and 15-minute timeframes.
Visual Customization:
Line Styles: Users can choose from Solid, Dotted, or Dashed lines to represent key price levels.
Color Adjustments: Customizable colors for the high, middle, and low levels of the range, as well as Fibonacci levels and vertical lines.
Labeling Options: The labels can be customized in terms of size and color, helping to keep the chart clean and clear.
Fibonacci Retracement Levels: Fibonacci retracement levels are automatically drawn between the high and low of the range. Users can toggle these on or off and customize the offset to suit different trading instruments.
Time-Based Visuals: A vertical line is drawn at the start of the ORB session, providing a clear visual marker of where the breakout starts. This is useful for pinpointing key trade setups.
The indicator supports both 5-minute and 15-minute timeframes.
EMA Integration: The user can enable an Exponential Moving Average (EMA) on any chosen timeframe with adjustable parameters such as the length and color, providing additional trend context.
Dynamic Labeling: The indicator labels the high, middle, and low points of the ORB with custom text. These labels are updated in real-time as new data becomes available.
Limit on Lines and Labels: The indicator allows for a limit on the number of lines and labels drawn to maintain a clean chart, preventing unnecessary clutter as more ORB levels are plotted.
Daily Bias Information: The indicator assesses the daily trend bias (bullish or bearish) based on the relationship between the open and close prices for the last three daily candles, providing context for the current trading session.
Countdown Timer: The remaining time until the end of the current session is displayed in a countdown format, which helps traders to time their entries and exits more precisely.
How To Use:,
- Set the Timeframe to 15 minutes.
- Adjust the Time Zone Offset if needed, based on your local time zone.
- Enable the Show ORB feature for the first 15-minute candle to be drawn as the opening range. - The indicator will automatically mark the high, middle, and low points of the range.
Identify Breakout Points:
Bullish Breakout: If the price breaks above the high of the 15-minute opening range, this indicates a potential bullish breakout. The indicator will plot a vertical line marking the breakout point for further confirmation.
Bearish Breakout: If the price breaks below the low of the 15-minute opening range, this signals a potential bearish breakout. Again, the indicator will plot the breakout point with a vertical line for easy identification.
🔶 Disclaimer
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (Tradewithron) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future
CISD [TradeWithRon]The CISD (Change in State of Delivery) indicator helps traders identify significant price action events by tracking liquidity sweeps and CISD events. It highlights key market structure shifts by marking liquidity levels and failed breakouts, offering insights into potential reversals and breakout confirmations.
Features:
CISD Detection: Identifies high and low CISD events with customizable display settings.
Customizable Display: Users can control how many CISD lines and liquidity lines are shown.
Customization:
- Adjust the number of CISD and liquidity lines displayed.
- Modify the swing length and back-checking period for greater flexibility.
- Choose different colors and line styles to match your charting preferences.
Use Cases:
- Spot traps and reversals.
- Identify breakout confirmations.
- Enhance market structure analysis.
- Combine with other technical indicators for improved decision-making.
🔶 Disclaimer
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (Tradewithron) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future
Order Block Candle [TradeWithRon]Order Block Candle
This indicator is designed to help traders identify and visualize key movements within the market. These order blocks are areas where significant buying or selling has occurred, often leading to a strong price reaction. This script detects both bullish and bearish order blocks (with volume spike), marking them directly on your chart, and offers a variety of customization options to enhance your trading experience.
Features:
Bullish and Bearish Candles: Bullish Order Block: Identified when the current price creates a higher high and closes above the previous price, indicating a zone of potential buying activity by institutional traders.
Bearish Order Block: Identified when the current price creates a lower low and closes below the previous price, suggesting strong institutional selling.
Volume-Weighted Analysis: The indicator allows traders to incorporate volume into the order block detection. When a volume pivot (a significant change in volume) is detected, it strengthens the validity of the identified order block.
Customizable Visuals:
- Users can adjust the color and style of order block lines, including solid, dashed, or dotted styles, to suit personal preferences.
- Bullish Order Block Color: Choose from a range of colors to highlight bullish order blocks (default is green).
- Bearish Order Block Color: Choose a color for bearish order blocks (default is red).
- Users can also customize the color and style of the lines representing order blocks, helping traders visually track key levels.
Candle Body or. Wick: The indicator provides flexibility in defining the price range of the order block. Traders can choose whether to calculate the order block using the candle body (open and close) or the full wick (high and low) to suit their trading strategy.
Dynamic Line Extensions: Order block lines are dynamically extended to provide ongoing support and resistance levels. When a price breaks an order block line, the line changes to a dotted style, marking it as "broken." This allows traders to easily spot when the market invalidates an order block.
Alerts:
- Alert for Bullish Order Block: Get notified when a new bullish order block is detected.
- Alert for Bearish Order Block: Receive alerts when a bearish order block is identified.
- Alert for Broken Lines: Set up alerts to be notified when a bullish or bearish order block line is broken, giving traders a signal for potential market shifts.
Zone Management:
- The indicator tracks upper and lower zone information, marking significant price levels where institutional buying or selling might occur. Traders can adjust settings to define how many previous lines should be displayed on the chart for reference.
Optional Mitigated Order Blocks:
- A feature that highlights mitigated (neutralized) order blocks with a specific color and line style, offering additional insight into market behavior.
Input Settings:
- Length: The number of bars to the left and right of a pivot point for it to be considered a high or low.
- Candle Body: Option to use the candle body for calculations (as opposed to the wick).
- Bullish and Bearish Candle Color: Customizable colors for bullish and bearish order blocks.
- Open Line Style: Choose between solid, dashed, or dotted line styles for order block visualization.
- Removed Old Lines: Control the number of broken lines shown on the chart.
- Mitigated Line Style: Select line style for mitigated order blocks.
- Volume Use: Enable volume-based detection for stronger order block validation.
How to Use:
This indicator is ideal for traders looking to trade around institutional support and resistance levels. The bullish and bearish order blocks can serve as key entry or exit points, while broken lines offer dynamic support/resistance that adapt to market changes. Use the alerts to stay informed of critical market developments and adjust your trading strategy accordingly.
🔶 Disclaimer
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (Tradewithron) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future
Market Structure Break with Volume & ATR#### Indicator Overview:
The *Market Structure Break with Volume & ATR (MSB+VolATR)* indicator is designed to identify significant market structure breakouts and breakdowns using a combination of price action, volume analysis, and volatility (ATR). It is particularly useful for traders who rely on higher timeframes for swing trading or positional trading. The indicator highlights bullish and bearish breakouts, retests, fakeouts, and potential buy/sell signals based on RSI overbought/oversold conditions.
---
### Key Features:
1. *Market Structure Analysis*:
- Identifies swing highs and lows on a user-defined higher timeframe.
- Detects breakouts and breakdowns when price exceeds these levels with volume and ATR validation.
2. *Volume Validation*:
- Ensures breakouts are accompanied by above-average volume, reducing the likelihood of false signals.
3. *ATR Filter*:
- Filters out insignificant breakouts by requiring the breakout size to exceed a multiple of the ATR.
4. *RSI Integration*:
- Adds a momentum filter by considering overbought/oversold conditions using RSI.
5. *Visual Enhancements*:
- Draws colored boxes to highlight breakout zones.
- Labels breakouts, retests, and fakeouts for easy interpretation.
- Displays stop levels for potential trades.
6. *Alerts*:
- Provides alert conditions for buy and sell signals, enabling real-time notifications.
---
### Input Settings and Their Effects:
1. **Timeframe (tf):
- Determines the higher timeframe for market structure analysis.
- *Effect*: A higher timeframe (e.g., 1D) reduces noise and provides more reliable swing points, while a lower timeframe (e.g., 4H) may generate more frequent but less reliable signals.
2. **Lookback Period (length):
- Defines the number of historical bars used to identify significant highs and lows.
- *Effect*: A longer lookback period (e.g., 50) captures broader market structure, while a shorter period (e.g., 20) reacts faster to recent price action.
3. **ATR Length (atr_length):
- Sets the period for ATR calculation.
- *Effect*: A shorter ATR length (e.g., 14) reacts faster to recent volatility, while a longer length (e.g., 21) smooths out volatility spikes.
4. **ATR Multiplier (atr_multiplier):
- Filters insignificant breakouts by requiring the breakout size to exceed ATR × multiplier.
- *Effect*: A higher multiplier (e.g., 0.2) reduces false signals but may miss smaller breakouts.
5. **Volume Multiplier (volume_multiplier):
- Sets the volume threshold for breakout validation.
- *Effect*: A higher multiplier (e.g., 1.0) ensures stronger volume confirmation but may reduce the number of signals.
6. **RSI Length (rsi_length):
- Defines the period for RSI calculation.
- *Effect*: A shorter RSI length (e.g., 10) makes the indicator more sensitive to recent price changes, while a longer length (e.g., 20) smooths out RSI fluctuations.
7. *RSI Overbought/Oversold Levels*:
- Sets the thresholds for overbought (default: 70) and oversold (default: 30) conditions.
- *Effect*: Adjusting these levels can make the indicator more or less conservative in generating signals.
8. **Stop Loss Multiplier (SL_Multiplier):
- Determines the distance of the stop-loss level from the entry price based on ATR.
- *Effect*: A higher multiplier (e.g., 2.0) provides wider stops, reducing the risk of being stopped out prematurely but increasing potential losses.
---
### How It Works:
1. *Breakout Detection*:
- A bullish breakout occurs when the close exceeds the highest high of the lookback period, with volume above the threshold and breakout size exceeding ATR × multiplier.
- A bearish breakout occurs when the close falls below the lowest low of the lookback period, with similar volume and ATR validation.
2. *Retest Logic*:
- After a breakout, if price retests the breakout zone without closing beyond it, a retest label is displayed.
3. *Fakeout Detection*:
- If price briefly breaks out but reverses back into the range, a fakeout label is displayed.
4. *Buy/Sell Signals*:
- A sell signal is generated when price reverses below a bullish breakout zone and RSI is overbought.
- A buy signal is generated when price reverses above a bearish breakout zone and RSI is oversold.
5. *Stop Levels*:
- Stop-loss levels are plotted based on ATR × SL_Multiplier, providing a visual guide for risk management.
---
### Who Can Use It and How:
1. *Swing Traders*:
- Use the indicator on daily or 4-hour timeframes to identify high-probability breakout trades.
- Combine with other technical analysis tools (e.g., trendlines, Fibonacci levels) for confirmation.
2. *Positional Traders*:
- Apply the indicator on weekly or daily charts to capture long-term trends.
- Use the stop-loss levels to manage risk over extended periods.
3. *Algorithmic Traders*:
- Integrate the buy/sell signals into automated trading systems.
- Use the alert conditions to trigger trades programmatically.
4. *Risk-Averse Traders*:
- Adjust the ATR and volume multipliers to filter out low-probability trades.
- Use wider stop-loss levels to avoid premature exits.
---
### Where to Use It:
- *Forex*: Identify breakouts in major currency pairs.
- *Stocks*: Spot trend reversals in high-volume stocks.
- *Commodities*: Trade breakouts in gold, oil, or other commodities.
- *Crypto*: Apply to Bitcoin, Ethereum, or other cryptocurrencies for volatile breakout opportunities.
---
### Example Use Case:
- *Timeframe*: 1D
- *Lookback Period*: 50
- *ATR Length*: 14
- *ATR Multiplier*: 0.1
- *Volume Multiplier*: 0.5
- *RSI Length*: 14
- *RSI Overbought/Oversold*: 70/30
- *SL Multiplier*: 1.5
In this setup, the indicator will:
1. Identify significant swing highs and lows on the daily chart.
2. Validate breakouts with volume and ATR filters.
3. Generate buy/sell signals when price reverses and RSI confirms overbought/oversold conditions.
4. Plot stop-loss levels for risk management.
---
### Conclusion:
The *MSB+VolATR* indicator is a versatile tool for traders seeking to capitalize on market structure breakouts with added confirmation from volume and volatility. By customizing the input settings, traders can adapt the indicator to their preferred trading style and risk tolerance. Whether you're a swing trader, positional trader, or algorithmic trader, this indicator provides actionable insights to enhance your trading strategy.
Stop/Take BoundsThe Stop/Take Bounds indicator is tool for setting dynamic stop-loss and take-profit levels based on percentage distance from the price. Unlike traditional ATR-based methods, this indicator allows traders to set stop levels as a fixed percentage of the price and define the take-profit multiple.
- Stop-loss distanceis determined as a percentage of the current price (e.g., 1% means the stop-loss is always 1% away from the price).
- Take-profit distance is calculated by multiplying the stop-loss distance by a user-defined multiplier (e.g., a multiplier of 2 places the take-profit level twice as far as the stop-loss).
- The indicator plots red lines for stop-loss levels and green lines for take-profit levels, making it easy to visualize risk-to-reward scenarios.
How to Use
1. Set Stop-Loss Distance (%) – Define how far the stop-loss should be from the price.
2. Set Take-Profit Multiplier – Choose how many times larger the take-profit should be compared to the stop-loss.
3. Apply to Long and Short Trades – The indicator automatically plots levels for both long and short positions.
4. Use in Manual or Algorithmic Trading – Ideal for discretionary traders as well as for integration into algorithmic strategies.
Use Cases
- Risk Management – Helps maintain disciplined risk-to-reward ratios.
- Strategy Development – Can be used in the creation of algorithmic trading systems.
- Trailing Stop Simulation – Can act as a trailing stop mechanism when used dynamically.
This indicator is a great addition to any trading strategy!
Advanced Adaptive Grid Trading StrategyThis strategy employs an advanced grid trading approach that dynamically adapts to market conditions, including trend, volatility, and risk management considerations. The strategy aims to capitalize on price fluctuations in both rising (long) and falling (short) markets, as well as during sideways movements. It combines multiple indicators to determine the trend and automatically adjusts grid parameters for more efficient trading.
How it Works:
Trend Analysis:
Short, long, and super long Moving Averages (MA) to determine the trend direction.
RSI (Relative Strength Index) to identify overbought and oversold levels, and to confirm the trend.
MACD (Moving Average Convergence Divergence) to confirm momentum and trend direction.
Momentum indicator.
The strategy uses a weighted scoring system to assess trend strength (strong bullish, moderate bullish, strong bearish, moderate bearish, sideways).
Grid System:
The grid size (the distance between buy and sell levels) changes dynamically based on market volatility, using the ATR (Average True Range) indicator.
Grid density also adapts to the trend: in a strong trend, the grid is denser in the direction of the trend.
Grid levels are shifted depending on the trend direction (upwards in a bear market, downwards in a bull market).
Trading Logic:
The strategy opens long positions if the trend is bullish and the price reaches one of the lower grid levels.
It opens short positions if the trend is bearish and the price reaches one of the upper grid levels.
In a sideways market, it can open positions in both directions.
Risk Management:
Stop Loss for every position.
Take Profit for every position.
Trailing Stop Loss to protect profits.
Maximum daily loss limit.
Maximum number of positions limit.
Time-based exit (if the position is open for too long).
Risk-based position sizing (optional).
Input Options:
The strategy offers numerous settings that allow users to customize its operation:
Timeframe: The chart's timeframe (e.g., 1 minute, 5 minutes, 1 hour, 4 hours, 1 day, 1 week).
Base Grid Size (%): The base size of the grid, expressed as a percentage.
Max Positions: The maximum number of open positions allowed.
Use Volatility Grid: If enabled, the grid size changes dynamically based on the ATR indicator.
ATR Length: The period of the ATR indicator.
ATR Multiplier: The multiplier for the ATR to fine-tune the grid size.
RSI Length: The period of the RSI indicator.
RSI Overbought: The overbought level for the RSI.
RSI Oversold: The oversold level for the RSI.
Short MA Length: The period of the short moving average.
Long MA Length: The period of the long moving average.
Super Long MA Length: The period of the super long moving average.
MACD Fast Length: The fast period of the MACD.
MACD Slow Length: The slow period of the MACD.
MACD Signal Length: The period of the MACD signal line.
Stop Loss (%): The stop loss level, expressed as a percentage.
Take Profit (%): The take profit level, expressed as a percentage.
Use Trailing Stop: If enabled, the strategy uses a trailing stop loss.
Trailing Stop (%): The trailing stop loss level, expressed as a percentage.
Max Loss Per Day (%): The maximum daily loss, expressed as a percentage.
Time Based Exit: If enabled, the strategy exits the position after a certain amount of time.
Max Holding Period (hours): The maximum holding time in hours.
Use Risk Based Position: If enabled, the strategy calculates position size based on risk.
Risk Per Trade (%): The risk per trade, expressed as a percentage.
Max Leverage: The maximum leverage.
Important Notes:
This strategy does not guarantee profits. Cryptocurrency markets are volatile, and trading involves risk.
The strategy's effectiveness depends on market conditions and settings.
It is recommended to thoroughly backtest the strategy under various market conditions before using it live.
Past performance is not indicative of future results.
Multi-Timeframe Parabolic SAR Strategy ver 1.0Multi-Timeframe Parabolic SAR Strategy (MTF PSAR) - Enhanced Trend Trading
This strategy leverages the power of the Parabolic SAR (Stop and Reverse) indicator across multiple timeframes to provide robust trend identification, precise entry/exit signals, and dynamic trailing stop management. By combining the insights of both the current chart's timeframe and a user-defined higher timeframe, this strategy aims to improve trading accuracy, reduce risk, and capture more significant market moves.
Key Features:
Dual Timeframe Analysis: Simultaneously analyzes the Parabolic SAR on the current chart and a higher timeframe (e.g., Daily PSAR on a 1-hour chart). This allows you to align your trades with the dominant trend and filter out noise from lower timeframes.
Configurable PSAR: Fine-tune the PSAR calculation with adjustable Start, Increment, and Maximum values to optimize sensitivity for your trading style and the asset's volatility.
Independent Timeframe Control: Choose to display and trade based on either or both the current timeframe PSAR and the higher timeframe PSAR. Focus on the most relevant information for your analysis.
Clear Visual Signals: Distinct colors for the current and higher timeframe PSAR dots provide a clear visual representation of potential entry and exit points.
Multiple Entry Strategies: The strategy offers flexible entry conditions, allowing you to trade based on:
Confirmation: Both current and higher timeframe PSAR signals agree and the current timeframe PSAR has just flipped direction. (Most conservative)
Current Timeframe Only: Trades based solely on the current timeframe PSAR, ideal for when the higher timeframe is less relevant or disabled.
Higher Timeframe Only: Trades based solely on the higher timeframe PSAR.
Dynamic Trailing Stop (PSAR-Based): Implements a trailing stop-loss based on the current timeframe's Parabolic SAR. This helps protect profits by automatically adjusting the stop-loss as the price moves in your favor. Exits are triggered when either the current or HTF PSAR flips.
No Repainting: Uses lookahead=barmerge.lookahead_off in the security() function to ensure that the higher timeframe data is accessed without any data leakage, preventing repainting issues.
Fully Configurable: All parameters (PSAR settings, higher timeframe, visibility, colors) are adjustable through the strategy's settings panel, allowing for extensive customization and optimization.
Suitable for Various Trading Styles: Applicable to swing trading, day trading, and trend-following strategies across various markets (stocks, forex, cryptocurrencies, etc.).
How it Works:
PSAR Calculation: The strategy calculates the standard Parabolic SAR for both the current chart's timeframe and the selected higher timeframe.
Trend Identification: The direction of the PSAR (dots below price = uptrend, dots above price = downtrend) determines the current trend for each timeframe.
Entry Signals: The strategy generates buy/sell signals based on the chosen entry strategy (Confirmation, Current Timeframe Only, or Higher Timeframe Only). The Confirmation strategy offers the highest probability signals by requiring agreement between both timeframes.
Trailing Stop Exit: Once a position is entered, the strategy uses the current timeframe PSAR as a dynamic trailing stop. The stop-loss is automatically adjusted as the PSAR dots move, helping to lock in profits and limit losses. The strategy exits when either the Current or HTF PSAR changes direction.
Backtesting and Optimization: The strategy automatically backtests on the chart's historical data, allowing you to evaluate its performance and optimize the settings for different assets and timeframes.
Example Use Cases:
Trend Confirmation: A trader on a 1-hour chart observes a bullish PSAR flip on the current timeframe. They check the MTF PSAR strategy and see that the Daily PSAR is also bullish, confirming the strength of the uptrend and providing a high-probability long entry signal.
Filtering Noise: A trader on a 5-minute chart wants to avoid whipsaws caused by short-term price fluctuations. They use the strategy with a 1-hour higher timeframe to filter out noise and only trade in the direction of the dominant trend.
Dynamic Risk Management: A trader enters a long position and uses the current timeframe PSAR as a trailing stop. As the price rises, the PSAR dots move upwards, automatically raising the stop-loss and protecting profits. The trade is exited when the current (or HTF) PSAR flips to bearish.
Disclaimer:
The Parabolic SAR is a lagging indicator and can produce false signals, particularly in ranging or choppy markets. This strategy is intended for educational and informational purposes only and should not be considered financial advice. It is essential to backtest and optimize the strategy thoroughly, use it in conjunction with other technical analysis tools, and implement sound risk management practices before using it with real capital. Past performance is not indicative of future results. Always conduct your own due diligence and consider your risk tolerance before making any trading decisions.