INVITE-ONLY SCRIPT

Broadview Economic Studio

Cập nhật
Thank you for taking the time to read this description. We'll be taking a look at the Broadview Economic Studio. This has been a work-in-progress for years and is a very powerful tool for planning trades with complex volume scaling strategies. We will be talking about many indicators and types of indicators used in the public domain, but it is NOT recommended to reverse engineer our scripts as there is quite a bit of logic in the code that works to make each common approach entirely unique. So although you may understand quite a bit about oscillators, the way they work with the rest of the logic within the script may change the way you know them to work from elsewhere.

In the chart snapshot above you'll see a mild configuration where I only had to tweak a few settings. Commissions are set to 0.1%, starting capital is set to $10,000, and slippage is off. In my tests orders came through less than a penny off. Generally speaking, there are really only two situations in which you should be concerned about slippage. The first is if you trade really low timeframe charts like the 1 second. This tool, while it works for any timeframe, is programmed on the 45 minute timeframe and works best there. The other situation in which you should be prepared for slippage is if you're using extremely high volume trades in the hundreds of thousands or millions depending on the market cap and liquidity of the asset you're studying. Large orders like that have to be split up among several deals and that can cause slippage.

There are 31 primary inputs for users to tweak. Each input is grouped within a module called a Suite. Each suite has a focus like filtering signals or strategically allocating volume according to your strategy. Everything starts with the Origin Suite. The Origin Suite is a group of inputs that generates Tops & Bottoms from price action. It uses math like Rate of Change, where one can specify a required rate of change before an Origin signal can be made, and users can specify how much lower in price a bar must be compared to previous bars. So with the Origin Suite, users can control how often they want to see originating signals and under what conditions they can appear.

We used to use WVF and CVI to produce top and bottom signals, but our Origin Suite works much better for systematically generating profitable configurations.

The triangles you see on the chart represent markers, potential signals, or Prop Signals as they're referred to within the script. The blue arrows represent trades where Prop Signals were allowed to pass as true long signals. There are two ways to ignore Prop Signals. You can filter the markers entirely, or you can reduce their volume scaling to the minimum which is usually $10 for most exchanges. We're first going to be talking about some of the primary DCA inputs before we talk about the technology we use to filter and overload signals.

Here are some important features found within the script:

Base Orders
Safety Orders
Take Profits

Change-Based Volume Scaling
Ignoring Low or Medium Changes

Overloading
Filtering

Alert Messages w/ Volume Scaling

Let's walk through each of these features in more depth.

The Base Order is the initial Long position within a series. It comes in first and is followed by all of its Safety Orders. The Base Order is set to $25 within the script by default. Keeping the base order low allows one to reserve more of their capital for Safety Orders that are lower within a dip, and thus, lower the user's Position Average. The primary feature of this script is to help users plan their volume scaling strategically, and this is where we start. It's this kind of due diligence and effort in protecting trades that makes this script unique.

So we start with a low Base Order. Then, we follow with a lot of Safety Orders. Typically in DCA this is done in consistent time intervals and in consistent amounts. So in regular DCA one may invest the same amount bi-weekly on pay day. They use the financial instrument as a sort of savings and average their position over their consistent investments. This is not where the bleeding edge of DCA is today though. In modern Doller Cost Averaging, I would expect to see signals and volume scaling based on logic.. as opposed to being consistent intervals.

This sets up the explanation of the primary means of volume scaling within the script. Mathematically, we start with the net balance. This is your specified starting balance plus any wins or losses. Users specify what % of their Available Balance they would like to start with when volume scaling. This percent of capital is then multiplied by a Safety Order Multiplier. The safety order multiplier is made up of a number specified by the user, multiplied by the number of the Safety Order you're on. So user's can control this equation/algorithm and scale their investments as the number of Safety Orders increases and drops in price become more opportune.

The Take Profit within the script lets users specify their desired ROI from a series. So if a user sets a 60% take profit, the script will set a price from the position average that when reached will give the user a 60% ROI for the series including its Base Order and all its Safety Orders.

Before moving on, let's talk about the amazing internal reporting found in the script. When you zoom in on the blue arrows, you can see each trade is accompanied by some extremely helpful information. This is just another feature that makes this script unique, it is the feature that gives us accurate reporting and ultimately allows us to connect with TradingView's Strategy Tester in a way that provides instant backtests with good merit. With this reporting not only can users get reports and information on trades made on different assets with different configurations, but user's can perform a deep dive on each configuration and know exactly what was going on for each trade. The first number is the number of the safety order the script is on. Remember, this is used in the primary volume scaling math. The second number is the amount the script spent on the current trade. The third number denotes the cumulative spending for the series. The final number displays the script's available balance at that time. With these numbers, the TradingView Strategy Tester, and the List of Trades feature, users can practice as much due diligence as they need during their studies.

Let's move on to talking about my favorite suite within the script, the Volume Scaling Suite. Here there are two primary means of controlling volume scaling. Although, in the near future there will be more.

In this suite you'll find Change-Based Volume Scaling and Position Average Volume Scaling. Position Average Volume Scaling is quite easy to explain. This feature only allows signals to pass if they are lower in price than your base order. In this way, users can apply most of their capital to trades that lower their position average. Simply having the money in the market can boost profits, but having a lower Position Average is the entire reason we DCA. Change-Based Volume Scaling is quite a bit more complex.

In theory, one could argue that every moment is a great moment to buy. It's just that some moments are more opportune than others. So it's not about perfect signals as much as it's about proper volume scaling.

Change-Based Volume Scaling allows us to set rules that dictate how much volume scaling is used based on the asset's current delta, or Rate of Change.

Using CBVS, one can downscale capital applied to signals with a low ROC, or simply ignore them. So if a signal comes in and the price hasn't changed very much then you can automatically use less volume for the trade. One can do the same thing for medium changes, and the user can specify what quantifies as a low or medium change. Users can give extra volume to signals with a greater rate of change, or overload signals with a high rate of change! So the CBVS feature gives users the ability to allocate volume based on logic rooted in the asset's rate of change. If a signal has dropped a lot in price, then generally, it is deserving of more capital and that's what makes this feature unique and so powerful.

There are two kinds of Overloading found in the script. There's overloading from CBVS, and then overloading from the 4 signal filtering suites. There's an important difference to note before we move on. Overloading performed by CBVS is based on ignored signals. So if you ignore low or medium change signals, and you have CBVS Overloading on, the script will allocate more capital to High Change signals. When signals are ignored, they are downscaled to $10. Whereas with the filtering suites, if a signal is filtered the Prop Signal triangle marker is removed entirely. The overloading in that scenario is simply applied to signals that aren't filtered. The reason it's done this way is because allowing ignored signals to still come in, with the lowest volume scaling possible, keeps the Safety Order count rising which works in the volume scaling math. This math is intrinsic to getting capital deep within dips and crashes.

So in future versions we may allow ignored signals to be filtered out entirely but for the time being, simply scaling them down to the lowest possible amount is what produces the best and most consistent configurations.

Let's talk about filtering signals, and the overloading provided within each filtering suite.

ảnh chụp nhanh

Here you can see our Overbought & Oversold Heatmap V3. This is a unique indicator that takes 15 common oscillators and visualizes them in a way that clearly denotes confluence. Looking at this indicator makes it easer to read cycles and trends. It is quite common for investors to base their entire scripts on one or more of the oscillators found within the OBOS Heatmap V3. So the OBOS Heatmap V3 is an awesome way to ensure your signals follow an oversold trend! The orange represents an oscillator being oversold, while the yellow represents it being overbought. Generally, when an asset is oversold it is a better time to buy. One can filter signals based on this information and use the Heatmap's unique ability to quantify confluences. In this script users can set a sensitivity and that sets the number of oscillators that must be in agreement before a signal is allowed to pass.

Here are the oscillators found within the OBOS Heatmap:

*Please keep in mind that although some of these oscillators may have big names, the code and math in the script may work differently than you're used to. This is because the code and math is changed quite a bit, and the overall intended functionality of the OBOS Heatmap has a larger scope than any one indicator. It's also important to note that the lengths for these oscillators are set low and are meant to classify the individual signal as either overbought or oversold, and not the entire period. So while the OBOS Heatmap is awesome for trends and cycles, it's ultimately meant to classify individual price bars as either overbought or oversold according to a consensus.*

Relative Strength Index
Money Flow Index
Commodity Channel Index
Aroon Oscillator
Relative Volatility Index

Fast Stochastic Detrended Price Oscillator
Fast Stochastic Elders Force Index
Fast Stochastic Relative Strength Index
Fast Stochastic Relative Vigor Index
Fast Stochastic Klinger Oscillator
Fast Stochastic Awesome Oscillator
Fast Stochastic Ultimate Oscillator
Fast Stochastic Chande Momentum Oscillator
Fast Stochastic On Balance Volume Oscillator
Fast Stochastic Moving Average Convergence/Divergence

Each band of the Overbought & Oversold Heatmap represents an oscillator. When it's orange it's said to be oversold. When it's yellow it's said to be overbought. The indicator turns purple during trends and reversals where it is neither overbought nor oversold. It can differentiate between uptrends and downtrends with differing colors of purple, but the OBOS Heatmap is not used for trends or cycles in this script. It is used to quantify oversold confluence.

ảnh chụp nhanh

Let's talk about the Dominance Suite.

First note in the top portion of the screenshot above, you will see various colors in the script. It replaces the price line with something we call Price Flow bars. So when you add the script it's best to make the stock price line invisible in TV settings. The Price Flow Bars use a preset EMA to color price action as being in either a downward momentum or upward momentum. The triangular signals represent dark teal for the initial long marker within a series, dark green for long orders and long signals that convert into safety orders, and light green for safety orders. This is more logic that makes this script really unique. The dark green initial long marker signals are rarely seen. You can find them at the beginning of a new series of signals and they work to establish when a new series of signals should begin. The dark green signals actually denote a long base order opportunity, but if a series has already started then these signals are converted into Safety Orders. The Safety Orders then come in light green, and red for Prop Shorts. Prop Shorts work with Initial Longs to establish the start of a new series. More on that math I cannot tell.

In the bottom half of the screenshot is the Dominance Suite itself. It's another one of the four filtering suites found in the script. It is made up of 7 oscillators that work to classify a price bar as being controlled by either the bears or the bulls. If a price bar is controlled by the bears it is said to be a better investment. The Dominance Suite works by applying a moving average to the balance of power. This is the way TradingView has intended the balance of power to be used, and works quite nicely in classifying individual price bars as either bearish or bullish. It's not an overall trend indicator as much as it states whether a bar is mostly controlled by the bears or the bulls.

Here are the oscillators found within the Dominance Suite:

SMA of BOP
EMA of BOP
HMA of BOP
WMA of BOP
VWMA of BOP
TEMA of BOP
LSMA of BOP

Within the script, there is an input for a negative threshold. When each of these 7 oscillators is in confluence and below this set threshold, the Prop Long will be allowed to pass as a real trade.

Keep in mind that each filtering suite also has the option to overload signals.

So not only can you filter signals based on these suites but you can also apply additional volume scaling to signals that don't get filtered.

ảnh chụp nhanh

Here we have the True Oscillator. The True Oscillator is a brand new oscillator. It's similar to things like the RSI or DPO, but technically speaking it considers many more factors into its average than other oscillators. It considers balance of power, sentiment, volume, momentum, gravity, and places special-strategic weighting on price data based on whether it's opening, closing, high, or low. If you stack the True Oscillator up with the RSI you'll notice right away they look similar, but each movement is quite different. Overall the movements are more balanced, the individual bars are more consistent with price data, and the swings are more clearly pronounced while simultaneously having a better register of strength in momentum. We use this indicator to filter and overload signals, to trade according to momentum, and to provide a 16th independent oscillator that can check the OBOS Heatmap without having to be confluent.

The final filtering suite is based on Net Volume. It classifies signals as oversold when there is a significant negative trend in net volume. If Net Volume is under 0, and trends downward for either 3, 4, or 5 bars in a row then it will mark a signal as oversold and allow it to pass. Then, if overloading for this suite is turned on it will allocate more volume to signals it does not filter out.

There is a lot that can be said about this strategy. The primary takeaway though is that it's not just one strategy. It's a tool for everyone, to help them plan their approach to different assets in different market climates. This tool can help you study current market conditions. It can allow you to plan a strategic approach to market segments, and see how your strategy would fare if new market data performed similarly. It's not just one strategy, but more of a strategy printer.

The Origin Suite allows users to plan the positioning of their signals. The Overbought & Oversold Suite allows users to filter their signals based on whether or not they are oversold. The Dominance Suite allows users to filter signals based on whether the market is being controlled by the bears or the bulls. The True Oscillator gives users the ability to filter signals based on a deep and powerful momentum oscillator. The Net Volume Suite lets users filter signals based on volume trends. When signals are filtered, signals that pass, can be overloaded with additional volume scaling. Features like Change-Based Volume Scaling and Position Average Volume Scaling give users plenty of inputs to create complex volume scaling strategies. Common-sense DCA inputs allow users to scale into markets the way pros do.

The Broadview Economic Studio is a powerful tool for planning trades with complex volume scaling strategies.

Users can plan their approach to different kinds of markets. They can link the script with their bot or broker like 3Commas, and the script will automatically send the correct volume scaling through to the bot.

Thank you for your time, and for reading the description of the Broadview Economic Studio.
Phát hành các Ghi chú
Fixed overscaling bug that allowed the available balance to go into a negative on rare occasions. Fixed Position Average Scaling bug that continued to add $10 trades above the Base Order under certain conditions. Changed the windowing method to one that saves the dates as server-side inputs after creating alerts. Added windowing inputs that can narrow down to the second which is good for higher timeframe charts. Updated the color profile.
Phát hành các Ghi chú
Better aligned HFT profit reporting. Added Position Average Volume Scaling Suite (PAVS) which focuses on modifying volume-scaling-aggression, based on the ongoing Position Average (PA) of a series. Updated the True Oscillator to the newest algorithm. Re-added the Base Order (BO) in a way that allows users to work with non-USD quote assets. Added a Padding input which allows one to compensate for the random padding bots like 3Commas add to orders. Introduced fractional shares mode which truncates the scaled volume, and rounds it off to the last full number of contracts purchased. Added a "Full Ignore" mode which allows one to continue to count-scale Safety Orders (SO) yet virtually cancel the orders by using a 0 amount for volume scaling instead of the BO amount--the Padding helps persist the series. Reverted our windowing code to something that is saved server-side with TradingView, that way you can recall configs after setting up alerts (Just hover over the alert.). Changed the Percent for SO formula to make it less confusing to work with! Altered trades-on-chart reporting to be as eye-appealing as possible while also still being fully informative without truncation, as the decimals are needed to assess some assets. Updated the tooltips. Reformatted the settings layout. Cleaned up the code.
Phát hành các Ghi chú
Updated Chart Image: Config Not Tuned
Phát hành các Ghi chú
Updated Chart Image: Config Not Tuned
Phát hành các Ghi chú
Updated Chart Image: Config Not Tuned
Phát hành các Ghi chú
Updated Chart Image: Config Not Tuned
Phát hành các Ghi chú
Updated Chart Image: Config Not Tuned
Phát hành các Ghi chú
Fixed some group titles.
Phát hành các Ghi chú
Fixed "From Year" grouping.
Phát hành các Ghi chú
Made the internal reporting shown with the trades-on-chart more concise. It shows the number-count of the Safety Order within the series. Then the amount spent on that Safety Order. And finally your available balance at that point.
Phát hành các Ghi chú
Updated TP Reporting Algorithm, Added more decimal places to elements in the dashboard, also tested average slippage in 3C on 5m chart was 34 ticks (Found in the Properties Panel).
Phát hành các Ghi chú
Updated Config & Chart Image
Phát hành các Ghi chú
Fixed some decimal formatting in the dashboard.
Phát hành các Ghi chú
Stopped padding from being sent to 3C. 3C adds the padding. Reworked the Volume Scaling algorithm and made it less convoluted.
Phát hành các Ghi chú
Added Volume Scaling Accuracy Score (VSA Score). Added VS Signals
Phát hành các Ghi chú
Upgraded Change-Based Volume Scaling (CBVS) algorithm.
Phát hành các Ghi chú
Updated Version Number
Phát hành các Ghi chú
Made it so overloading from filtering only applies additional volume scaling to trades qualified as High Changes by the Change-Based Volume Scaling Suite. This allocates the additional volume to high-value signals rather than all signals across the board. Increased ALL base-weights from the Position Average Volume Scaling Suite, Change-Based Volume Scaling Suite, and Overloading from the Filtering Suites. I increased them many times over, so all adjustments made in the settings panel will feel more impactful. Reintroduced lengths for the ROC-based algorithms. I've found this allows users to smooth out their signals, and their volume-scaling. Instead of the ROC needing to be determined by the bar, it can be determined over the course of a set number of bars. Updated colors, style options, text, and tooltips.

Upgraded the VSA Score algorithm to be more useful. It also now includes a par, and a suggested percent for improvement. It's important to note these numbers are not universal and will vary in range from config to config.

Simply use the VSA Score to gauge the small volume scaling tweaks you make, especially as they pertain to the left & right positions of your scaled trades.
Phát hành các Ghi chú
Recalibrated the weights for CBVS, PAVS, and Overloading.
Phát hành các Ghi chú
Recalibrated weights, properly this time. Changed a few weight-distribution algorithms. Revamped the dashboard to include a Combined Weight pipeline. After pressing play on the Replay feature, the dashboard will keep track of what kind of overloading has happened. The Combined Weight, now shows all weight from PAVS, CBVS, and Overloading from the filtering suites. The Cumulative Spending, Position Average, and Available Balance figures have been grouped in a line without labels. The values underneath them, are the new highest weight in the last 300 bars, the Variance which makes a perfect aggression metric, and the lowest weight that has been used in the last 300 bars. The lowest weight will likely always be zero, until we introduce downscaling in later scripts.. and finally, TradingView describes Variance thusly "Variance is the expectation of the squared deviation of a series from its mean (ta.sma, and it informally measures how far a set of numbers are spread out from their mean.". So this displays the approximate deviation from the mean, of combined weights. As such, it works well as a gauge for how aggressive a script is being and has been. The pipeline of combined weights allow users to visualize the script's (ai's) aggression.
Phát hành các Ghi chú
Updated the Dashboard. The Combined Weight section now relies on two algorithms. The first is Variance minus the VWMA of Variance with a length of 200, the second is RMA of the Overloading Weight minus the VWMA of the RMA of Overloading Weight, with a length of 200. The third number is simply the highest Overloading Weight within the last 200 bars. So the first two numbers show how aggressive the script is being, and the highest Overloading Weight shows the current maximum volume scaling aggression. Also added Bars, and ROI per Bar.
Phát hành các Ghi chú
Updates to the dashboard adding better metrics that quickly detail a snapshot of the market and volume scaling.
Phát hành các Ghi chú
Updating Screenshot
Phát hành các Ghi chú
Updating OBV "k" feature on dashboard.
Phát hành các Ghi chú
Streamlined the looks.
Phát hành các Ghi chú
Updating Screenshot
Phát hành các Ghi chú
Deprecated
Phát hành các Ghi chú
Reinstated
3commasbotDCAMomentum Indicator (MOM)Portfolio managementpricetrendVolume Indicator

Tập lệnh chỉ hiển thị cho người được mời

Quyền truy cập vào tập lệnh này bị hạn chế đối với người dùng được tác giả ủy quyền và thường yêu cầu thanh toán. Bạn có thể thêm nó vào mục yêu thích của mình, nhưng bạn sẽ chỉ có thể sử dụng nó sau khi yêu cầu sự cho phép từ tác giả. Liên hệ IndicatorSavvy để thêm thông tin, hoặc làm theo hướng dẫn của tác giả bên dưới.

TradingView gợi ý bạn không trả tiền để sử dụng tập lệnh trừ khi bạn tin tưởng 100% vào tác giả của tập lệnh và hiểu cách hoạt động của tập lệnh. Trong nhiều trường hợp, bạn có thể tìm thấy giải pháp thay thế nguồn mở tốt miễn phí trong Tập lệnh cộng đồng của chúng tôi.

Hướng dẫn của tác giả

Check the link in my signature, message me here, or comment on one of my scripts!

Bạn muốn sử dụng tập lệnh này trên biểu đồ?

Cảnh báo: vui lòng đọc trước khi yêu cầu quyền truy cập.

Thông báo miễn trừ trách nhiệm