INVITE-ONLY SCRIPT

Basic PRISM Algorithm [ByteBoost]

The Basic ByteBoost PRISM strategy is designed to operate in various market conditions by leveraging the concept of brownian motion theory, which refers to the unpredictable movement of particles suspended in a fluid. This characteristic of random motion can be effectively utilized for analyzing time series data, such as market candles. Based on this notion, we are making the following assumptions regarding the market.
  • The stock price exhibits characteristics of Brownian motion.
  • The stock price is distributed in a log-normal pattern.
  • Volatility remains constant over time.
  • Options can only be exercised upon expiration.
  • Risk-free interest does not fluctuate over time.
  • There are no random or arbitrary opportunities present in the market.


Development Notes
This Strategy was developed with the PineScript language, version 5. This indicator, and most of the descriptions below, were derived largely from the TradingView reference manual. Feedback and suggestions for improvement are more than welcome, as well as recommended input settings and best practices to assist and guide new users effectively.

Features
The ByteBoost PRISM indicator is capable of analyzing multiple aspects of market behavior simultaneously such as:
  • Detection of potential trend reversals.
  • Assessment of trend strength and market sentiment.
  • Identification of stop loss levels.
  • Discovery of potential entry and exit points.
  • Ensuring compatibility and effectiveness with other indicators.
  • Visualization of strategy using historical data.


snapshot

Strategy Description
PRISM is an all in one strategy that allows the visualization of entry and exit points as well as the historical performance for every set of parameters. PRISM is a slow paced indicator recommended for the 1h timeframe, because it operates on the belief that markets move in a Brownian motion, for which it leaves enough space and time for the market to decide a trend and catch it at the right time as well as finding appropriate exits given the trend.

PRISM can exist in either an uptrend or downtrend state, but it does not necessarily imply that it reflects the true trend being observed. Instead, it emphasizes capturing significant movements and capitalizing on them by utilizing oscillator levels and exit points calculated based on oversold or overbought values, along with the volatility associated with these movements.

Usage
To use this strategy it is first needed to select a correct set of inputs that correspond to the market you are using, the extra, win difference and oscillator length are dependent on the current market and the average price it manages, so these inputs need to be modified for every pair of assets used.
The long and short tags signify the opportune moment to initiate a new position in the market, whether it's a long or short position, respectively. The exit tags indicate when these positions should be closed. If no exits occur before a new long or short position emerges, it is essential to conclude the existing position and commence a new one in the opposite direction.
Regarding exits, up to two exits can be executed for each movement. The user has the flexibility to determine how these exits are utilized. In the input section, a specific percentage of equity can be selected to be sold during the first exit. If set to 100%, only a single exit will be presented. Otherwise, the remaining equity will be sold during the second exit or at the next trend reversal depending on which action occurs first.
In case the user requires additional exits beyond the initial two, the alternative exits option can be activated in the inputs. This will provide access to supplementary exits, although they may be less advisable compared to the primary exits.

snapshot

Inputs / Settings
Capital - If using any leverage multiply the amount of money to invest by the leverage, else input the amount to be invested in every trade.
Start date - The date from which the strategy should begin its analysis. Leave unchanged to start from the earliest available date based on your account's plan.
End date - The date until which the strategy should conduct its analysis. Leave unchanged to continue until the current date.
Extra - The minimum gain required in the market to trigger an exit opportunity. It can be a negative number to allow exits at a loss, potentially minimizing losses.
First exit % - If an exit is decided to be partial, it is very likely that there will be a second exit, this parameter determines the percentage of equity to be sold at the first exit. Note that a second exit may not always be applicable.
Win difference - The minimum difference between the entry point and the first exit to determine whether it should be a full exit or a partial exit, as the exit price approaches the entry price, the probability of a trend reversal increases, a full exit is beneficial.
Oscillator - Enables or disables the main oscillator, which helps determine entry points. Not all assets may benefit from this parameter.
Oscillator length - Specifies the number of candles considered for the entry points oscillator.
Highlighter - Applies a light color between the trend and average price of each bar.
Labels - Displays all the labels on the chart indicating trends, positions and exits.
Candle color - Color codes the inside of the candles with the current signal.
Oscillator points - Adds visual dots to indicate when the oscillator has changed its trend.
Color uptrend - Determines the color scheme for identifying uptrend movements.
Color downtrend - Determines the color scheme for identifying downtrend movements.
Color long - Sets the color scheme for a new long position.
Color short - Sets the color scheme for a new short position.
Color exit - Decides the color scheme for the exit tag and cross shown.

Indicator Visuals
The strategy plots the direction of the trend on the chart and changes its color based on this. It also plots shapes on the chart to denote potential buy (Long) and sell (Short) points, where the signals of short and long will appear as well as exit points which can be found as three different,
Exit 1 - A partial exit which sells the previously selected percentage of equity.
Exit 2 - A second exit that can only happen after an Exit 1 has happened, and sell the remaining amount of equity.
Exit Full - A full exit is executed when the price at the exit point is lower than the entry price plus the win difference value. This condition indicates that it is more advantageous to take a single exit rather than waiting for a second exit.

Strategy Alerts
The strategy does not include built-in alerts. However, alerts can be added using the TradingView interface based on the strategy's buy and sell conditions. This way you will be able to receive notifications on your computer or phone when a new signal goes out.

Details
Repainting: It is important to mention that the strategy can mark false long or short signals, as the oscillator is allowed to repaint on the same candle. So users must make sure the candle has closed on buy/sell conditions.

Excessive capital issue: If you configure the strategy with a big amount of capital (+$1,000,000 for example) it is possible that it will completely stop calculating exit signals, as they will be too big for TradingView’s engine to process.


Conclusion
The ByteBoost PRISM strategy empowers traders by providing comprehensive market analysis, clear entry and exit signals, and the ability to visualize strategy performance using historical data. It is a superior algorithm that maximizes profit potential and minimizes risks, making it the preferred choice for traders seeking a competitive edge in the financial markets.

Disclaimer
This strategy is provided as-is, with no guarantee of profits or responsibility for losses. Trading involves risk, and you should only trade with money you can afford to lose. Always conduct your own research and consider your financial situation before engaging in trading.
byteboostPivot PointsprismTrend Analysis

Invite-only script

Access to this script is restricted to users authorized by the author and usually requires payment. You can add it to your favorites, but you will only be able to use it after requesting permission and obtaining it from its author. Contact ByteBoost for more information, or follow the author's instructions below.

TradingView does not suggest paying for a script and using it unless you 100% trust its author and understand how the script works. In many cases, you can find a good open-source alternative for free in our Community Scripts.

Author's instructions

To use this algorithm please continue to our official website listed on our tradingview profile.

Want to use this script on a chart?

Warning: please read before requesting access.

ByteBoost, the smarter way to trade.
Also on:

Disclaimer