Bjorgum MTF MAScope:
Up to 3 MA's can be applied at the users discretion
Choose between 10 different average types including favorites from the Bjorgum series from HEMA to Reversal T3's
Each MA can be independently set
Go Multi-timeframe! Any MA can be set to any timeframe of reference you choose (ex. using 3 different timeframes of higher resolution to your chart reference to establish a multi-time frame trend)
RSI HEATMAP. Use the bar color or the MA color selection toggle to set your color to reference RSI on a gradient. This helps to establish clear visual reference to momentum on top of trend analysis
Assigning RSI bar color to an MA of a higher time frame can allow you to see visual reference of momentum of the greater trend that may be at play.
Example: trying to get short on a 15min while your 1hr and 4hr RSI Heatmap burns deep in oversold.
RSI color can be assigned to the bar color, the MA (1,2 or 3), or both. Alternatively, bar color can be assigned to a more simple rising/ falling MA color and price above/ below the MA for bar color.
ALL MTF FUNCTIONS ARE NON_REPAINTING.
The Idea
The original inspiration behind the script came from an observation of a constant struggle of Pinecoders of both youth or experience to find accurate multi-timeframe indicators that do not repaint, and appear as should on historical bars, while performing reliably in real time. I encourage you to scroll the Pinecoders FAQ on a recent piece explaining the difficulties and caveats of different approaches, but I would like to reference the elimination of the historical bar offset for THIS purpose. MA's are based on closing prices, that is to say they are confirmed and will not change once the bar has closed. There is no need to offset these for historical reference. The purpose of the historical offset is best exemplified, for example, with an intraday strategy involving daily breakouts. Let's entertain going long on a break to a new daily high. We would not know that in real time so we need to reference the previous bars close for BACKTESTING purposes, otherwise we get "lookahead bias". There is no shortage of strategies unintentionally employing this bias out there (I'm sure you have come across them with their unrealistic results).
There is no worry of repainting with the MTF security function included within this script, nor will it offset for something involving lookahead bias. I encourage those that are playing with the code or perhaps writing strategies of their own to borrow the functions within. There is also a function that will return the 10 MA variable selection - yours to keep.
With all that in mind, I wanted a practical script that is easily deployable in everyday trading for the average trader that gives the user a firm grip on their trading steering wheel equipped with the feel of the road. Incorporating several MA's of differing times with the RSI heatmap gives a good visual reference and feel to your trading environment, while offering a level of customization that will fit an individuals personal trading style. The RSI heatmap gradient is per percentage between 30 and 70 and your 2 colors - anything outside of those levels gives you the vibrant bias color
Below I walk through 2 examples of live trades scenarios I made using the mindset the script offers.
The Trade
LONG IZEA
Timeframe: 4hr chart
- 3 Tilson MA's of varying length are deployed at varying intraday time frames
- A bullish pattern in an uptrend offers a possible trade allowing entry from a low risk point from the pattern low
- See the chart for notes and observations using the script
- Notice how the heatmap brightens up as price extends far away from the averages - your risk has elevated for a new position
- Notice the heatmap cool off while price action consolidates sideways
The Trade
SHORT BTCUSDT
Timeframe: 4hr chart
- 3 EMAs are employed - same length (50), with 3 successive timeframe resolutions
- A downtrend is formed with a sharp move to stack the EMAs into layers
- A pull back opportunity presents itself in bearish consolidation
- Notice a Doji star at resistance establishing a swing high as RSI cools off into the EMA dynamic resistance for entry
- An '"equal legs" measured move can be used for a trade target with a stop out above the swing high.
- Again, take note of distance from EMA's, the heatmap in combination with trend development surrounding the MA's
These were just two ideas to show you an example of how to implement some strategy into your trading and to get some interesting use from the indicator. Hope you enjoyed the read and happy trading.
Strategies
Hullk Autobot
HULLK AUTOBOT
• Long entry positions
• Profit targets
• Stop loss targets
Description
The Fast Signal Line is an extremely fast and smooth moving average indicator, designed to eliminate
the lag typically associated with traditional moving average indicators.
When the price is trending upward the Fast Signal Line is colored light grey then turns orange when
price is trending downward.
How to Trade
It is good practice to assess multiple timeframes to ensure you are mindful of the larger picture. The
15 minute and 4-hour charts are worthy of note.
In addition to displaying the current macro trend, the Fast Signal Line can also be used for judging
entries and exits from trades.
Aggressive traders may choose to trade based on the first touch of the Fast Signal Line whereas
conservative traders may wait for the signal line to be broken and established as a line of support or
resistance before taking action.
Indicator Configuration
The Fast Signal Line’s display and colors can be changed by modifying the ‘Fast Signal’ options in
the indicator’s style settings;
Volume Line
Description
The Volume Line uses short-term historic volume data to determine the balance between demand
and supply.
When volume is supporting price the Volume Line is colored yellow then turns red when the volume is
rejecting the price.
How to Trade
While the Volume Line can indicate support and resistance levels, it is best used to confirm bias
when using the Fast Trend Line indicator to enter or exit trades and can also be used by traders for
stop-loss or take profit entries.
Indicator Configuration
The Volume Line’s display and colors can be changed by modifying the ‘Volume’ options in the
indicator’s style settings;
Trend Line
Description
The Trend Line is a Weighted Moving Average indicator based on a fixed period and is used to
identify the current trend of the market.
When supporting the price, the Trend Line is colored green then turns red when rejecting the price.
How to Trade
Timeframes of 4H and above are best used to determine the current trends, while shorter timeframes
can be used for entering and exiting trades when the trendline is turning in the relevant direction.
Indicator Configuration
The Trend Line’s display and colors can be changed by modifying the ‘Volume’ options in the
indicator’s style settings;
Whales Volume Line
Description
The Whales Volume Line uses long-term historic volume data to determine the balance between
demand and supply dictated by large/institutional traders in the market.
When volume is supporting price the Volume Line is colored yellow then turns red when the volume is
rejecting the price.
How to Trade
While the Whale Volume Line can indicate support and resistance levels, it is best used to confirm
bias when using the Fast Trend Line indicator to enter or exit trades and can also be used by traders
for stop loss or take profit entries.
Indicator Configuration
The Whales Volume Line’s display and colors can be changed by modifying the ‘Whales Volume’
options in the indicator’s style settings;
Trendline Direction Line
Description
The Direction Line is a Weighted Moving Average indicator based on a longer period than the Trend
Line and is used to identify the current direction of the market.
The Direction Line indicator is colored purple when the market direction is up trending and red when
downtrend.
How to Trade
Timeframes of 4H and above are best used to determine current trend, while shorter timeframes
can be used for entering and exiting trades when the trendline is turning in the relevant direction.
Indicator Configuration
The Trendline Direction’s display and colors can be changed by modifying the ‘Trendline Direction’
options in the indicator’s style settings;
Channel Line
Description
The Channel Line is a Least Squares Moving Average indicator based on a fixed period and is used as
a crossover signal to identify bullish or bearish trends ahead of traditional simple or exponential
moving averages.
The Channel Line indicator is colored cyan when the market direction is up trending and red when
downtrend.
How to Trade
When the Channel Line changes to an uptrend along with a recovery in price, traders can use this as a
signal to enter a long position. If the signal changes to a downtrend along with a fall in price, traders
can use this to enter a short position.
Indicator Configuration
The Channel Line’s display and colors can be changed by modifying the ‘Channel’ options in the
indicator’s style settings;
Dip & Pop Signals
Description
Dip and Pop signals occur when the price is likely to make a counter-trend movement before continuing
its direction.
In a bullish trend, a Dip signal suggests that price will move down to test support before continuing,
whereas a Pop signal suggests that price will move up. In a bearish trend, a Pop signal suggests that
price will move up to test resistance before continuing, whereas a Dip signal would suggest price is
likely to continue the trend.
How to Trade
Dip and Pop signals should be used as notification for preparation rather than a call to action as the price
can move unpredictably during volatility.
Indicator Configuration
The Dip & Pop’s display and colors can be changed by modifying the ‘PoP’ & ‘DIP’ options in the
indicator’s style settings;
Entry & Exit Signals
Description
Entry and Exit Signals are indications of when to open and close trades but should be used in
conjunction with other indicators to interpret their meaning.
How to Trade
While Entry and Exit signals can be interpreted as simple long and short entries, their meaning does
change based on trend circumstance. An Entry signal is typically printed price is starting to see a
positive reaction after a drop.
When the Fast Signal, Trend, and Trend Direction lines are indicating an upward trend an Entry signal
signifies a good place to enter a long or exit a short position. However, if the lines are not suggesting
an upward trend then a long signal indicates that any long order should be exited as any new long
orders in this scenario are risky as you would be opening a position at resistance.
Likewise, when indicator lines are indicating a downward trend and an Exit signal is received this
signifies a good place to enter a short or exit a long position. However, if the signal is against the
trendlines then this is a riskier short into support.
Indicator Configuration
The Entry & Exit’s display and colors can be changed by modifying the ‘Entry’ & ‘Exit’ options in the
indicator’s style settings;
If you have any questions or are looking for access please send me a private message.
Thx for your time and support
DMT 369 DRAGRONFLY StudyDragonfly Study version plus statistics panel
Successful traders trade with a fixed plan and without emotion, but this a lot harder than many new traders think. Many never master this skill and suffer continual drawdowns on their accounts as they overtrade high leverage positions in volatile markets.
ĐΜŦ Autobot resolves this issue by taking the human element out of the equation, allowing full automation of trades using TradingView alerts to trigger your favourite trading bot, such as Alertatron or 3Commas.
Being a Trend Reversal Indicator based on Volatility & Average True Range , ĐΜŦ Autobot is designed to identify spots in the market that offer suitable scalp and swing trade opportunities.
Due to popular demand we have expanded our ĐΜŦ Autobot product line to include the new ĐΜŦ Autobot Dragonfly 3-6-9 Edition which combines DMT with 3-6-9 Vortex mathematics, our Titan indicator and a multi-ladder scalping strategy to ensure you maintain a preferable average entry when price action moves against your position.
Indicator View
It its default state the DMT Autobot Dragonfly indicator displays key signal information, such as:
• Support & resistance range lines
• Titan Body Small & Large Time Frame lines
• Long & Short entry positions
• Long & Short position ladders
• Profit targets
Dragonfly displays a range between resistance (upper line) and support (lower line) on the chart.
Once the price is granted support in the range the lower line will turn green. As price action develops it will make repeated attempts to test support. If support holds price will attempt to test the resistance line (red).
When resistance is broken and the price is above the upper line, the line will turn blue confirming the bullish momentum and provide a potential buy opportunity.
Price action will make attempts to test the upper line as support and will keep rising while support is granted.
Once support is lost the upper line will become red once more. As price action develops it will make repeated attempts to test resistance. If resistance holds, the price will attempt to test the support line (green).
When support is broken and the price goes below the lower line, the line will turn red confirming the bearish momentum and provide a potential selling opportunity.
Price action will make attempts to test the lower line as resistance and will keep dropping while resistance is granted.
Titan Body
The Titan Body Small & Large time frame options in the indicator add additional trendlines to the chart to provide further clarity and confirmation to the Support & Resistance range indication.
Once price is granted support by the Small Time Frame trend line the line will turn green. As price action develops it will make repeated attempts to test the Small Time Frame support. Once the price is below the Small Time Frame trend line , the line will turn red and can act as resistance in a trend reversal.
When price is granted support by the Large Time Frame trend line the line will turn cyan. As price action develops it will make repeated attempts to test the Large Time Frame support. Once the price is below the Large Time Frame trend line , the line will turn orange and can act as resistance in a trend reversal.
The Titan Body enabled and customized in the indicator’s style settings,
Alert indicators
DMT Autobot Dragonfly Edition generates signals that can be used to scalp trade a volatile asset.
Signals are enabled and customized in the indicator’s input settings Additional options can be found in the options, but it is recommended that these are left at the default, as shown below. The indicator generates many
Entry and Profit levels can be disabled or customized in the indicator’s style settings,
Tradingview Alerts
Using Tradingview alerts, DMT Autobot Dragonfly signals can be used to trigger a trading bot.
To trigger a long or short position, set the Tradingview Alert Condition to DMT 369 Dragonfly and select the long or short option.
It is recommended that long or short positions are configured to trigger Once Per Bar Close
Ladders can also be triggered using alerts. To trigger a ladder order, set the Tradingview Alert Condition to DMT 369 Dragonfly and select the appropriate Long or Short ADD option that is to be triggered by the relevant values defined in the indicator’s configuration.
It is recommended that ladder orders are configured to trigger Once Per Bar,
To trigger a take profit order, set the Tradingview Alert Condition to DMT 369 Dragonfly and select the Long or Short TP option that is to be triggered by the relevant values defined in the indicator’s configuration.
Take profit orders can be configured as Once Per Bar Close or Once Per Minute.
If you wish to trigger a take profit signal immediately when the indicator’s defined take profit value is achieved, then use the Once Per Bar option.
Selecting Once Per Bar Close to generate a take profit signal is a gamble as the candle may close far away from the defined profit target – positive or negative.
While stops can be used, they are not applicable to the recommended ladder strategy.
Ladder Strategy
The DMT Autobot Dragonfly indicator always turns an underwater position into a win by utilizing a ladder strategy.
By using the recommended defaults, the indicator will trigger ladder orders at 3%, 6% & 9% using increasing order sizes,
Order sizes increase exponentially to ensure a good average price is maintained. If you are not using DMT Autobot Dragonfly signals to trigger ladder or take profit orders, please ensure your trading bot is configured to recalculate the new ladder entry and profit target based on the new average position entry price as each ladder is filled.
If you are using DMT Autobot Dragonfly on a leveraged asset, please ensure the leverage position is configured suitably so that your position is not liquidated if the price rapidly moves against you.
If u are looking for more information or access to the script please private msg me in trading view chat thx for support
Price Action ChannelsHere are the brand new Price Action Channels.
As time passes and the portfolio grows not only in volume but in assets managed, I have found out that what's needed from technical analysis can't occupy so much time in decision making. Why? I hope you take into consideration other critical variables that affect the market, such as fundamentals, market sentiment, news, the world economy, and so on. Thus, I want to make obvious TA is not supposed to give you miracle formulas. In my investments, technicals count for about 33% of my decision formula.
Now about the indicator.
I'm a big fan of simplicity, and the fact is, everything is numbers and their universal rules.
So the approach we take is entirely following rules of statistics, taking into consideration the maximum amount of data to quantify and qualify moves(changes in price towards a single direction).
Once those moves are defined, we measure their average size, which is the average price range in one direction.
After that, we qualify them by using frequencies and figuring out how often each move happens, let's say:
Asset X, 10% of the times when it moves upwards it's +1%
Asset X, 14% of the times when it moves upwards it's +1,1%
Asset X, 21% of the times when it moves upwards it's +1.3%
Asset X, 25% of the times when it moves upwards it's +1.5%
Asset X, 15% of the times when it moves upwards it's +1.6%
Asset X, 10% of the times when it moves upwards it's +1,7%
Asset X, 5% of the times when it moves upwards it's +2%
With that data, we establish the size of the range and the most reasonable boundaries and thresholds.
This is meant for channels. We consider there are 3 market conditions: Channels(Trending), Sideways, Spikes(abnormal price changes).
So if you try to apply this indicator for huge movements, like news related pumps and such it won't work as it's supposed, since our approach here is to define what's "normal", and such spikes are anomalies.
Sideway assets are doable but not advisable.
We plot all the numbers in a panel, so it's easily readable while trading, and you can fully control where it appears on your screen.
The indicator counts with following features in the Panel:
Channel Sampling Size: Short-term, Mid-term, Long-term
Risk Exposure: Minimum, Low, Modest, Medium, Moderate, High, Maximum
Filtered Price Action
Trading Assist
X & Y Panel Position
Study Strong.
Spectro™ M3 by Hypester [Beta Testing]Hang in there guys! Time to debug, config the new alarms, improve the coloring, and other small fixes.
Spectro is easier and stronger than ever.
Extraordinarily flexible and adjustable to ANY trading style.
RSI-RENKO Divine StrategyLive, non-repainting strategy using RENKO and RSI mixed together to multiple types of long and short positions.
- Features -
Live entry direction with trade warnings and alerts
Live trade building buy and sell limits (for buy/sell limits)
Entry location icons as well as pyramid entries (to add to existing position)
Swing trades that keep you in the trade for the maximum possible profit
1 scalp target based on the RSI settings and entry location
Dynamic trailing stop for swings and scalps
Alert conditions for every update and condition change of the strategy (Provided by indicator study)
4 pre-built color themes, including candlestick coloring
This script is used solely for alerts to the RSI-RENKO Divine Strategy , because Trading View still after 3 years of requesting does not provide the ability to use alert conditions inside a strategy script, only an indicator script. This strategy should be used to backtest your settings. Beyond alerts and strategy inputs, the strategy and indicator are identical.
Great Expectations [LucF]Great Expectations helps traders answer the question: What is possible? It is a powerful question, yet exploration of the unknown always entails risk. A more complete set of questions better suited to traders could be:
What opportunity exists from any given point on a chart?
What portion of this opportunity can be realistically captured?
What risk will be incurred in trying to do so, and how long will it take?
Great Expectations is the result of an exploration of these questions. It is a trade simulator that generates visual and quantitative information to help strategy modelers visually identify and analyse areas of optimal expectation on charts, whether they are designing automated or discretionary strategies.
WARNING: Great Expectations is NOT an indicator that helps determine the current state of a market. It works by looking at points in the past from which the future is already known. It uses one definition of repainting extensively (i.e. it goes back in the past to print information that could not have been know at the time). Repainting understood that way is in fact almost all the indicator does! —albeit for what I hope is a noble cause. The indicator is of no use whatsoever in analyzing markets in real-time. If you do not understand what it does, please stay away!
This is an indicator—not a strategy that uses TradingView’s backtesting engine. It works by simulating trades, not unlike a backtest, but with the crucial difference that it assumes a trade (either long or short) is entered on all bars in the historic sample. It walks forward from each bar and determines possible outcomes, gathering individual trade statistics that in turn generate precious global statistics from all outcomes tested on the chart.
Great Expectations provides numbers summarizing trade results on all simulations run from the chart. Those numbers cannot be compared to backtest-produced numbers since all non-filtered bars are examined, even if an entry was taken on the bar immediately preceding the current one, which never happens in a backtest. This peculiarity does NOT invalidate Great Expectations calculations; it just entails that results be considered under a different light. Provided they are evaluated within the indicator’s context, they can be useful—sometimes even more than backtesting results, e.g. in evaluating the impact of parameter-fitting or variations in entry, exit or filtering strats.
Traders and strategy modelers are creatures of hope often suffering from blurred vision; my hope is that Great Expectations will help them appraise the validity of their setup and strat intuitions in a realistic fashion, preventing confirmation bias from obstructing perspective—and great expectations from turning into financial great deceptions.
USE CASES
You’ve identified what looks like a promising setup on other indicators. You load Great Expectations on the chart and evaluate if its high-expectation areas match locations where your setup’s conditions occur. Unless today is your lucky day, chances are the indicator will help you realize your setup is not as promising as you had hoped.
You want to get a rough estimate of the optimal trade duration for a chart and you don’t mind using the entry and exit strategies provided with the indicator. You use the trade length readouts of the indicator.
You’re experimenting with a new stop strategy and want to know how long it will keep you in trades, on average. You integrate your stop strategy in the indicator’s code and look at the average trade length it produces and the TST ratio to evaluate its performance.
You have put together your own entry and exit criteria and are looking for a filter that will help you improve backtesting results. You visually ascertain the suitability of your filter by looking at its results on the charts with great Expectations, to see if your filter is choosing its areas correctly.
You have a strategy that shows backtested trades on your chart. Great Expectations can help you evaluate how well your strategy is benefitting from high-opportunity areas while avoiding poor expectation spots.
You want more complete statistics on your set of strategies than what backtesting will provide. You use Great Expectations, knowing that it tests all bars in the sample that correspond to your criteria, as opposed to backtesting results which are limited to a subset of all possible entries.
You want to fool your friends into thinking you’ve designed the holy grail of indicators, something that identifies optimal opportunities on any chart; you show them the P&L cloud.
FEATURES
For one trade
At any given point on the chart, assuming a trade is entered there, Great Expectations shows you information specific to that trade simulation both on the chart and in the Data Window.
The chart can display:
the P & L Cloud which shows whether the trade ended profitably or not, and by how much,
the Opportunity & Risk Cloud which the maximum opportunity and risk the simulation encountered. When superimposed over the P & L cloud, you will see what I call the managed opportunity and risk, i.e the portion of maximum opportunity that was captured and the portion of the maximum risk that was incurred,
the target and if it was reached,
a background that uses a gradient to show different levels of trade length, P&L or how frequently the target was reached during simulation.
The Data Window displays more than 40 values on individual trades and global results. For any given trade you will know:
Entry/Exit levels, including slippage impact,
It’s outcome and duration,
P/L achieved,
The fraction of the maximum opportunity/risk managed by the trade.
For all trades
After going through all the possible trades on the chart, the indicator will provide you with a rare view of all outcomes expressed with the P&L cloud, which allows us to instantly see the most/least profitable areas of a chart using trade data as support, while also showing its relationship with the opportunity/risk encountered during the simulation. The difference between the two clouds is the managed opportunity and risk.
The Data Window will present you with numbers which we will go through later. Some of them are: average stop size, P/L, win rate, % opportunity managed, trade lengths for different types of trade outcomes and the TST (Target:Stop Travel) ratio.
Let’s see Great Expectations in action… and remember to open your Data Window!
INPUTS
Trade direction : You must first choose if you wish to look at long or short trades. Because of the way the indicator works and the amount of visual information on the chart, it is only practical to look at one type of trades at a time. The default is Longs.
Maximum trade Length (MaxL) : This is the maximum walk forward distance the simulator will go in analyzing outcomes from any given point in the past. It also determines the size of the dead zone among the chart’s last bars. A red background line identifies the beginning of the dead zone for which not enough bars have elapsed to analyze outcomes for the maximum trade length defined. If an ATR-based entry stop is used, that length is added to the wait time before beginning simulations, so that the first entry starts with a clean ATR value. On a sample of around 16000 bars, my tests show that the indicator runs into server errors at lengths of around 290, i.e. having completed ~4,6M simulation loop iterations. That is way too high a length anyways; 100 will usually be amply enough to ring out all the possibilities out of a simulation, and on shorter time frames, 30 can be enough. While making it unduly small will prevent simulations of expressing the market’s potential, the less you use, the faster the indicator will run. The default is 40.
Unrealized P&L base at End of Trade (EOT) : When a simulation ends and the trade is still open, we calculate unrealized P&L from an exit order executed from either the last in-trade stop on the previous bar, or the close of the last bar. You can readily see the impact of this selection on the chart, with the P&L cloud. The default is on the close.
Display : The check box besides the title does nothing.
Show target : Shows a green line displaying the trade’s target expressed as a multiple of X, i.e. the amplitude of the entry stop. I call this value “X” and use it as a unit to express profit and loss on a trade (some call it “R”). The line is highlighted for trades where the close reached the target during the trade, whether the trade ended in profit or loss. This is also where you specify the multiple of X you wish to use in calculating targets. The multiple is used even if targets are not displayed.
Show P&L Cloud : The cloud allows traders to see right away the profitable areas of the chart. The only line printed with the cloud is the “end of trade line” (EOT). The EOT line is the only way one can see the level where a trade ended on the chart (in the Data Window you can see it as the “Exit Fill” value). The EOT level for the trade determines if the trade ended in a profit or a loss. Its value represents one of the following:
- fill from order executed at close of bar where stop is breached during trade (which produces “Realized P/L”),
- simulation of a fill pseudo-fill at the user-defined EOT level (last close or stop level) if the trade runs its course through MaxL bars without getting stopped (producing Unrealized P/L).
The EOT line and the cloud fill print in green when the trade’s outcome is profitable and in red when it is not. If the trade was closed after breaching the stop, the line appears brighter.
Show Opportunity&Risk Cloud : Displays the maximum opportunity/risk that was present during the trade, i.e. the maximum and minimum prices reached.
Background Color Scheme : Allows you to choose between 3 different color schemes for the background gradients, to accommodate different types of chart background/candles. Select “None” if you don’t want a background.
Background source : Determines what value will be used to generate the different intensities of the gradient. You can choose trade length (brighter is shorter), Trade P&L (brighter is higher) or the number of times the target was reached during simulation (brighter is higher). The default is Trade Length.
Entry strat : The check box besides the title does nothing. The default strat is All bars, meaning a trade will be simulated from all bars not excluded by the filters where a MaxL bars future exists. For fun, I’ve included a pseudo-random entry strat (an indirect way of changing the seed is to vary the starting date of the simulation).
Show Filter State : Displays areas where the combination of filters you have selected are allowing entries. Filtering occurs as per your selection(s), whether the state is displayed or not. The effect of multiple selections is additive. The filters are:
1. Bar direction: Longs will only be entered if close>open and vice versa.
2. Rising Volume: Applies to both long and shorts.
3. Rising/falling MA of the length you choose over the number of bars you choose.
4. Custom indicator: You can feed your own filtering signal through this from another indicator. It must produce a signal of 1 to allow long entries and 0 to allow shorts.
Show Entry Stops :
1. Multiple of user-defined length ATR.
2. Fixed percentage.
3. Fixed value.
All entry stops are calculated using the entry fill price as a reference. The fill price is calculated from the current bar’s open, to which slippage is added if configured. This simulates the case where the strategy issued the entry signal on the previous bar for it to be executed at the next bar’s open.
The entry stop remains active until the in-trade stop becomes the more aggressive of the two stops. From then on, the entry stop will be ignored, unless a bar close breaches the in-trade stop, in which case the stop will be reset with a new entry stop and the process repeats.
Show In-trade stops : Displays in bright red the selected in-trade stop (be sure to read the note in this section about them).
1. ATR multiple: added/subtracted from the average of the two previous bars minimum/maximum of open/close.
2. A trailing stop with a deviation expressed as a multiple of entry stop (X).
3. A fixed percentage trailing stop.
Trailing stops deviations are measured from the highest/lowest high/low reached during the trade.
Note: There is a twist with the in-trade stops. It’s that for any given bar, its in-trade stop can hold multiple values, as each successive pass of the advancing simulation loops goes over it from a different entry points. What is printed is the stop from the loop that ended on that bar, which may have nothing to do with other instances of the trade’s in-trade stop for the same bar when visited from other starting points in previous simulations. There is just no practical way to print all stop values that were used for any given bar. While the printed entry stops are the actual ones used on each bar, the in-trade stops shown are merely the last instance used among many.
Include Slippage : if checked, slippage will be added/subtracted from order price to yield the fill price. Slippage is in percentage. If you choose to include slippage in the simulations, remember to adjust it by considering the liquidity of the markets and the time frame you’ll be analyzing.
Include Fees : if checked, fees will be subtracted/added to both realized an unrealized trade profits/losses. Fees are in percentage. The default fees work well for crypto markets but will need adjusting for others—especially in Forex. Remember to modify them accordingly as they can have a major impact on results. Both fees and slippage are included to remind us of their importance, even if the global numbers produced by the indicator are not representative of a real trading scenario composed of sequential trades.
Date Range filtering : the usual. Just note that the checkbox has to be selected for date filtering to activate.
DATA WINDOW
Most of the information produced by this indicator is made available in the Data Window, which you bring up by using the icon below the Watchlist and Alerts buttons at the right of the TV UI. Here’s what’s there.
Some of the information presented in the Data Window is standard trade data; other values are not so standard; e. g. the notions of managed opportunity and risk and Target:Stop Travel ratio. The interplay between all the values provided by Great Expectations is inherently complex, even for a static set of entry/filter/exit strats. During the constant updating which the habitual process of progressive refinement in building strategies that is the lot of strategy modelers entails, another level of complexity is no doubt added to the analysis of this indicator’s values. While I don’t want to sound like Wolfram presenting A New Kind of Science , I do believe that if you are a serious strategy modeler and spend the time required to get used to using all the information this indicator makes available, you may find it useful.
Trade Information
Entry Order : This is the open of the bar where simulation starts. We suppose that an entry signal was generated at the previous bar.
Entry Fill (including slip.) : The actual entry price, including slippage. This is the base price from which other values will be calculated.
Exit Order : When a stop is breached, an exit order is executed from the close of the bar that breached the stop. While there is no “In-trade stop” value included in the Data Window (other than the End of trade Stop previously discussed), this “Exit Order” value is how we can know the level where the trade was stopped during the simulation. The “Trade Length” value will then show the bar where the stop was breached.
Exit Fill (including slip.) : When the exit order is simulated, slippage is added to the order level to create the fill.
Chart: Target : This is the target calculated at the beginning of the simulation. This value also appear on the chart in teal. It is controlled by the multiple of X defined under the “Show Target” checkbox in the Inputs.
Chart: Entry Stop : This value also appears on the chart (the red dots under points where a trade was simulated). Its value is controlled by the Entry Strat chosen in the Inputs.
X (% Fill, including Fees) and X (currency) : This is the stop’s amplitude (Entry Fill – Entry Stop) + Fees. It represents the risk incurred upon entry and will be used to express P&L. We will show R expressed in both a percentage of the Entry Fill level (this value), and currency (the next value). This value represents the risk in the risk:reward ratio and is considered to be a unit of 1 so that RR can be expressed as a single value (i.e. “2” actually meaning “1:2”).
Trade Length : If trade was stopped, it’s the number of bars elapsed until then. The trade is then considered “Closed”. If the trade ends without being stopped (there is no profit-taking strat implemented, so the stop is the only exit strat), then the trade is “Open”, the length is MaxL and it will show in orange. Otherwise the value will print in green/red to reflect if the trade is winning/losing.
P&L (X) : The P&L of the trade, expressed as a multiple of X, which takes into account fees paid at entry and exit. Given our default target setting at 2 units of “X”, a trade that closes at its target will have produced a P&L of +2.0, i.e. twice the value of X (not counting fees paid at exit ). A trade that gets stopped late 50% further that the entry stop’s level will produce a P&L of -1.5X.
P&L (currency, including Fees) : same value as above, but expressed in currency.
Target first reached at bar : If price closed above the target during the trade (even if it occurs after the trade was stopped), this will show when. This value will be used in calculating our TST ratio.
Times Stop/Target reached in sim. : Includes all occurrences during the complete simulation loop.
Opportunity (X) : The highest/lowest price reached during a simulation, i.e. the maximum opportunity encountered, whether the trade was previously stopped or not, expressed as a multiple of X.
Risk (X) : The lowest/highest price reached during a simulation, i.e. the maximum risk encountered, whether the trade was previously stopped or not, expressed as a multiple of X.
Risk:Opportunity : The greater this ratio, the greater Opportunity is, compared to Risk.
Managed Opportunity (%) : The portion of Opportunity that was captured by the highest/low stop position, even if it occurred after a previous stop closed the trade.
Managed Risk (%) : The portion of risk that was protected by the lowest/highest stop position, even if it occurred after a previous stop closed the trade. When this value is greater than 100%, it means the trade’s stop is protecting more than the maximum risk, which is frequent. You will, however, never see close to those values for the Managed Opportunity value, since the stop would have to be higher than the Maximum opportunity. It is much easier to alleviate the risk than it is to lock in profits.
Managed Risk:Opportunity : The ratio of the two preceding values.
Managed Opp. vs. Risk : The Managed Opportunity minus the Managed Risk. When it is negative, which is most often is, it means your strat is protecting a greater portion of the risk than it captures opportunity.
Global Numbers
Win Rate(%) : Percentage of winning trades over all entries. Open trades are considered winning if their last stop/close (as per user selection) locks in profits.
Avg X%, Avg X (currency) : Averages of previously described values:.
Avg Profitability/Trade (APPT) : This measures expectation using: Average Profitability Per Trade = (Probability of Win × Average Win) − (Probability of Loss × Average Loss) . It quantifies the average expectation/trade, which RR alone can’t do, as the probabilities of each outcome (win/lose) must also be used to calculate expectancy. The APPT combine the RR with the win rate to yield the true expectancy of a strategy. In my usual way of expressing risk with X, APPT is the equivalent of the average P&L per trade expressed in X. An APPT of -1.5 means that we lose on average 1.5X/trade.
Equity (X), Equity (currency) : The cumulative result of all trade outcomes, expressed as a multiple of X. Multiplied by the Average X in currency, this yields the Equity in currency.
Risk:Opportunity, Managed Risk:Opportunity, Managed Opp. vs. Risk : The global values of the ones previously described.
Avg Trade Length (TL) : One of the most important values derived by going through all the simulations. Again, it is composed of either the length of stopped trades, or MaxL when the trade isn’t stopped (open). This value can help systems modelers shape the characteristics of the components they use to build their strategies.
Avg Closed Win TL and Avg Closed Lose TL : The average lengths of winning/losing trades that were stopped.
Target reached? Avg bars to Stop and Target reached? Avg bars to Target : For the trades where the target was reached at some point in the simulation, the number of bars to the first point where the stop was breached and where the target was reached, respectively. These two values are used to calculate the next value.
TST (Target:Stop Travel Ratio) : This tracks the ratio between the two preceding values (Bars to first stop/Bars to first target), but only for trades where the target was reached somewhere in the loop. A ratio of 2 means targets are reached twice as fast as stops.
The next values of this section are counts or percentages and are self-explanatory.
Chart Plots
Contains chart plots of values already describes.
NOTES
Optimization/Overfitting: There is a fine line between optimizing and overfitting. Tools like this indicator can lead unsuspecting modelers down a path of overfitting that often turns strategies into over-specialized beasts that do not perform elegantly when confronted to the real-world. Proven testing strategies like walk forward analysis will go a long way in helping modelers alleviate this risk.
Input tuning: Because the results generated by the indicator will vary with the parameters used in the active entry, filtering and exit strats, it’s important to realize that although it may be fun at first, just slapping the default settings on a chart and time frame will not yield optimal nor reliable results. While using ATR as often as possible (as I do in this indicator) is a good way to make strat parametrization adaptable, it is not a foolproof solution.
There is no data for the last MaxL bars of the chart, since not enough trade future has elapsed to run a simulation from MaxL bars back.
Modifying the code: I have tried to structure the code modularly, even if that entails a larger code base, so that you can adapt it to your needs. I’ve included a few token components in each of the placeholders designed for entry strategies, filters, entry stops and in-trade stops. This will hopefully make it easier to add your own. In the same spirit, I have also commented liberally.
You will find in the code many instances of standard trade management tasks that can be lifted to code TV strategies where, as I do in mine, you manage everything yourself and don’t rely on built-in Pine strategy functions to act on your trades.
Enjoy!
THANKS
To @scarf who showed me how plotchar() could be used to plot values without ruining scale.
To @glaz for the suggestion to include a Chandelier stop strat; I will.
To @simpelyfe for the idea of using an indicator input for the filters (if some day TV lets us use more than one, it will be useful in other modules of the indicator).
To @RicardoSantos for the random generator used in the random entry strat.
To all scripters publishing open source on TradingView; their code is the best way to learn.
To my trading buddies Irving and Bruno; who showed me way back how pro traders get it done.
Combo Strategy 123 Reversal and ADXR This is combo strategies for get
a cumulative signal. Result signal will return 1 if two strategies
is long, -1 if all strategies is short and 0 if signals of strategies is not equal.
First strategy
This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50.
The strategy sells at market, if close price is lower than the previous close price
during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
Secon strategy
The Average Directional Movement Index Rating (ADXR) measures the strength
of the Average Directional Movement Index (ADX). It's calculated by taking
the average of the current ADX and the ADX from one time period before
(time periods can vary, but the most typical period used is 14 days).
Like the ADX, the ADXR ranges from values of 0 to 100 and reflects strengthening
and weakening trends. However, because it represents an average of ADX, values
don't fluctuate as dramatically and some analysts believe the indicator helps
better display trends in volatile markets.
WARNING:
- For purpose educate only
- This script to change bars colors.
Combo Strategies 123 Reversal and Accelerator Oscillator (AC) This is combo strategies for get
a cumulative signal. Result signal will return 1 if two strategies
is long, -1 if all strategies is short and 0 if signals of strategies is not equal.
First strategy
This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50.
The strategy sells at market, if close price is lower than the previous close price
during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
Second strategy
The Accelerator Oscillator has been developed by Bill Williams
as the development of the Awesome Oscillator. It represents the
difference between the Awesome Oscillator and the 5-period moving
average, and as such it shows the speed of change of the Awesome
Oscillator, which can be useful to find trend reversals before the
Awesome Oscillator does.
WARNING:
- This script to change bars colors.
Combo Strategies 123 Reversal and Absolute Price Oscillator This is combo strategies for get
a cumulative signal. Result signal will return 1 if two strategies
is long, -1 if all strategies is short and 0 if signals of strategies is not equal.
First strategy
This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50.
The strategy sells at market, if close price is lower than the previous close price
during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
Secon strategy
The Absolute Price Oscillator displays the difference between two exponential
moving averages of a security's price and is expressed as an absolute value.
How this indicator works
APO crossing above zero is considered bullish, while crossing below zero is bearish.
A positive indicator value indicates an upward movement, while negative readings
signal a downward trend.
Divergences form when a new high or low in price is not confirmed by the Absolute Price
Oscillator (APO). A bullish divergence forms when price make a lower low, but the APO
forms a higher low. This indicates less downward momentum that could foreshadow a bullish
reversal. A bearish divergence forms when price makes a higher high, but the APO forms a
lower high. This shows less upward momentum that could foreshadow a bearish reversal.
WARNING:
- This script to change bars colors.
Combo Strategies 123 Reversal and 2/20 EMA This is combo strategies for get
a cumulative signal. Result signal will return 1 if two strategies
is long, -1 if all strategies is short and 0 if signals of strategies is not equal.
First strategy
This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50.
The strategy sells at market, if close price is lower than the previous close price
during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
Secon strategy
This indicator plots 2/20 exponential moving average. For the Mov
Avg X 2/20 Indicator, the EMA bar will be painted when the Alert criteria is met.
Please, use it only for learning or paper trading. Do not for real trading.
4Hours optimized CARHey!
I have been working on this script the lasts days, it's a collaboration with an uruguayan mate.
#####IMPORTANT#####
* It has been optimized for 4h charts, use it on other at your own risk.
* Always use Stop Loss, since it might give false signals after a long trend.
* I'm still working on it, I'm going to add candlestick pattern filtering.
Thanks for your support, greetings.
WhipsawThe Whipsaw indicator shows the overall slope of the market with a proprietary modified slope formula for determining directional bias.
iPyra◬_theMegalodonTHEMEGALODON
theMegalodon looks for the institutional finger prints, the whales or the big boys.
theMegalodon is really simple to use.
theMegalodon combines the 8 different unique indicators, that each have almost perfect success rate.
theMegalodon works with any kind of market state, any kind of trading, and any kind of asset.
theMegalodon has more features than any other indicator in the market: Out of 9 working indicators, we have 3 momentum, 3 price and 3 volume indicators showing you the best signals.
--------------------------------------
theMegalodon is designed for us, the small fishes in the ocean, the millennials, the college students. This will basically makes us the new Megalodons(whale hunters).
All you have to do is:
1- Look for green or red arrows.
2- Look for orange or red candles.
3- Repeat
--------------------------------------
TECHNICAL DETAILS
Some boring info that you don't necessarily need to know.
1- Draws fibonacci retracement (s)' levels depending on your preferred look back period (Default: 365 and 120)
i) Can draw 2 fibs on the same chart. Can reverse the fib levels. Even, add an additional fib level to look for.
ii) Automatic fill function for a Reload Zone inside of a Reload Zone. *61.8% levels to 100% levels or 0% levels
2- Changes the color of the candle when strong buy(orange) or strong sell(red). Draws arrows on the chart for long and short positions.
i) Analyses and Combines
a) Price
b) Momentum
c) Volume
3- Prints out the indicators that are either giving Short or Long signs on the right corner.
4- The closer the unclebo indicator(click enable UncleBo) gets to the All time high, the better buy it is.
i) Same with the other way around. The closer it gets to the 0, the better sell it is.
5- Draws Bollinger Bands on the chart and shows where to buy or sell
6-The indicator is designed to be used in Daily time frame for the best calls to short or long.
--------------------------------------------------
iPyra◬
Enlighten others
Kovach ChandeThe Kovach Chande indicator measures instantaneous buying pressure. It features advanced signal processing algorithms to minimize lag and filter the effects of volatility. Consider using it with the Kovach OBV indicator and Kovach Momentum indicator. When used with the Kovach OBV, divergences may be used to isolate entry points.
Kovach MomentumThe Kovach Momentum indicator averages instantaneous momentum, while employing advanced signal processing algorithms to minimize lag and filter the effects of volatility. Consider using it with the Kovach Chande indicator and Kovach OBV indicator.
UCS_S_Stochastic Pop and Drop StrategyMy Contribution to Jake Bernstein Educational Series, Initiated by Chris Moody.
The Stochastic Pop was developed by Jake Bernstein and modified by David Steckler. Bernstein's original Stochastic Pop is a trading strategy that identifies price pops when the Stochastic Oscillator surges above 80. Steckler modified this strategy by adding conditional filters using the Average Directional Index (ADX) and the weekly Stochastic Oscillator.
Modifications
1. Weekly Stochastic Oscillator for Trading Bias = 5* Daily Stochastic
2. Optional Volume Confirmation, Custom Average Volume Length
Future Plans
1. Adding Triggers for Entry, Stops and Target. - This will be release when we have ability to code the complete Strategy. Although it can be done with the current pinescript options, it would be far more easier if we have strategy ability.
Link for Educational Purpose
stockcharts.com
-
Good Luck Trading
UCSgears
TSM Donchian Moving Average System_by_ucsgearsThis is just the raw code for the system / strategies.
Will Complete this when I get more time.
Green - Setup Long
Red - Setup Short
UCS_S_Steve Primo - Strategy #5 (FOREX Only)Here we have another Steve Primo Strategy ( #5)
This is a short term, trend continuation strategy, Recommend using this on 30 Mins + time frames.
I have added few things.
1. PET-D filter, to identify the trend along with the SMA 50. ----> Setup in line with PET-D (EMA,15) trend confirmation.
2. Option for Harami Candle identification (may not be Steve Primo Setup), There is no evidence on any of the videos listed below for Harami or other candlesticks pattern.
Future - Planned to add other candle patterns.
Videos from Youtube
1. www.youtube.com -
2. www.youtube.com - Hints disclosed on this video.
3. www.youtube.com - Claims this is his GO TO strategy for FOREX.
4. www.youtube.com - Complete Free Lesson.
Note - I did not buy this Strategy, I do not own in any way shape or form of this strategy as presented in the videos, The Strategy I am posting is my interpretation based on Steve Primo's videos listed above and few more on youtube.
Good Luck folks.