[KRONOS] MomentumDescription
This indicator is based on an algorithm which provides accurate momentum tracking on every timeframe. It is visualized as a colored histogram and through some other tools.
The value is calculated from an exponentially weighted moving average that is used to get a high and a low deviation, merging the last value into a range.
It includes
Overbought and oversold fixed areas. Their purpose is to facilitate the recognition of areas where the trend is likely to end or cool down. They are also marked with a background coloring.
Zero line. It typically represents a change of trend when the price crosses under or over it.
Volume shifts. Colored arrows will appear whenever a volume change is detected.
How to use?
Buy/Long on a blue confirmation arrow
Sell/Short on a red confirmation arrow
Take profit when the indicator starts showing a blue background
Take profit when the indicator starts showing a red background
extra tip: the zero line often acts as support / resistance similarly to the overbought and oversold areas
Mata Wang Kripto
Trade HourThis script is just finds the best hour to buy and sell hour in a day by checking chart movements in past
For example if the red line is on the 0.63 on BTC/USDT chart it mean the start of 12AM hour on a day is the best hour to buy (all based on
It's just for 1 hour time-frame but you can test it on other charts.
IMPORTANT: You can change time Zone in strategy settings.to get the real hours as your location timezone
IMPORTANT: Its for now just for BTC/USDT but you can optimize and test for other charts...
IMPORTANT: A green and red background color calculated for show the user the best places of buy and sell (green : positive signal, red: negative signals)
settings :
timezone : We choice a time frame for our indicator as our geo location
source : A source to calculate rate of change for it
Time Period : Time period of ROC indicator
About Calculations:
1- We first get a plot that just showing the present hour as a zigzag plot
2- So we use an indicator ( Rate of change ) to calculate chart movements as positive and negative numbers. I tested ROC is the best indicator but you can test close-open or real indicator or etc as indicator.
3 - for observe effects of all previous data we should indicator_cum that just a full sum of indicator values.
4- now we need to split this effects to hours and find out which hour is the best place to buy and which is the best for sell. Ok we should just calculate multiple of hour*indicator and get complete sum of it so:
5- we will divide this number to indicator_cum : (indicator_mul_hour_cum) / indicator_cum
6- Now we have the best hour to buy! and for best sell we should just reverse the ROC indicator and recalculate the best hour for it!
7- A green and red background color calculated for show the user the best places of buy and sell that dynamically changing with observing green and red plots(green : positive signal, red: negative signals) when green plot on 15 so each day on hour 15 the background of strategy indicator will change to 15 and if its go upper after some days and reached to 16 the background green color will move to 16 dynamically.
Investing - Order HelperFYI: This idea is not new and I believe there is plenty of other indicator similar to this. I have used 'Scaled.orders' from @highewaterr and add in additional calculation.
This is for education purposes only, if you decide to use it LIVE and you lose money using it, it is not my fault. Do not risk what you can't afford to lose.
Order Helper was improved to better help simplify my investing journey.
It calculates each size and price automatically for me after inputting into the settings.
Unlike the common investing method (DCA Daily/Weekly/Monthly or Support & Resistance).
There is issue for these investing method.
DCA based on time is prompt to buying at higher price which will bring your average cost and your risk higher .
So why risk more when you have plenty of time to wait for the project/stocks to be at a discount?
Support & Resistance based can be a hustle to some investor like me.
Why?
1. Complication when drawing multiple support & resistance line / zone.
2. Time Consuming (Refer to point 1)
To reduce/eliminate the issue prompt by these 2 investing method, I use order helper.
It free up that few minutes of each chart, reduce the complexity in drawing support & resistance.
However, it bring method is prompt to 'missing out'.
IF I were to stick to the prices and size based on this indicator, my order might not be triggered and price just continue going.
But personally, I am fine with it. As I would rather miss out than putting my hard earned money in a higher risk.
---------------------------------------------------------------------------------------------------------------------------------
Main Component of this indicator
Scaling options is the main component of this indicator.
There is 4 options to this component:
Linear
Ease-in -> The amount of orders/size CLOSEST to the START price, will be higher.
Ease-out -> The amount of orders/size FURTHEREST to the START price, will be higher.
Ease-in-out -> It's a mixture of Ease-in and Ease-out.
How to use this indicator?
It is best for you to play around with the settings, as it will be easier to understand rather than reading how I do it.
There is no right or wrong method in using this indicator. But this is how I use it.
Go to a higher time frame (Weekly/Monthly)
Identify major support & resistance
Open up 'Order Helper' settings
Input your preferred options (Linear/Ease-in/Ease-out/Ease-in-out)
Input the start price -> referring to the first major support & resistance line (closes to the current price)
Input the end price -> referring to the last major support & resistance line (furtherest away from the current price)
Input the number of orders you preferred
Position Size that you wish to purchase
I decide not to share the source code of this as I do not fully understand the math calculation behind.
But if it works, and it helps me. Then those math calculation doesn't really matter.
Hopefully this will help simplify your investing journey.
If there is any question, feel free to comment it below and I will try my best to assist.
Investing - Correlation Table This correlation tables idea is nothing new, many sites provides it.
However, I couldn't find any simple correlation indicator on TradingView despite how simple this indicator is.
This indicator works as its called. Calculating the correlation between 2 projects (can be used in stocks as well) using the 'ta.correlation' feature built into pinescript.
When it comes to investing, we do not want our stocks / crypto project to be heavily correlated to each other.
If they are heavily correlated to each other, then there isn't much point in diversifying.
That being said, it can be useful for traders who trade multiple pairs.
-----------------------------------------------------------------------------------------------------------------------------------------------------------
In this indicator, consist of 5 primary input and 15 secondary input (Symbol List).
Correlation Source:
This input options allow you to change how the correlation is calculated. By default, it uses 'close'.
Correlation Percentage(%):
This input options allows you configure how many (%) of correlation is considered as 'decoupled'.
This correlation will only move between -100% ~ 100%.
100% refers to it moving together.
-100% refers to it moving the opposite direction.
For example, Project A rises in Price, what is the possibility of Project B following:
A 100% correlation between Project A and Project B, refers to Project B will follow Project A movement.
A 50% correlation between Project A and Project B, refers to there is only 50% chance for Project B to follow Project A movement.
A -20% correlation between Project A and Project B, refers to there is a 20% chance of Project B moving the opposite direction of Project A
(Refers to the table on chart above to better understand what the numbers means. DOT/USD has a 100% correlation to DOT/USD. However. MXCUSDT has a -37.2% correlation to DOT/USD.)
Amounts Bars To Check:
This input options will check the amount of bars since the last bar in the chart.
If you want to know the correlation of the past 100 days in a daily chart, you will enter '100' into this options and it will check only the past 100 days.
Symbol List
This will allow you to input all the project symbol ticker ID to add into the correlation table.
-----------------------------------------------------------------------------------------------------------------------------------------------------------
Originally, I wish to use for loop to go through the symbol list to reduce the amount of code required. However, due to limitation of 'request.security' feature, I had to abandon that idea and use hard-coded for requesting security and use a while loop to identify the symbol correlation value in the array set then set the table value accordingly.
If there is any script writer could improve this or any unclear explanation, feel free to drop a comment below.
Crypto Terminal [Kioseff Trading]Hello!
Introducing Crypto Terminal (:
The indicator makes use of cryptocurrency data provided by vendor INTOTHEBLOCK.
NOTE: The cryptocurrency on your chart must be paired with USD or USDT. Data won't load otherwise - possibly transient. For instance, BTCUSD or BTCUSDT, ETHUSD or ETHUSDT.
Provided datasets:
Twitter Sentiment Data
Telegram Sentiment Data
Whale Data (i.e. % of Asset Belonging to Whales)
$100,000+ Transactions
Bulls/Bears (Bulls Buying | Bears Selling)
Current Position PnL (Currently Open Positions for the Coin are Retrieved and Plotted. Data is Split into Currently Profitable Positions, Losing Positions, and B/E Positions)
Average Balance
Holders/Traders Percentage (Addresses are Retrieved and Classified as Holding Accounts or Trader Accounts)
Correlation
Futures OI
Perpetual OI
Zero Balance Addresses
Flow (Money Inflow & Outflow)
Active Addresses
Average Transaction Time
Realized PnL (Addresses with Realized Profits, Realized Losses, and B/E)
Cruisers
A few more data points are provided.
Additionally, you can plot the values of any dataset in a pane below price.
Below are images of plottable data; different cryptocurrencies will be shown for each example (:
Twitter sentiment data.
Assess this data lightly; difficult to confirm accuracy.
Telegram sentiment data.
Assess this data lightly; difficult to confirm accuracy.
Percentage of asset belonging to whales.
$100,000+ transactions (volume oriented)
Bulls buying; bears selling.
Current positions at profit; current positions at loss; current positions at breakeven.
Average balance.
Percentage of asset belonging to traders; percentage of asset belonging to holders.
Asset's 30-interval correlation to BTC.
Perpetual open interest.
Zero-balance addresses.
Flows.
Active addresses.
Average transaction time.
Addresses at realized profit; addresses at realized loss; addresses at breakeven.
Cruiser data.
Futures open interest.
Naturally, this data isn't provided for every cryptocurrency; NaN values are returned in some instances.
Table 1
I provided three data tables, which load independently, so you don't have to change plotted data to access values.
Table 2
Lastly, you can create a 10-asset crypto index and run calculations against it.
The image shows an example.
I'll update this script with additional calculations/data in the near future. If you've any suggestions - please let me know!
Enjoy (:
VIDYA Trend StrategyOne of the most common messages I get is people reaching out asking for quantitative strategies that trade cryptocurrency. This has compelled me to write this script and article, to help provide a quantitative/technical perspective on why I believe most strategies people write for crypto fail catastrophically, and how one might build measures within their strategies that help reduce the risk of that happening. For those that don't trade crypto, know that these approaches are applicable to any market.
I will start off by qualifying up that I mainly trade stocks and ETFs, and I believe that if you trade crypto, you should only be playing with money you are okay with losing. Most published crypto strategies I have seen "work" when the market is going up, and fail catastrophically when it is not. There are far more people trying to sell you a strategy than there are people providing 5-10+ year backtest results on their strategies, with slippage and commissions included, showing how they generated alpha and beat buy/hold. I understand that this community has some really talented people that can create some really awesome things, but I am saying that the vast majority of what you find on the internet will not be strategies that create alpha over the long term.
So, why do so many of these strategies fail?
There is an assumption many people make that cryptocurrency will act just like stocks and ETFs, and it does not. ETF returns have more of a Gaussian probability distribution. Because of this, ETFs have a short term mean reverting behavior that can be capitalized on consistently. Many technical indicators are built to take advantage of this on the equities market. Many people apply them to crypto. Many of those people are drawn down 60-70% right now while there are mean reversion strategies up YTD on equities, even though the equities market is down. Crypto has many more "tail events" that occur 3-4+ standard deviations from the mean.
There is a correlation in many equities and ETF markets for how long an asset continues to do well when it is currently doing well. This is known as momentum, and that correlation and time-horizon is different for different assets. Many technical indicators are built based on this behavior, and then people apply them to cryptocurrency with little risk management assuming they behave the same and and on the same time horizon, without pulling in the statistics to verify if that is actually the case. They do not.
People do not take into account the brokerage commissions and slippage. Brokerage commissions are particularly high with cryptocurrency. The irony here isn't lost to me. When you factor in trading costs, it blows up most short-term trading strategies that might otherwise look profitable.
There is an assumption that it will "always come back" and that you "HODL" through the crash and "buy more." This is why Three Arrows Capital, a $10 billion dollar crypto hedge fund is now in bankruptcy, and no one can find the owners. This is also why many that trade crypto are drawn down 60-70% right now. There are bad risk practices in place, like thinking the martingale gambling strategy is the same as dollar cost averaging while also using those terms interchangeably. They are not the same. The 1st will blow up your trade account, and the 2nd will reduce timing risk. Many people are systematically blowing up their trade accounts/strategies by using martingale and calling it dollar cost averaging. The more risk you are exposing yourself too, the more important your risk management strategy is.
There is an odd assumption some have that you can buy anything and win with technical/quantitative analysis. Technical analysis does not tell you what you should buy, it just tells you when. If you are running a strategy that is going long on an asset that lost 80% of its value in the last year, then your strategy is probably down. That same strategy might be up on a different asset. One might consider a different methodology on choosing assets to trade.
Lastly, most strategies are over-fit, or curve-fit. The more complicated and more parameters/settings you have in your model, the more likely it is just fit to historical data and will not perform similar in live trading. This is one of the reasons why I like simple models with few parameters. They are less likely to be over-fit to historical data. If the strategy only works with 1 set of parameters, and there isn't a range of parameters around it that create alpha, then your strategy is over-fit and is probably not suitable for live trading.
So, what can I do about all of this!?
I created the VIDYA Trend Strategy to provide an example of how one might create a basic model with a basic risk management strategy that might generate long term alpha on a volatile asset, like cryptocurrency. This is one (of many) risk management strategies that can reduce the volatility of your returns when trading any asset. I chose the Variable Index Dynamic Average (VIDYA) for this example because it's calculation filters out some market noise by taking into account the volatility of the underlying asset. I chose a trend following strategy because regressions are capturing behaviors that are not just specific to the equities market.
The more volatile an asset, the more you have to back-off the short term price movement to effectively trend-follow it. Otherwise, you are constantly buying into short term trends that don't represent the trend of the asset, then they reverse and loose money. This is why I am applying a trend following strategy to a 4 hour chart and not a 4 minute chart. It is also important to note that following these long term trends on a volatile asset exposes you to additional risk. So, how might one mitigate some of that risk?
One of the ways of reducing timing risk is scaling into a trade. This is different from "doubling down" or "trippling down." It is really a basic application of dollar cost averaging to reduce timing risk, although DCA would typically happen over a longer time period. If it is really a trend you are following, it will probably still be a trend tomorrow. Trend following strategies have lower win rates because the beginning of a trend often reverses. The more volatile the asset, the more likely that is to happen. However, we can reduce risk of buying into a reversal by slowly scaling into the trend with a small % of equity per trade.
Our example "VIDYA Trend Strategy" executes this by looking at a medium-term, volatility adjusted trend on a 4 hour chart. The script scales into it with 4% of the account equity every 4-hours that the trend is still up. This means you become fully invested after 25 trades/bars. It also means that early in the trade, when you might be more likely to experience a reversal, most of your account equity is not invested and those losses are much smaller. The script sells 100% of the position when it detects a trend reversal. The slower you scale into a trade, the less volatile your equity curve will be. This model also includes slippage and commissions that you can adjust under the "settings" menu.
This fundamental concept of reducing timing risk by scaling into a trade can be applied to any market.
Disclaimer: This is not financial advice. Open-source scripts I publish in the community are largely meant to spark ideas that can be used as building blocks for part of a more robust trade management strategy. If you would like to implement a version of any script, I would recommend making significant additions/modifications to the strategy & risk management functions. If you don’t know how to program in Pine, then hire a Pine-coder. We can help!
Smart Money - Oscillator and Volume StrategyOverview
This is a no-repaint strategy that is highly optimized for BINANCE:ETHUSDTPERP 30m, normal candles. It is a long/short strategy that is based on CMF, ADX/DMI, Keltner Channels, and other oscillators to identify smart money.
The overall idea of the strategy is to effectively capture the beginnings and ends of trends in price action, and go long/short accordingly. To achieve this, potential entry points are identified with various oscillators and these are then filtered using a variety of moving averages and strength/momentum indicators.
Short and sell inflections are found when ADX, DMI, and/or CMF oscillate below a specified threshold, and Keltner Channels are also used to indicate potential trades.
The indicator will continue to be updated and optimized for current and future market conditions.
If purchased, access to the indicator will be available within 24 hours.
Backtest Results
Parameters:
- 2021-01-01 to present (19 months)
- 100% equity order size
- 0.04% commission fees
- No leverage
17,089% net profit through 296 trades with 60.47% of trades being profitable.
Profit factor of 2.862, Sharpe Ratio of 1.158
Parameters:
- 2021-01-01 to present (19 months)
- $1,000 initial capital
- $1,000 order size
- 0.04% commission fees
- No leverage
584% net profit through 296 trades with 60.47% of trades being profitable.
Parameters:
- 2021-01-01 to present (19 months)
- 500% equity order size
- 0.04% commission fees
- 5x leverage
8,587,557% net profit through 299 trades with 59.87% of trades being profitable.
MASIG#2this indicator founded from easy combined
1.EMA
2.ATR/Supertrend
3.ADX/DI+DI-
4.MACD
5.Dochian
6.OBV
and show by line label and background
Aggregated Ethereum Volume (spot & derivatives)AGGREGATED ETHEREUM VOLUME INDICATOR (spot & derivatives)
This indicator aggregates volume for the most liquid ethereum pairs AND instruments, from exchanges known to *not* have fake volume . A few legit exchanges are missing as not available in Tradingview at the moment (e.g. FTX US).
Volume is separated into four categories: spot (stablecoin pairs), spot (fiat pairs), derivatives (perpetuals), and tradfi derivatives ( CME futures ). Can plot them all four together (default setting) or individually.
Volume is "aggregated in equivalent number of eth" (default setting) -- although users can change that to "aggregated in total USD". Doing so required converting volume for some ETH pairs and (derivatives) contracts that don't record volume in number of eth (but rather record it in USD or number of contracts).
Volume from crypto futures contracts (i.e. not Tradfi) is missing given how these contracts expire, and rolling them over would require extensive manual input. Futures' volume track perpetuals' volume , and are considerably smaller than perpetuals', therefore its absence does not have a noticeable impact on output. Time series for CME futures don't suffer from this inconvenient as the CME offers a continuous time series.
For the sake of simplicity, the price time series used for normalizing volume into ETH units is Bitstamp's (as it is the longest time series available). Prices of USDT and USDC is ignored in this first version.
List of exchanges included: Binance, Binance US, OKX, Huobi, FTX, Bittrex, Gate, Kucoin, Poloniex, Coinbase, Bitfinex, Bitstamp , Gemini, Bitflyer, Upbit, Kraken, Bybit, Bitmex, Deribit, CME
List of pairs/instruments that had to be converted from total USD into number of eth: FTX:BTCUSDT, FTX:BTCUSD, BITMEX:XBTUSD, BYBIT:BTCUSD, DERIBIT:BTCPERP, FTX:BTCPERP
List of pairs/instruments that had to be converted from number of contracts into number of eth: BINANCE:BTCPERP, OKEX:BTCPERP, OKEX:BTCUSDTPERP, CME:BTC
Final note: I recommend to look at aggregated ethereum volume in ETH (not in USD) and for all categories (spot and derivatives) to get a better picture of what's happening in the market. Looking at volume in USD rather than in ETH makes volume obviously dependent on ethereum's price. This is a major problem for volume analysis. Given how volatile ETHUSD is, price then accounts for most of the variance in volume , making volume comparisons across time difficult.
If you have any suggestions please drop them in the comments.
Aggregated Bitcoin Volume (spot & derivatives)AGGREGATED BITCOIN VOLUME INDICATOR (spot & derivatives)
This indicator aggregates volume for the most liquid bitcoin pairs AND instruments, from exchanges known to *not* have fake volume. A few legit exchanges are missing as not available in Tradingview at the moment (e.g. FTX US).
Volume is separated into four categories: spot (stablecoin pairs), spot (fiat pairs), derivatives (perpetuals), and tradfi derivatives (CME futures). Can plot them all four together (default setting) or individually.
Volume is "aggregated in equivalent number of bitcoin" (default setting) -- although users can change that to "aggregated in total USD". Doing so required converting volume for some bitcoin pairs and (derivatives) contracts that don't record volume in number of bitcoin (but rather record it in USD or number of contracts).
Volume from crypto futures contracts (i.e. not Tradfi) is missing given how these contracts expire, and rolling them over would require extensive manual input. Futures' volume track perpetuals' volume, and are considerably smaller than perpetuals', therefore its absence does not have a noticeable impact on output. Time series for CME futures don't suffer from this inconvenient as the CME offers a continuous time series.
For the sake of simplicity, the price time series used for normalizing volume into BTC units is Bitstamp's (as it is the longest time series available).
List of exchanges included: Binance, Binance US, OKX, Huobi, FTX, Bittrex, Gate, Kucoin, Poloniex, Coinbase, Bitfinex, Bitstamp, Gemini, Bitflyer, Upbit, Kraken, Bybit, Bitmex, Deribit, CME
List of pairs/instruments that had to be converted from total USD into number of bitcoin: FTX:BTCUSDT, FTX:BTCUSD, BITMEX:XBTUSD, BYBIT:BTCUSD, DERIBIT:BTCPERP, FTX:BTCPERP
List of pairs/instruments that had to be converted from number of contracts into number of bitcoin: BINANCE:BTCPERP, OKEX:BTCPERP, OKEX:BTCUSDTPERP, CME:BTC
Final note: I recommend to look at aggregated bitcoin volume in bitcoin (not in USD) and for all categories (spot and derivatives) to get a better picture of what's happening in the market. Looking at volume in USD rather than in BTC makes volume obviously dependent on bitcoin's price. This is a major problem for volume analysis. Given how volatile BTCUSD is, price then accounts for most of the variance in volume, making volume comparisons across time difficult.
If you have any suggestions please drop them in the comments.
Wave Strength Oscillator By CryptoScriptsThe Wave Strength Oscillator uses a combination of wave strength and momentum to help catch the best entries for reversals and does so using a few methods. I'm currently using the 1h timeframe for BTC but feel free to experiment on different timeframes to see what works best for you. In the description below, I'll go over each signal, how it's derived, and how to use them!
Oversold (Green shaded area) - The oversold indication appears whenever both oscillators are oversold and is usually a good indicator that a reversal to the upside is around the corner (at least for a short period). Be advised these are the weakest of the three signals so I recommend using this signal with other indicators.
Overbought (Red shaded area) - The overbought indication appears whenever both oscillators are overbought and is usually a good indicator that a reversal to the downside is around the corner (at least for a short period). Be advised these are the weakest of the three signals so I recommend using this signal with other indicators.
Green Diamond - The green diamonds indicate whenever one or both of the oscillators are oversold AND they are both outside of the bollinger bands which is great for catching reversals to the upside (as seen in the chart). These may come two or three at a time so it may be best to wait until they have all printed before entering.
Red Diamond - The red diamonds indicate whenever one or both of the oscillators are overbought AND they are both outside of the bollinger bands which is great for catching reversals to the downside (as seen in the chart). These may come two or three at a time so it may be best to wait until they have all printed before entering.
Rocket - The rocket symbol occurs whenever BOTH oscillators are oversold and BOTH oscillators are outside of the bollinger bands. This is great for catching reversals to the upside but may come two or three at a time so it may be best to wait until they have all printed before entering.
Red Alarm - The red alarm symbol occurs whenever BOTH oscillators are oversold and BOTH oscillators are outside of the bollinger bands. This is great for catching reversals to the downside but may come two or three at a time so it may be best to wait until they have all printed before entering.
Input Options
Show Histogram - I also included a Histogram in the indicator to help gauge the level of buys/sell strength but kept it hidden for the default levels (i.e a green diamond with a red histogram bar is usually a good sign a reversal is about to happen to the upside whereas a green diamond with a green histogram bar may indicate a false reversal and there's still more room to the downside until a red bar appears. Always backtest this!)
Show Overbought/Oversold Levels - This is if you want to ignore all of the green/red shaded areas and only focus on the diamonds and rocket/alarm signals
Wave Overbought/Oversold Levels - Free free to change to value of the overbought/oversold levels to change where the green/red shades areas print
Momentum Overbought/Oversold Levels - Free free to change to value of the overbought/oversold levels to change where the green/red shades areas print
Histogram Length - This will not change anything with the signals but I included it so you can change the visuals if it helps you
Momentum Length - This will change where the signals plot
Momentum Signal - This only changes the yellow signal line and nothing else. It's not incorporated into any equation
Average Length - This will change where the signals plot
Alerts
I've set alerts on this indicator for each icon (Oversold, Overbought, Green Diamond, Red Diamond, Rocket, Red Alarm). I HIGHLY recommend setting the alerts for Candle Close so that you can be sure the signal is confirmed.
You may notice that the indicator can give multiple signals back-to-back or be overbought/oversold for multiple candles. When this happens, it's best to look at other indicators such as the RSI , MFI Pro, etc to nail the best entry and have confluence with your decision. With that said, having multiple signals back-to-back can also be an indication that the move is close to happening. This indicator works with crypto and stocks as well.
If you have any questions or would like to purchase this indicator, please comment below or PM me. I also made a video tutorial for the indicator on my Youtube channel (link is next to my profile pic)
Be advised past performance is not indicative of future returns. Backtest EVERY timeframe and NEVER blindly take signals! Also, never invest more than you can afford to lose.
Enjoy :)
Bot MasterSqueeze 1.1 (crypt)Countertrend strategy for correction to the average value. The strategy is designed primarily for crypto.
The principle of operation is that with a rapid price change, the strategy tends to take a reverse position to return to the average value, which statistically often happens. It is enough for you to determine the percentage of the offset about the average price and the size of the averaging position as a percentage of the deposit.
With the settings, you determine how to determine the average opening price. It can be MA at the price of opening, closing, etc., and DCMA. Soon I will add a few more options for determining the average opening price
You can also choose the average price at which the transaction will try to close.
Now there are 3 methods:
- closing when returning to the average price
- closing on the first correction candle
- opening on an abnormally large candle in the direction of correction and closing on the first one is opposite
Search for the settings by the selection method for each pair separately. It is better to trade using signals via a bot.
The strategy shows itself best on volatile coins paired with the dollar for 1 hour or more.
Soon I will add new options for opening and closing deals, as well as determining the average price.
ATTENTION: the strategy involves averaging, so be careful with levers and overestimating the percentage of the transaction from the deposit. It is best to allocate no more than 25 percent to the risk of the transaction.
TBT Base to Quote Currency ConverterKnowing how much volume is traded on a chart is essential, but only knowing the Base volume can be confusing- especially when it's for a token only worth 0.00000210 sats. Put away your calculators and use this indicator instead to instantly convert the Base traded volume to Quote.
For example, on the chart above for BTCUSDT:BINANCE, if you add the Volume indicator, it is showing volume traded in the Base currency, which is Bitcoin. But it's more important to know how much QUOTE currency has been traded, which would be USDT in this case.
This is particularly useful when trading low-volume charts for AB Trading, something we teach in several of our courses.
Lastly, we have included a 30-period SMA to show average trading volume over the last 30 periods. Keep in mind that this will be more helpful when used on the daily time frame to get a general idea of the average trading volume over time for a trading pair.
MZ HTF HFT ROCit Bot - Non Repainting Scalper v1.2 ADX RSI MOM This is a new iteration based on my Momentum trading bot.
This is an original script meant to be a high frequency trader that works on higher time frame calculations.
I came up with the idea that using calculus I can figure out the actual rate of change and momentum with different calculations than the momentum indicator that is provided by trading view. Once momentum is shifted on a small time frame, it will provide an entry signal. The script is meant to be used on an algorithmic trading system for scalping purposes. It should be run on a one minute time frame. Unfortunately due to various plotting constraints in Pinescript, you cannot plot the rate of change and momentum and price in the same pane. To counter this, I have a showdata toggle to give you values of the indicators at each entry.
This version has two main entry settings toggled with a checkbox. There is the ROC (rate of change) version and the MOM (momentum) entry signals.
The rate of change version is meant to take a look at your moving average and try to trigger when it hits a certain rate of change point. This can be helpful if you rather play it safer. I have noticed that you can get slightly better entry points but also does not give you as many entries. The momentum algorithm will give you faster entry points and might work best with a slight offset (use your back test to help you figure it out).
I have started to add tooltips to help you along. If you have suggestions please let me know.
How does it work?
Let's just assume that you are looking at a one minute chart. I recommend using the one minute for bots because it will give you the fastest execution for entries. Pinescript has an issue where the signal is not usually sent until the end of the bar/beginning of next bar. If the signal was triggered at the beginning of a 15 minute bar, it might not actually send the signal until the following 15 minute bar. If you are trading on small time frames, this can make all the difference. If you are using an algo platform that trailing stops, stop losse, take profits, etc. I would recommend you use that platform to close your trade. The close trade message will work, but pinescript does not know the exact entry price you received, so if you are trying to collect small profits, it is best that intermediary platform does that calculation for you. If you are dealing with larger moves, instead of small 1-3% scalps, you are probably fine to use the close message setting from pinescript.
Ok, so to take an example. I like to use the 3L and 3S tokens on Kucoin. This gives you a lot of volatility to work with compared to other tokens and coins. However, it can also meas that you are likely taking a higher risk. However, there are some things that can help with that (more on that later).
So we have a token we want to run, and have it on the 1m chart.
First, be sure that all of your filters are OFF when you start playing with the back test. This allows you to see how to best optimize the bot.
Use the show data to show you additional data when you are backtesting. This can allow you to try to filter out results or market conditions that do not work. I typically work with the RSI and use the 30 minute and 15 minute RSIs. I make sure that it is trading within a certain band - about 40-75. You can try the inverse and only buy during really low RSI's as well.
www.dropbox.com
Find the source of your data with the variant drop down. You can use any time frame, open, close. high, low, olc4. Open is pretty much guaranteed to not have any repainting issues - although all the other calcs use a custom isbarconfirmed security repaint calculation. I have been finding that Open and SMA work well, but feel free to explore. If you use a source like open, close, high, low, etc - the interval will not change anything further. If you use a variant such as an sma, you should try to find an interval that works well for that token. For instance, try an sma of 8-11 minutes and see which gives you the best backtest result without changing anything else. Offset ALMA/LSMA parameters are only used for those specific variants. These specific parameters will also affect the ALMA and LSMA if you use that variant in the trend filter. In other words, you can skip these if you are not using those types of moving averages.
www.dropbox.com
Configure the ROC and MOM intervals. If you are using a source such as open, close, etc- this is where you set the interval for your change. So consider using OHLC4 or a interval of 5 thru 15 and see what works best. The Momentum inverval usually works best in the 2-5 bars. There is a custom calculation I added in to try to filter out false entries as momentum is waning. This calculation works best in 2-5 bar interval.
Configure the trigger point and offset. If you are using rate of change, the best settings will likely be between -1 to 0.5. If you are using momentum, you will likely want -20 to 10. This is where you will notice the entries will shift a bit. Try to find a balance between your backtest settings and actually finding what you thin will be the best entries based on a slight delay from trading view, to algo, to your trading platform. This can likely be a minute (maybe even) or so- so be sure to not get too caught up between the backtest results and be sure to finesse the entries to actually fit nicely - maybe a bar earlier than you would likely think. If your entries are coming in too early, you can use the offset to delay your entry by a few bars. This is both science and an art form- don't get too caught up on the back test results as that is based on having all the data tha already transpired, it's not based on how it will actually perform during deployment.
Take profit and stop loss. This should be self explanatory. This script can toggle between static take profit and a trailing profit. For scalping, you will likely want to limit it below 2% to get a good win ratio. Stop loss should be at least 5-6% for these types of 3L/3S tokens to give the strategy some room to move (if the token goes down 2% before it shoots back up, the price will go down 6%). This does not yield the best R/R ratio from a traditional trader perspective, but the statistical probabilities are in your favor for these events will happen. If you have better ideas for how to set this all up, feel free to contribute your ideas in the comments as we can all learn from each other. You can definitely set a much tighter stop loss with a larger take profit to get a lower win rate but in turn might get much better returns. It's all up to you.
FILTERS www.dropbox.com
These filters require you to know a bit about each indicator and how you want to use them. I will only go over the general idea.
Variant Filter - this is especially useful if you want to trade above a moving average. Say for instance you only want to take trades when we are over the 100 Day moving average. Or above a 30 minute, 30 bar EMA, etc. Although originally ported over from my other scripts, this is not a filter that I use often in conjunction with this script.
RSI - perhaps you want to buy when we are below the 30 line on the 30 minute RSI, or we want only want to have the strategy work when we are above the 50 RSI, this can all be configured here. I typically like to try a few different rationales here.
Now with brand NEW ADX filter - this is a brand new idea that seems to work rather well. Based on your ADX settings you can also turn on the "only uptrend" which will try to calculate if you are in an uptrend based on your ADX config. Please keep in mind that uptrend is based relatively on the ADX settings.
- There is a sprinkle of RSI magic in the entry signal to make sure that rsi is not declining in the calculation, so this can affect how many entries you get.
Some other tips:
Forward test.
Set up your algo bot on a one minute interval.
Set up take profit and stop loss on your algo trading platform.
Don't use the exact settings as your backtest, maybe try a slightly more conservative approach from the algo trading platform to make sure you are within range of triggering your events with a slight delay from signal to execution. If you have a 1.6% take profit, perhaps try 1.5% on your platform first.
By using these scripts you agree that you are trading at your own risk. I make no guarantees of returns or results. I just provide tools to help you trade better. However, I hope this ROCit will take you to the moon. And if it does, be sure to give me a shout as well as some tips of your own.
Send me a message with any questions or suggestions.
Bitcoin Indicator CBitcoin Indicator C is the missing part of the whole picture. It must be used together with Bitcoin Indicator B for the best results possible!
Indicator B is to find the entry on the market sharp, while the new Indicator C will help you to find the zone where it's time to look for the entry. The dots do NOT represent the start nor the end of the trend, they only show the cross of the waves. Indicator C was created to see the bigger picture of the market. You will see 3 waves on the indicator. The white wave is the main indication of the trend, however all of them should be considered together. Think about it as a painting so just step back and watch the whole picture. If you see the waves topping and start to form a downtrend it's time to find your entry on Indicator B. Also when you see waves bottoming it's time to look for the entry of the Long trade.
When all of 3 waves moving together parallel from the top to the bottom that's a strong downtrend. Opposite occurs when there is a strong uptrend on the market.
These waves were created to show unique repeating patterns, too. For example: White wave bottoming while others keep painting on the upside of the zero line. Other example if repeating waves getting lower and lower... Learn more about unique patterns on our website!
Sherry on cryptoIf the price is above the 200 EMA, you are allowed to open only long positions and avoid shorts.
If the price is below the 200 EMA, you are allowed to open only short position and avoid longs. Don't use this indicator alone, use RSI, Stochastic RSI etc. Do not use this indicator like a bot, do TA and FA as well. This is just an indicator, do not always rely on it. It requires experience. This indicator has different winrate in different timeframes. Set its value accordingly.
Rate Of Change Trend Strategy (ROC)This is very simple trend following or momentum strategy. If the price change over the past number of bars is positive, we buy. If the price change over the past number of bars is negative, we sell. This is surprisingly robust, simple, and effective especially on trendy markets such as cryptos.
Works for many markets such as:
INDEX:BTCUSD
INDEX:ETHUSD
SP:SPX
NASDAQ:NDX
NASDAQ:TSLA
Monday Highlight (Crypto & Stocks)Hello Traders
This is a very simple indicator that will highlight the background vertically over every Monday for Crypto and Stock markets. I use this indicator in all my technical analysis as it lets me very quickly see where each week begins without being too distracting. It can be easily customizable to whatever color, transparency level and visibility you want. Because of the way closing times are processed in different markets I could not make a single indicator to include all markets, but check out my second Monday Highlight indicator for Futures, Forex and CFD markets.
Hope you find them useful and don't forget to add them to your "favorites" list for easy access.
CANDLE FILTER Todays scripts is based on my Pullback And Rally Candles with other meaningful candles such as Hammers and Dojis.
You can choose which Candles to show on the cart and if you want to candles to appear above or below a moving average.
If you follow my work, you may recognise some of these candles which I'm about to show you however these candles are 1) more refined and 2) has moving average filters.
Ive included a D,6H,1H Candle in this script as on different timeframes - each swing low on average has a different amount of bars within the swing low / swing high so the DPB and RD will only work on the Daily
//Pullback candle
This candle is very powerful when used with simple Price Action such as Market Structure//Demand zones and support zones. (((((WORKS BEST IN UPTRENDS AND BOTTOM OF RANGES)))))
Ive included a D,6H,1H Pullback Candle in this script as on different timeframes - each swing low on average has a different amount of bars within the swing low so the DPB will only work on the Daily
//DAILY PULLBACK (Swing Traders)
snapshot
//4H PULLBACK (Swing Traders)
snapshot
- this signal will produce more signals due to the swing low filter on the 4H
//1H PULLBACK
snapshot
- this signal has been refined due to too many candle displaying in weak areas
!!!IF YOU DONT WANT TO USE PULLBACKS DURING DOWNTRENDS THEN USE THE EMA FILTER TO TURN OFF THE PULLBACKS WHEN PRICE IS BELOW THE MOVING AVERAGE!!!
//Rally candle (My personal Favourite) (((((WORKS BEST IN DOWNTRENDS AND TOP OF RANGES)))))
This candle is very powerful when used with simple Price Action such as Market Structure//Supply zones and Resistance zones.
//DAILY RALLY(Swing Traders)
snapshot
//4H RALLY(Swing Traders)
snapshot
- this signal will produce more signals due to the swing high filter on the 4H
!!!IF YOU DONT WANT TO USE RALLIES DURING UPTRENDSTHEN USE THE EMA FILTER TO TURN OFF THE RALLIES WHEN PRICE IS ABOVE THE MOVING AVERAGE!!!
//POWERFUL DOJIS (INDECISION)
snapshot
We look for indecision in key areas to see if momentum is shifting. When combined with Pullbacks or Rallys - this will enhance the odds of a probably area.
//HAMMERS
snapshot
//MOVING AVERAGES
snapshot
Short EMA = 50
Long EMA = 200
This filter can be used when the market is trending - look out for rejections off the moving averages
Also you can chance the Short And Long EMA to choose which MA cross you want to use
snapshot
ALSO ALL THE CANDLES HAVE A ALERT CONDITIONS WHICH YOU CAN ACCESS - THIS WILL ALERT ANY CANDLE YOU CHOOSE
Please leave a like/comment on this post as this is much appreciated....
Nabz-BBMACD-2022-V1.1I have tried to make script which triggers indicators on combination of different feedback including Bollinger bands and MACD. Also used some of my logic by trial and error, It gave 744%+ profit on back-testing on coin RUNE/USDT from Jan 2021. It is my first script, I am happy to help the community. Please share your feedback.
Oversold RSI with tight SL Strategy (by Coinrule)This is one of the best strategies that can be used to get familiar with technical indicators and start to include them in your trading bot rules.
ENTRY
1. This trading system uses the RSI ( Relative Strength Index ) to anticipate good points to enter positions. RSI is a technical indicator frequently used in trading. It works by measuring the speed and change of price movements to determine whether a coin is oversold (indicating a good entry point) or overbought (indicating a point of exit/entry for a short position). The RSI oscillates between 0 and 100 and is traditionally considered overbought when over 70 and oversold when below 30.
2. To pick the right moment to buy, the strategy enters a trade when the RSI falls below 30 indicating the coin is oversold and primed for a trend reversal.
EXIT
The strategy then exits the position when the price appreciates 7% from the point of entry. The position also maintains a tight stop-loss and closes the position if the price depreciates 1% from the entry price. The idea behind this is to cut your losing trades fast and let your winners ride.
The best time frame for this strategy based on our backtesting data is the daily. Shorter time frames can also work well on certain coins, however in our experience, the daily works best. Feel free to experiment with this script and test it on a variety of your coins! With our backtesting data a trading fee of 0.1% is taken into account. The fee is aligned to the base fee applied on Binance, which is the largest cryptocurrency exchange by volume. In the example shown, this strategy made a handsome net profit of 39.31% on Chainlink with 61.54% of trades being profitable.
Sideways Strategy DMI + Bollinger Bands (by Coinrule)Markets don’t always trade in a clear direction. At a closer look, most of the time, they move sideways. Relying on trend-following strategies all the time can thus lead to repeated false signals in such conditions.
However, before you can safely trade sideways, you have to identify the most suitable market conditions.
The main features of such strategies are:
Short-term trades, with quick entries and quick exits
Slightly contrarian and mean-reversionary
Require some indicator that tells you it’s a sideways market
This Sideways DMI + Bollinger Bands strategy incorporates such features to bring you a profitable alternative when the regular trend-following systems stop working.
ENTRY
1. The trading system requires confirmation for a sideways market from the Directional Movement Index (DMI) before you can start opening any trades. For this purpose, the strategy uses the absolute difference between positive and negative DMI, which must be lower than 20.
2. To pick the right moment to buy, the strategy looks at the Bollinger Bands (BB). It enters the trade when the price crosses over the lower BB.
EXIT
The strategy then exits when the move has been exhausted. Generally, in sideways markets, the price should revert lower. The position is closed when the price crosses back down below the upper BB.
The best time frame for this strategy based on our backtest is the 1-hr. Shorter timeframes can also work well on certain coins that are more volatile and trade sideways more often. However, as expected, these exhibit larger volatility in their returns. In general, this approach suits medium timeframes. A trading fee of 0.1% is taken into account. The fee is aligned to the base fee applied on Binance, which is the largest cryptocurrency exchange.
Three EMAs Trend-following Strategy (by Coinrule)Trend-following strategies are great because they give you the peace of mind that you're trading in line with the market.
However, by definition, you're always following. That means you're always a bit later than your want to be. The main challenges such strategies face are:
Confirming that there is a trend
Following the trend, hopefully, early enough to catch the majority of the move
Hopping off the trade when it seems to have run its course
This EMA Trend-following strategy attempts to address such challenges while allowing for a dynamic stop loss.
ENTRY
The trading system requires three crossovers on the same candle to confirm that a new trend is beginning:
Price crossing over EMA 7
Price crossing over EMA 14
Price crossing over EMA 21
The first benefit of using all three crossovers is to reduce false signals. The second benefit is that you know that a strong trend is likely to develop relatively soon, with the help of the fast setup of the three EMAs.
EXIT
The strategy comes with a fixed take profit and a volatility stop, which acts as a trailing stop to adapt to the trend's strength. That helps you get out of the way as soon as market conditions change. Depending on your long-term confidence in the asset, you can edit the fixed take profit to be more conservative or aggressive.
The position is closed when:
The price increases by 4%
The price crosses below the volatility stop.
The best time frame for this strategy based on our backtest is the 4-hr. Shorter timeframes can also work well, although they exhibit larger volatility in their returns. In general, this approach suits medium timeframes. A trading fee of 0.1% is taken into account. The fee is aligned to the base fee applied on Binance, which is the largest cryptocurrency exchange.