888 BOT #backtest█ 888 BOT #backtest (open source)
This is an Expert Advisor 'EA' or Automated trading script for ‘longs’ and ‘shorts’, which uses only a Take Profit or, in the worst case, a Stop Loss to close the trade.
It's a much improved version of the previous ‘Repanocha’. It doesn`t use 'Trailing Stop' or 'security()' functions (although using a security function doesn`t mean that the script repaints) and all signals are confirmed, therefore the script doesn`t repaint in alert mode and is accurate in backtest mode.
Apart from the previous indicators, some more and other functions have been added for Stop-Loss, re-entry and leverage.
It uses 8 indicators, (many of you already know what they are, but in case there is someone new), these are the following:
1. Jurik Moving Average
It's a moving average created by Mark Jurik for professionals which eliminates the 'lag' or delay of the signal. It's better than other moving averages like EMA , DEMA , AMA or T3.
There are two ways to decrease noise using JMA . Increasing the 'LENGTH' parameter will cause JMA to move more slowly and therefore reduce noise at the expense of adding 'lag'
The 'JMA LENGTH', 'PHASE' and 'POWER' parameters offer a way to select the optimal balance between 'lag' and over boost.
Green: Bullish , Red: Bearish .
2. Range filter
Created by Donovan Wall, its function is to filter or eliminate noise and to better determine the price trend in the short term.
First, a uniform average price range 'SAMPLING PERIOD' is calculated for the filter base and multiplied by a specific quantity 'RANGE MULTIPLIER'.
The filter is then calculated by adjusting price movements that do not exceed the specified range.
Finally, the target ranges are plotted to show the prices that will trigger the filter movement.
Green: Bullish , Red: Bearish .
3. Average Directional Index ( ADX Classic) and ( ADX Masanakamura)
It's an indicator designed by Welles Wilder to measure the strength and direction of the market trend. The price movement is strong when the ADX has a positive slope and is above a certain minimum level 'ADX THRESHOLD' and for a given period 'ADX LENGTH'.
The green color of the bars indicates that the trend is bullish and that the ADX is above the level established by the threshold.
The red color of the bars indicates that the trend is down and that the ADX is above the threshold level.
The orange color of the bars indicates that the price is not strong and will surely lateralize.
You can choose between the classic option and the one created by a certain 'Masanakamura'. The main difference between the two is that in the first it uses RMA () and in the second SMA () in its calculation.
4. Parabolic SAR
This indicator, also created by Welles Wilder, places points that help define a trend. The Parabolic SAR can follow the price above or below, the peculiarity that it offers is that when the price touches the indicator, it jumps to the other side of the price (if the Parabolic SAR was below the price it jumps up and vice versa) to a distance predetermined by the indicator. At this time the indicator continues to follow the price, reducing the distance with each candle until it is finally touched again by the price and the process starts again. This procedure explains the name of the indicator: the Parabolic SAR follows the price generating a characteristic parabolic shape, when the price touches it, stops and turns ( SAR is the acronym for 'stop and reverse'), giving rise to a new cycle. When the points are below the price, the trend is up, while the points above the price indicate a downward trend.
5. RSI with Volume
This indicator was created by LazyBear from the popular RSI .
The RSI is an oscillator-type indicator used in technical analysis and also created by Welles Wilder that shows the strength of the price by comparing individual movements up or down in successive closing prices.
LazyBear added a volume parameter that makes it more accurate to the market movement.
A good way to use RSI is by considering the 50 'RSI CENTER LINE' centerline. When the oscillator is above, the trend is bullish and when it is below, the trend is bearish .
6. Moving Average Convergence Divergence ( MACD ) and ( MAC-Z )
It was created by Gerald Appel. Subsequently, the histogram was added to anticipate the crossing of MA. Broadly speaking, we can say that the MACD is an oscillator consisting of two moving averages that rotate around the zero line. The MACD line is the difference between a short moving average 'MACD FAST MA LENGTH' and a long moving average 'MACD SLOW MA LENGTH'. It's an indicator that allows us to have a reference on the trend of the asset on which it is operating, thus generating market entry and exit signals.
We can talk about a bull market when the MACD histogram is above the zero line, along with the signal line, while we are talking about a bear market when the MACD histogram is below the zero line.
There is the option of using the MAC-Z indicator created by LazyBear, which according to its author is more effective, by using the parameter VWAP ( volume weighted average price ) 'Z-VWAP LENGTH' together with a standard deviation 'STDEV LENGTH' in its calculation.
7. Volume Condition
Volume indicates the number of participants in this war between bulls and bears, the more volume the more likely the price will move in favor of the trend. A low trading volume indicates a lower number of participants and interest in the instrument in question. Low volumes may reveal weakness behind a price movement.
With this condition, those signals whose volume is less than the volume SMA for a period 'SMA VOLUME LENGTH' multiplied by a factor 'VOLUME FACTOR' are filtered. In addition, it determines the leverage used, the more volume , the more participants, the more probability that the price will move in our favor, that is, we can use more leverage. The leverage in this script is determined by how many times the volume is above the SMA line.
The maximum leverage is 8.
8. Bollinger Bands
This indicator was created by John Bollinger and consists of three bands that are drawn superimposed on the price evolution graph.
The central band is a moving average, normally a simple moving average calculated with 20 periods is used. ('BB LENGTH' Number of periods of the moving average)
The upper band is calculated by adding the value of the simple moving average X times the standard deviation of the moving average. ('BB MULTIPLIER' Number of times the standard deviation of the moving average)
The lower band is calculated by subtracting the simple moving average X times the standard deviation of the moving average.
the band between the upper and lower bands contains, statistically, almost 90% of the possible price variations, which means that any movement of the price outside the bands has special relevance.
In practical terms, Bollinger bands behave as if they were an elastic band so that, if the price touches them, it has a high probability of bouncing.
Sometimes, after the entry order is filled, the price is returned to the opposite side. If price touch the Bollinger band in the same previous conditions, another order is filled in the same direction of the position to improve the average entry price, (% MINIMUM BETTER PRICE ': Minimum price for the re-entry to be executed and that is better than the price of the previous position in a given %) in this way we give the trade a chance that the Take Profit is executed before. The downside is that the position is doubled in size. 'ACTIVATE DIVIDE TP': Divide the size of the TP in half. More probability of the trade closing but less profit.
█ STOP LOSS and RISK MANAGEMENT.
A good risk management is what can make your equity go up or be liquidated.
The % risk is the percentage of our capital that we are willing to lose by operation. This is recommended to be between 1-5%.
% Risk: (% Stop Loss x % Equity per trade x Leverage) / 100
First the strategy is calculated with Stop Loss, then the risk per operation is determined and from there, the amount per operation is calculated and not vice versa.
In this script you can use a normal Stop Loss or one according to the ATR. Also activate the option to trigger it earlier if the risk percentage is reached. '% RISK ALLOWED'
'STOP LOSS CONFIRMED': The Stop Loss is only activated if the closing of the previous bar is in the loss limit condition. It's useful to prevent the SL from triggering when they do a ‘pump’ to sweep Stops and then return the price to the previous state.
█ BACKTEST
The objective of the Backtest is to evaluate the effectiveness of our strategy. A good Backtest is determined by some parameters such as:
- RECOVERY FACTOR: It consists of dividing the 'net profit' by the 'drawdown’. An excellent trading system has a recovery factor of 10 or more; that is, it generates 10 times more net profit than drawdown.
- PROFIT FACTOR: The ‘Profit Factor’ is another popular measure of system performance. It's as simple as dividing what win trades earn by what loser trades lose. If the strategy is profitable then by definition the 'Profit Factor' is going to be greater than 1. Strategies that are not profitable produce profit factors less than one. A good system has a profit factor of 2 or more. The good thing about the ‘Profit Factor’ is that it tells us what we are going to earn for each dollar we lose. A profit factor of 2.5 tells us that for every dollar we lose operating we will earn 2.5.
- SHARPE: (Return system - Return without risk) / Deviation of returns.
When the variations of gains and losses are very high, the deviation is very high and that leads to a very poor ‘Sharpe’ ratio. If the operations are very close to the average (little deviation) the result is a fairly high 'Sharpe' ratio. If a strategy has a 'Sharpe' ratio greater than 1 it is a good strategy. If it has a 'Sharpe' ratio greater than 2, it is excellent. If it has a ‘Sharpe’ ratio less than 1 then we don't know if it is good or bad, we have to look at other parameters.
- MATHEMATICAL EXPECTATION: (% winning trades X average profit) + (% losing trades X average loss).
To earn money with a Trading system, it is not necessary to win all the operations, what is really important is the final result of the operation. A Trading system has to have positive mathematical expectation as is the case with this script: ME = (0.87 x 30.74$) - (0.13 x 56.16$) = (26.74 - 7.30) = 19.44$ > 0
The game of roulette, for example, has negative mathematical expectation for the player, it can have positive winning streaks, but in the long term, if you continue playing you will end up losing, and casinos know this very well.
PARAMETERS
'BACKTEST DAYS': Number of days back of historical data for the calculation of the Backtest.
'ENTRY TYPE': For '% EQUITY' if you have $ 10,000 of capital and select 7.5%, for example, your entry would be $ 750 without leverage. If you select CONTRACTS for the 'BTCUSDT' pair, for example, it would be the amount in 'Bitcoins' and if you select 'CASH' it would be the amount in $ dollars.
'QUANTITY (LEVERAGE 1X)': The amount for an entry with X1 leverage according to the previous section.
'MAXIMUM LEVERAGE': It's the maximum allowed multiplier of the quantity entered in the previous section according to the volume condition.
The settings are for Bitcoin at Binance Futures (BTC: USDTPERP) in 15 minutes.
For other pairs and other timeframes, the settings have to be adjusted again. And within a month, the settings will be different because we all know the market and the trend are changing.
ค้นหาในสคริปต์สำหรับ "entry"
Daya LilinI calculate the momentum of each candle and separate it by color with a different tone.
The darker the color, the stronger the candle. Easy to know fake breakout, strong breakout, and momentum of trend continuation.
also, there is a pivot point to easily determine the nearest support and resistance .
lastly, there is some rsi and shadow ratio to determine possible overbought and oversold entry.
p/s: donate sikit coin or bank in haha
SVIEWThis is momentum based indicator
Input
1. Two EMA
2. Stochastic
Thought process
1. Difference between fast and slow ema has a oscillating nature.
2. Stochastic %k %d crossover gives early signals
3. early entry gives low risk high reward setup
Calculation
1. A= EMA (fast) - EMA (slow)
2. B =Stochastic(%K)-Stochastic(%D)
When A is increasing and B is positive, bar is green
When A is decreasing and B is negative, bar is red
Else, bar is black
Use
This is an early entry signal system. When used with Channel trading system, it gives high probability, low risk high reward setups
Example
When price has breached below -2 Keltner channel, and impulse candle turns green, go long (or sell put options )
29 minutes ago
Release Notes:
This is combination of
1. Ema diff
2. stochastic
3. Keltner channel
4. Bollinger bands
5. bunch of EMAs
Thought process
1. Difference between fast and slow ema has a oscillating nature.
2. Stochastic %k %d crossover gives early signals
3. early entry gives low risk high reward setup
Calculation
1. A= EMA (fast) - EMA (slow)
2. B =Stochastic(%K)-Stochastic(%D)
When A is increasing and B is positive, bar is green
When A is decreasing and B is negative, bar is red
Else, bar is black
Use
This is an early entry signal system. When used with Channel trading system, it gives high probability, low risk high reward setups
Example
When price has breached below -2 Keltner channel, and impulse candle turns green, go long (or sell put options )
Plot Break-even PriceThis indicator simply plots your entry price and the break-even point (green line). Area between the entry price and the break-even point will “eat” you profit by exchange fees. You can use the green line to lock your break-even point. I do not recommend using this strategy for trading, because the entry logic is based on SMA crosses. However, this script could be used within you own strategy to plot the break-even point.
For example, there is 0.1% Maker fee and 0.1% Taker fee at Binance spot exchange. You need to sum up those two fees to calculate the break-even point. Every exit above/below the green line will guarantee a profit (in our case it means 0.2% above the entry price for long position and 0.2% below the entry price for short position).
Fibonacci-Trading-Indikator_3Daily (weekly, monthly) profits with the Fibonacci trading indicator_3
Quotes move in Fibonacci ratios in liquid markets. With this indicator you receive information for daily trades or for position trades based on a week or on a monthly basis, in which area you should ideally enter the market and where the minimum achievable price target is. This price target is 61.8% of yesterday's trading range, or the trading range of the previous week, or the trading range of the previous month, depending on the time frame for which the indicator should calculate the minimum achievable high / low. This is also where you realize your profit.
For this calculation, the following entries must be made in the properties window of the indicator:
• Preselection uptrend / downtrend.
• Time frame (day, week, ...) of the price bar for the possible high / low to be determined.
• Trading range of the previous day, or the previous week, or the previous month.
• Current lowest low of the selected time frame when trading has started and prices are rising.
• Current highest high of the selected time frame when trading has started and prices are falling.
Important areas for trading are:
• The entry range 0% - 23.6% for long or short.
• The target price level 61.8%.
Choose a suitable time frame to detect the direction of movement while the quotes are still moving in the entry area. The camelback indicator can be of great help. Also test the resolution setting of the camelback indicator. With a resolution of 1 hour in the 6 or 12 minute chart, you get a perspective for the broader direction. Movement patterns of corrections or consolidations, if they last more than a day or a week, also give clues to the coming direction of movement for the trade. So look back to see what happened yesterday, a week ago, or a month ago. Pay attention to the market anatomy, find out how the market works, count the price bars in consolidations and trends.
After entering the values the indicator will show the Fibonacci expansion price levels for the possible high or low for the selected time frame. Buy / sell within the entry range between 0% and 23.6% as the market moves towards the last long / or short entry point. This is the course range up to the 23.6% course level. The 61.8% price level is the minimum expected price target. We assume that the current bar will reach at least 61.8% of the trading range of the previous day, week or month. Depending on the set time frame. You should therefore realize the profits you have made with 50% of the position when the prices have reached the 61.8% level. With a suitable trailing stop you can be stopped with the rest of the position, but do not risk more than 50% of the profits.
With the quarter or year preselection and the corresponding entries, the minimum expected quarterly high / quarterly low or annual high / annual low can be determined.
The Fibonacci price levels can be shown and hidden. In the chart click on the gear wheel for “Chart Settings”. In the “Scaling” menu, the price levels can be displayed with the preselection “Label for indicator names” and “Label for last indicator value”. Slide the chart to the right to find possible support and resistance at the price levels that could provide confirmation of the target.
In the event of input errors or missing entries for a time frame, the indicator is hidden.
Pay attention to your trade management to avoid losses.
The new Fibonacci Trading Indicator_3 has the following additions and changes:
Area code for the quarter time frame has been added.
The entry area received a 23.6% and a 50% subdivision. Two envelope lines above the 23.6% entry level in the case of an upward trend and below the 23.6% entry level in the case of a downtrend, with a width of 23.6% and 14.6% of the entry level, are intended to indicate that the closing price is higher the quotations have broken out of the entry-level area.
A volatility stop for upward and downward trends can be activated.
A factor is added to the fluctuation range of each price bar for the stop. Then a moving average is calculated with an adjustable period. The period setting should be set between 5 and 10. The result can be smoothed adjustable.
Presetting:
Periods = 10
Factor = 1.4
Smoothing = 7
With the assumption that the market entry in an upward trend occurs when the prices break out above a bar high, the result of the stop calculation is subtracted from the bar high. In the case of a downward trend, the result of the stop calculation is added to the price bar low.
When entering the market, set the factor to 2.4. If inside bars follow a trend movement, the stop should be brought closer. Try the factor setting 0.4 or less. The smallest adjustable factor is 0.1.
For the entry into an established trend, as described in an idea contribution by me, there are two switchable moving averages. The application for the (MA_H) takes place on high and for the (MA_L) adjustable on high, low, shot, h + 1/2 etc. Period and offset (shift) are adjustable. With this idea, the entry into the market occurs between a 618% correction (the Fibonacci entry point) and the DEP (average entry point). The DEP in this case is the MA_H with period = 4 and an offset = 1 in the case of a downward trend, or the MA_L with the same setting and application to lows in an upward trend.
Also test the MA_L in trends with the settings (period, offset) 3.3 or 5, 3 or 7.5 and applying it to closing prices for a close encompassing of the highs / lows.
Tägliche (wöchentliche, monatliche) Gewinne mit dem Fibonacci-Trading Indikator_3
Kursnotierungen bewegen sich in liquiden Märkten in Fibonacci-Verhältnisse. Mit diesem Indikator erhalten Sie für Tagesgeschäfte, oder für Positionstrades auf Basis einer Woche, oder auf Basis eines Monats Informationen, in welchem Bereich Sie idealerweise in den Markt einsteigen sollten und wo das mindeste erreichbare Kursziel liegt. Dieses Kursziel liegt bei 61,8% der gestrigen Handelspanne, oder der Handelspanne der Vorwoche, oder der Handelspanne des Vormonats, also abhängig davon für welchen Zeitrahmen der Indikator das mindeste erreichbare Hoch/Tief berechnen soll. Dort realisieren Sie auch Ihren Gewinn.
Für diese Berechnung sind folgende Eingaben im Eigenschaftenfenster des Indikators einzustellen:
• Vorwahl Aufwärtstrend/ Abwärtstrend.
• Zeitrahmen (Tag, Woche, …) des Kursbalkens für das zu ermittelnde mögliche Hoch/ Tief.
• Handelspanne des vorherigen Tages, oder der vorherigen Woche, oder des vorherigen Monats.
• Aktuell tiefstes Tief des vorgewählten Zeitrahmens, wenn der Handel begonnen hat und die Notierungen steigen.
• Aktuell höchstes Hoch des vorgewählten Zeitrahmens, wenn der Handel begonnen hat und die Notierungen fallen.
Wichtige Bereiche für das Trading sind:
• Der Einstiegsbereich 0% - 23,6% für long oder short.
• Der Kursziellevel 61,8%.
Wählen Sie für die Erkennung der Bewegungsrichtung einen geeigneten Zeitrahmen, während sich die Notierungen noch im Einstiegsbereich bewegen. Der Camelback-Indikator kann eine gute Hilfe sein. Testen Sie auch die Auflösung-Einstellung des Camelback-Indikators. Mit der Auflösung 1 Stunde Im 6- oder 12 Minuten-Chart erhalten Sie einen Blickwinkel für die große Richtung. Auch Bewegungsmuster von Korrekturen oder Konsolidierungen, wenn sie mehr als einen Tag oder eine Woche andauern geben Hinweise auf die kommende Bewegungsrichtung für den Trade. Schauen Sie also zurück um zu prüfen, was sich gestern, vor einer Woche oder vor einem Monat abgespielt hat. Achten sie auf die Marktanatomie, finden Sie heraus wie der Markt funktioniert, zählen Sie Kursstäbe in Konsolidierungen und Trends.
Nach Eingabe der Werte zeigt der Indikator die Fibonacci-Ausweitungskurslevels für das mögliche Hoch oder Tief für den ausgewählten Zeitrahmen. Kaufen/ verkaufen Sie innerhalb des Einstiegsbereichs zwischen 0% und 23,6%, während sich der Markt in Richtung des letzten long-/ oder short-Einstiegspunktes bewegt. Das ist der Kursbereich bis zum 23,6%- Kurslevel. Der 61,8%-Kurslevel ist das mindeste erwartbare Kursziel. Wir gehen davon aus, dass der aktuelle Kursbalken mindestens 61,8% der Handelsspanne des vorherigen Tages, der vorherigen Woche oder des vorherigen Monats erreichen wird. Abhängig vom eingestellten Zeitrahmen. Realisieren Sie deshalb die angelaufenen Gewinne mit 50% der Position, wenn die Notierungen den 61,8% - Level erreicht haben. Mit einem geeigneten Trailing-Stopp lassen Sie sich mit der restlichen Position ausstoppen, riskieren Sie dafür aber nicht mehr als 50 % der angelaufenen Gewinne.
Mit der Vorwahl Quartal oder Jahr und den entsprechenden Eingaben kann auch das mindeste erwartbare Quartalshoch/ Quartalstief bzw. Jahreshoch/ Jahrestief ermittelt werden.
Die Fibonacci-Kurslevels lassen sich ein- und ausblenden. Klicken Sie im Chart auf das Zahnrad für „Chart Einstellungen“. Im Menü „Skalierungen“ kann mit der Vorwahl „Label für Indikatornahmen“ und „Label für letzten Indikatorwert“ die Kurslevels angezeigt werden. Schieben Sie den Chart nach rechts um mögliche Unterstützungen und Widerstände an den Kurslevels zu finden, die Bestätigung für das Ziel geben könnten.
Bei Eingabefehlern oder fehlenden Eingaben zu einem Zeitrahmen wird der Indikator ausgeblendet.
Achten Sie zur Vermeidung von Verlusten auf ihr Handelsmanagement.
Der neue Fibonacci-Trading-Indikator_3 besitz folgende Zusätze und Änderungen:
Vorwahl für den Zeitrahmen Quartal wurde hinzugefügt.
Der Einstiegsbereich erhielt eine 23,6% und eine 50% Unterteilung. Zwei Umschlagslinien über dem 23,6%-Einstiegslevel bei einem Aufwärtstrend, bzw. unter dem 23,6%-Einstiegslevel bei einem Abwärtstrend, mit der Breite 23,6% und 14,6% vom Einstiegsbereich, sollen bei höherem Schlusskurs signalisieren, dass die Notierungen aus dem Einstiegsbereich ausgebrochen sind.
Ein Volatilitätsstopp jeweils für Aufwärts- und Abwärtstrend kann zugeschaltet werden.
Für den Stopp wird die Schwankungsbreite jedes Kursbalkens wird mit einem Faktor beaufschlagt. Danach erfolgt die Berechnung eines gleitenden Durchschnitts mit einstellbarer Periode. Die Periodeneinstellung sollte zwischen 5 und 10 eingestellt werden. Das Ergebnis kann einstellbar geglättet werden.
Voreinstellung:
Perioden = 10
Faktor = 1,4
Glättung = 7
Mit der Annahme, dass der Markteinstieg in einem Aufwärtstrend bei Ausbruch der Notierungen über ein Kursbalkenhoch erfolgt, wird das Ergebnis der Stoppberechnung vom Kursbalkenhoch subtrahiert. Bei einem Abwärtstrend wird das Ergebnis der Stoppberechnung zum Kursbalkentief addiert.
Stellen Sie bei Markteintritt den Faktor auf 2,4. Folgen nach einer Trendbewegung Innenstäbe sollte der Stopp näher herangeführt werden. Probieren Sie die Faktoreinstellung 0,4 oder kleiner. Der kleinste einstellbare Faktor ist 0,1.
Für den Einstieg in einen etablierten Trend, wie in einem Ideenbeitrag von mir beschrieben, gibt es zwei zuschaltbare gleitende Durchschnitte. Die Anwendung für den (MA_H) erfolgt auf Hochs und für den (MA_L) einstellbar auf Hoch, Tief, Schuss, h+l/2 usw.. Periode und Offset (Verschiebung) sind einstellbar. Bei dieser Idee erfolgt der Einstieg in den Markt zwischen einer 618%-Korrektur (dem Fibonacci-Einstiegspunkt) und dem DEP (Durchschnittlicher Einstiegspunkt). Der DEP ist in diesem Fall der MA_H mit Periode = 4 und einem Offset = 1, bei einem Abwärtstrend, oder der MA_L mit identischer Einstellung und Anwendung auf Tiefs in einem Aufwärtstrend.
Testen Sie den MA_L auch in Trends mit den Einstellungen (Periode, Offset) 3,3 oder 5, 3 oder 7,5 und Anwendung auf Schlusskurse für eine enge Umfassung der Hochs/ Tiefs.
L1 Composite RSI-William%R IndicatorLevel: 1
Background
The Relative Strength Index (RSI) developed by J. Welles Wilder is a pulse oscillator that measures the speed and change in price movements. The RSI hovers between zero and 100. Traditionally, the RSI is considered overbought when it is above 70 and oversold when it is below 30. Signals can be generated by looking for divergences and error fluctuations. RSI can also be used to identify the general trend.
Williams% R, also known as the Williams Percent Range, is a type of momentum indicator that moves between 0 and -100 and measures overbought and oversold levels. The Williams% R can be used to find entry and exit points in the market. The indicator is very similar to the stochastic oscillator and is used in the same way.
Function
L1 Composite RSI-William%R Indicator combines both RSI and William%R indicator to indicate long and short entries.
Key Signal
rsi1 --> rsi in white
wr1 --> William%R in yellow
bull --> long entry in lime
Pros and Cons
Pros:
1. resonance of RSI and William%R will provide better long and short entry signal
2. use 'bull' to indicate a long entry zone
Cons:
1. It is sensitive to fluctuations
2. More independent long and short entries should be considered
Remarks
Composite RSI+William%R
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
Ichimoku with MACD/ CMF/ TSI This is a strategy made from ichimoku cloud , together with MACD, Chaiking Money FLOW and True Strenght Index.
It can be adapted to any timeframe and any type of financial markets.
The idea behind its very simple,
We combine the long / short strategy from ichimoku, like cross between lines and below/above cloud together with histogram from MACD for positive/negative level. We use the same criteria for TSI and CMF, to check if its above or below 0 level.
Based on that we have a long or a short entry. The exit happens when the next options triggers, like for example we had long signal, we exit when we receive the short signal and viceversa.
It can be adapted with a risk management to apply a tp/sl level.
For any suggestion or details , let me know.
[blackcat] L3 Ehlers ZeroLag Intraday Trading SystemLevel: 3
Background
John F. Ehlers introuced ZeroLag Intraday Trading System in his "Rocket Science for Traders" chapter 16.
Function
blackcat L3 EhlersZeroLag Intraday Trading System is used to find proper long and short entries. Dr. Ehlers developed a completely automatic ZeroLag Intraday Trading System. The concepts of the Instantaneous Trendline and the ZeroLag EMA are very powerful. To demonstrate just how profound these concepts are, Dr. Ehlers designed an intraday trading system. An intraday trade is defined as any active trade that is traded and then closed at the end of the day.
Key Signal
Smooth --> 4 bar WMA w/ 1 bar lag
Detrender --> The amplitude response of a minimum-length HT can be improved by adjusting the filter coefficients by
trial and error. HT does not allow DC component at zero frequency for transformation. So, Detrender is used to remove DC component/ trend component.
Q1 --> Quadrature phase signal
I1 --> In-phase signal
Period --> Dominant Cycle in bars
SmoothPeriod --> Period with complex averaging
DCPeriod ---> Dominant Cycle Period
Trendline ---> IT fast line
ZeroLag ---> Zero Lag Filter
long ---> long entry signal
short ---> short entry signal
Pros and Cons
100% John F. Ehlers definition translation of original work, even variable names are the same. This help readers who would like to use pine to read his book. If you had read his works, then you will be quite familiar with my code style.
NOTE: This version of Trading System has better preformance than "Automatic SineTrend Trading System".
Remarks
The 12th script for Blackcat1402 John F. Ehlers Week publication.
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
[blackcat] L2 Ehlers Automatic SineTrend Trading SystemLevel: 2
Background
John F. Ehlers introuced Automatic SineTrend Trading System in his "Rocket Science for Traders" chapter 12.
Function
blackcat L2 Ehlers Automatic SineTrend Trading System is used to find proper long and short entries.Dr. Ehlers developed a completely automatic trading system called the SineTrend Automatic System based on the rules in his book. His fundamental approach is to trade using the Trend Mode rules when the market is in a Trend Mode and trade using the Cycle Mode rules when the market is in a Cycle Mode.
Key Signal
Smooth --> 4 bar WMA w/ 1 bar lag
Detrender --> The amplitude response of a minimum-length HT can be improved by adjusting the filter coefficients by
trial and error. HT does not allow DC component at zero frequency for transformation. So, Detrender is used to remove DC component/ trend component.
Q1 --> Quadrature phase signal
I1 --> In-phase signal
Period --> Dominant Cycle in bars
SmoothPeriod --> Period with complex averaging
DCPeriod ---> Dominant Cycle Period
Trendline ---> IT fast line
SmoothPrice ---> IT slow line
Trend ---> Trend identifier: 1 for trend; 0 for cycle.
LeadSine ---> Lead Sine Wave signal
DCSine ---> Sine Wave signal
long ---> long entry signal
short ---> short entry signal
Pros and Cons
100% John F. Ehlers definition translation of original work, even variable names are the same. This help readers who would like to use pine to read his book. If you had read his works, then you will be quite familiar with my code style.
NOTE: Due to limited performance oberved from "Market Mode Identification" part, this trading system I observed was not so powerful.
Remarks
The 11th script for Blackcat1402 John F. Ehlers Week publication.
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
[blackcat] L2 VWAP CCI Trading SystemLevel: 2
Background
Volume-Weighted Average Price (VWAP) is a trading benchmark used by traders that indicates the average price that a security has traded for throughout the day based on volume and price. This is important as it gives traders insight into the trend and value of a security.
The Commodity Channel Index (CCI) indicator was created to identify bullish and bearish market cycles, as well as to define market turning points and the strongest and weakest market periods. CCI was developed for commodities and quickly found application in other markets, including forex.
Function
blackcat L2 VWAP CCI Trading System is an innovative indicator that combines vwap and cci indicator together. Not only long and short entries can be disclosed, but also the overbought and oversold zones are clearly observed.
Key Signal
cci ---> vwap cci indicator output
long --> long entry condition
short --> short entry condition
backtest --> indicator backtest scheme "NLX-L3 Backtest" required input source for strategy backtest
longentry --> visual long entry
shortentry --> visual short entry
Pros and Cons
Pros:
1. exact long and short entries are produced by overbought and oversold conditions
2. support "NLX-L3 Backtest" framework
Cons:
1. noise may be produced under extreme market condition
2. due to this is un-optimized version, time frame and trading pairs need to be selected
Remarks
Courtesy of @nilux "NLX-L3 Backtest" easy backtest framework for dummies.
Step by step backtest guide with "NLX-L3 Backtest" framework:
STEP1: Add this indicator into your chart
STEP2: Add "NLX-L3 Backtest" into your chart
STEP3: Click "Settings" gear icon of "NLX-L3 Backtest" to select "Select L2 Indicator" in the 1st line as "blackcat L2 VWAP CCI Trading System: backtest"
STEP4: Configure your backtest other settings under "NLX-L3 Backtest" framework
STEP5: Click "OK" and view the results in "Strategy Tester" tab
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
[blackcat] L2 KDJ Trading SystemLevel: 2
Background
The KDJ oscillator display consists of 3 lines (K, D and J - hence the name of the display) and 2 levels. K and D are the same lines you see when using the stochastic oscillator. The J line in turn represents the deviation of the D value from the K value. The convergence of these lines indicates new trading opportunities. Just like the Stochastic Oscillator, oversold and overbought levels correspond to the times when the trend is likely to reverse.
Function
L2 KDJ Trading System provides long and short entries for trading.
Key Signal
k --> KDJ K value
d --> KDJ D value
j --> KDJ J value
shortentry --> short entry signal
longentry1 --> long entry signal without confirmation
syn --> long entry signal with confirmation
Pros and Cons
Pros:
1. Candle height can indicates the strength of trend and different colors are used for indicating KD relationship
2. Exact short and long entries are disclosed
Cons:
1. It may satruate for extreme conditions of long and short as described in the chart, which is inherent KDJ shortcoming
Remarks
Another algorithm for KDJ trading with exact short and long entries
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
[blackcat] L3 Banker Fund Flow Trend OscillatorLevel: 3
Background
The large funds or banker fund are often referred to as Whale. Whale can have a significant impact on the price movements in various markets, especially in cryptocurrency . Therefore, how to monitor Whale trends is of great significance both in terms of fundamentals and technical aspects.
Function
L3 Banker Fund Flow Trend Oscillator can give you a model of complete banker fund flow operation in cycles. Although the script is not so complicated, it is comprehensive to disclose the price trend. That is the reason why I list this as Level 3. Each cycle of banker fund flow may have 5 steps in max as entry, increase position, decrease position, exit, and weak rebound for exit.
Key Signal
1. banker fund entry with yellow candle
2. banker increase position with green candle
3. banker decrease position with white candle
4. banker fund exit/quit with red candle
5. banker fund weak rebound with blue candle
Pros and Cons
Pros:
1. Model banker fund behavior in complete cycles
2. Overbought and oversold can be directly observed due to oscillator nature
3. the transition points are clear for entry or exit
Cons:
1. Simple modelling, no further complex behaviors can be disclosed
2. trade by trend following the banker fund, it is still under the trend analysis prerequisite
Remarks
I believe you will like this one.
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
Cycles StrategyThis is back-testable strategy is a modified version of the Stochastic strategy. It is meant to accompany the modified Stochastic indicator: "Cycles".
Modifications to the Stochastic strategy include;
1. Programmable settings for the Stochastic Periods (%K, %D and Smooth %K).
2. Programmable settings for the MACD Periods (Fast, Slow, Smoothing)
3. Programmable thresholds for %K, to qualify a potential entry strategy.
4. Programmable thresholds for %D, to qualify a potential exit strategy.
5. Buttons to choose which components to use in the trading algorithm.
6. Choose the month and year to back test.
The trading algorithm:
1. When %K exceeds the upper/lower threshold and then hooks down/up, in the direction of the Moving Average (MA). This is the minimum entry qualification.
2. When %D exceeds the lower/upper threshold and angled in the direction of the trade, is the exit qualification.
3. Additional entry filters include the direction of MACD, Signal and %D. Also, the "cliff", being a long entry is a higher high or a short entry is a lower low.
4. Strategy can only go "Long" or "Short" depending on the selected setting.
5. By matching the settings in the "Cycles" indicator, you can (almost) see what the strategy is doing.
6. Be sure to select the "Recalculate" buttons, to recalculate on every new Tick, for best results.
Please click the Like button and leave a comment if you appreciate this script. Improvements will be implemented as time goes on.
I am not a licensed trade advisor. This strategy is for entertainment only. Use at your own risk!
[blackcat] L3 Composite MACD-KDJ-RSI-WR-DMI Trading SystemLevel: 3
Background
The moving average convergence / divergence (MACD) indicator is a pulse oscillator that is mainly used to trade trends. Although it is an oscillator, it is not typically used to identify overbought or oversold conditions. It appears in the diagram as two lines that oscillate without limits. The crossing of the two lines provides trading signals similar to a system with two moving averages.
The KDJ indicator is a technical indicator used to analyze and predict changes in stock performance and the price patterns of a traded asset. The KDJ indicator is also known as the random index. It is a very useful technical indicator that is most commonly used in short term stock market trend analysis. KDJ is a derived form of the Stochastic Oscillator Indicator with the only difference that an additional line is called the J-line. Values of% K and% D indicate whether the security is overbought (over 80) or oversold (under 20). The moments when% K exceeds% D are the moments to sell or buy. The J line represents the deviation of the% D value from% K. The value of J can exceed for the% K and% D lines on the graph.
The Relative Strength Index (RSI) developed by J. Welles Wilder is a pulse oscillator that measures the speed and change of price movements. The RSI hovers between zero and 100. Traditionally, the RSI is considered overbought when it is above 70 and oversold when below 30. Signals can be generated by looking for divergences and error fluctuations.
Williams% R, also known as the Williams Percent Range, is a type of momentum indicator that moves between 0 and -100 and measures overbought and oversold levels. The Williams% R can be used to find entry and exit points in the market. The indicator is very similar to the stochastic oscillator and is used in the same way.
The Directional Movement Index (DMI) is an indicator developed by J. Welles Wilder in 1978 to determine in which direction asset prices are moving. The indicator does this by comparing previous highs and lows and drawing two lines: a positive movement line (+DI) and a negative movement line (-DI). The optional third line is called "Directional Movement (DX)" and it shows the difference between the two lines. When +DI is higher than -DI, the upward pressure on the price is greater than the downward pressure. If -DI is higher than +DI, the price will have greater downward pressure. This indicator can help traders assess the trend direction. Crosses between lines are sometimes used as buying and selling signals.
Function
L3 Composite MACD-KDJ-RSI-WR-DMI Trading System is a simple trading system composed of MACD-KDJ-RSI-WR-DMI together. It can produce 6 types of long entries and 3 types of short entries. It utilizes divergence effect from MACD, KDJ and RSI to detect trend reversal. 6 types of Bottom and top divergence labels are displayed in the chart together with "BUY" and "SELL".
NOTE:In order to make the actual label of the chart more clear, this script does not add stop loss and take profit functions and according labels.
Signal
b1~b3 ---> MACD, KDJ, RSI bottom divergence signal respectively, which hint bull trend may start soon.
d1~d3 ---> MACD, KDJ, RSI top divergence signal respectively, which hint bear trend may start soon.
longentry1~6 ---> with composite indicators together, 6 types of long entry signal are produced.
shortentry1~3 ---> with composite indicators together, 3 types of short entry signal are produced.
Pros and Cons
Pros:
1. excellent open-close, long-short entry signal generation with multiple powerful indicators
2. indicator resonance can help to promote the confidence level of signal and divergence alerts
Cons:
1. integration of multiple indicators is not deeply optimized. fake signal may be produced without filtering schemes
2. no range filter is added
Remarks
To celebrate number of followers exceeds 100. This is my first L3 script published.
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
ASFX EMAs, ADR, Asian Range, and Pivot PointsThis indicator combines the essential indicators that ASFX traders use, including the EMAs (8, 21, 50, 200, 800), the Average Daily Range, the Asian Range, and the Pivot Points.
The EMAs should be used as dynamic supports and resistances. We could use it to find entries like when there is a bullish engulfing coming off the 21 EMA.
The Average Daily Range tells us the how many pips the pair moves on average. We could use it to measure risk/reward ratios or see it as another resistance.
The Asian Range is displayed as two lines indicating the Asian Session's High and Low. This could help us to determine whether the pair is ready for a breakout. We might avoid setups that are still in the Asian Range as the pair might still be indecisive.
The Pivot Points are also another form of support and resistance which are calculated using the previous day's data. The Pivot Points displayed in this indicator only include the Pivot, R1, R2, R3, S1, S2, S3. (R4, R5, S4, S5 are not included)
All of these indicators should give us a read of the trend. If the EMAs are beautifully fanned out with the 8 EMA on the top and the 800 EMA on the bottom and the price is above the Asian Range and the Pivot, we might keep an eye for a long entry.
[blackcat] L2 Composite SMA and BIAS ScalperLevel: 2
Background
A simple moving average (SMA) calculates the average of a selected price range, usually closing prices, based on the number of periods in that range. A simple moving average is a technical indicator that can be used to determine whether an asset price is holding a bull, a bear, or is reversing.
The bias shows the moving average rate of deviation. Also known as the rate of deviation, or y-value for short, is an indicator that reflects the degree of deviation between the price and the SMA over a given period by calculating the percentage difference between the market index or the closing price and a moving average to allow for receive that the price reverses or recovers due to a deviation from the moving average trend with strong fluctuations and the price moves within the normal fluctuation range Build credibility to continue the original potential.
Function
L2 Composite SMA and BIAS Scalper is mainly based on a cluster of simple moving averages and their bias values to produce long and short entry points. Three different strategy to generate long and short entries are demostrated together. That is why this is called "Composite".
Key Signal
botsig --> indicating bottom zone
topsig --> indicating top zone
buysigI --> long entry type I
buysigII --> long entry type II
buysigIII --> long entry type III
selsigI --> short entry type I
selsigII --> short entry type II
selsigIII --> short entry type III
Pros and Cons
Pros:
1. common sma(), rsi() and bias() are utizlied to generate exact long and short entries
2. alerts for bottom and top zones
Cons:
1. SMA parameters may need optimization for specific trading pairs
2. No stop loss or take profit scheme is introduced.
Remarks
This is promising but need efforts to refine it.
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
Popgun Bar PatternI created this script to research the trading effectiveness of the Popgun Bar Pattern.
The Popgun Bar Pattern is found when 3 candlesticks in order form the following pattern:
0. Any bar that is then followed by:
1. An inside bar. This is a bar that is completely engulfed by the bar before it. It will have a lower high and a higher low than the previous bar.
2. An outside bar immediately after. This is a bar that completely engulfs the prior inside bar. It will have a higher high and a lower low than the previous bar.
Simply put, the Popgun Bar Pattern is an inside bar followed by an outside bar.
I would highly recommend incorporating this signal as a "trigger" for existing technical analysis. Used in isolation it may not have a high probability of success.
To make it more effective as a trigger to a trading signal I incorporated into my code an Entry, Stop, and a Target dot.
The Entry dot is offset from the low of a bearish Popgun Bar Pattern or the high of a bullish Popgun Bar Pattern by a factor of ATR. The default ATR percentage is 33% but can be adjusted.
The Stop dot is based on the recent highest high (bearish) or lowest low (bullish) of a set range (default is 9 bars) plus/minus the ATR percentage buffer.
The Target dot is automatically calculated from the entry based on a configurable reward factor (default is 3) from the entry to stop distance. This projects a potential 3:1 reward/risk trade by default.
There is an additional alert condition which can be configured at the end of the script.
[blackcat] L1 Elliott Wave3 CatcherLevel: 1
Background
Elliott wave theory is a method of technical analysis that looks for recurring long-term price patterns that are related to persistent changes in investor sentiment and psychology. The theory identifies waves that are identified as impulse waves that form a pattern and corrective waves that counteract the larger trend.
Function
L1 Elliott Wave3 Catcher is trying to observe Elliott wave more clear with different color candles.
Key Signal
var7 --> bull reveral signal which exists along motive wave
var7-var9 --> long in green color; short in red color; retracement in fuchsia color
var26/27/28 --> they are used for wave swing low detection and long entry
Pros and Cons
Pros:
1. Exhibit Elliott waves in different color candles
2. Highlight motive wave with yellow candles
3. Detect bottom and long entry points
Cons:
1. No complete long and short entries can be obtained
2. It cannot be applied for crypto due to lack of financial() functions
Remarks
Tribute to Elliott
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
[blackcat] L1 Composite RSI Trend OscillatorLevel: 1
Background
The Relative Strength Index (RSI) is a technical indicator for analyzing financial markets. It is intended to represent the current and historical strength or weakness of a trading pair or a market based on the closing prices of a last trading period.
Function
L1 Composite RSI Trend Oscillator utilizes candles to indicate trend. E.g. yellow candles for bull and fuchsia candles for bear. NOTE: it is inverted to RSI from bull bear perspective. Colorful RSI with yellow indicating bull and fuchsia indicating bear.
Key Signal
lwr1 --> trend oscillator fast line (lwr1 >= lwr2 for bear)
lwr2 --> trend oscillator slow line (lwr1 < lwr2 for bull)
botzone --> bottom zone indicates oversold with green
topzone --> top zone indicates overbought with red
longentry --> long entry signal
shortentry --> short entry signal
Pros and Cons
Pros:
1. combines both the benefit of RSI response and trend oscillator candles
2. divergence can be observed easily
Cons:
1. It may satruate for extreme conditions of long and short.
2. Not accurate for long and short entries and need filtering out noise and fake signal.
Remarks
NA
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
L1 Bottomline Reversal IndicatorLevel: 1
Background
Identify the trend - By filtering the trend, traders can select entry points using overbought and overbought signals In an uptrend, for example, traders filter for oversold signals as “long entry” points that correlate with the direction of the trend.
Function
L1 Bottomline Reversal Indicator utilizes three levels of support moving averages as detector of oversold behavior. Once the close breakout the 3rd level, it indicates bottom line appear and long entry there is commonly safe.
Key Signal
sma13 --> typical price trend
lifeline --> bull life line. if close is above lifeline, it indicates bullish state.
costline --> the 1st level of support which may have rebounce once the price drop on it for the first time.
lowbuy --> the 2nd level of support, which indicates oversold starts.
bottomline --> the 3rd level of support, which indicate extreme oversold, long entry there is safe in common sense.
Pros and Cons
Pros:
1. mid-long term trading guide
2. helpful for large time frame e.g. day or week
Cons:
1. Not so stable for small time frame
2. No exit scheme is disclosed.
Remarks
NA
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
L2 Candle Pattern ScalperLevel: 2
Background
Japanese candlesticks provide more detailed and accurate information about price movements compared to bar charts. They provide a graphical representation of the supply and demand behind the price promotions for each period. Each candlestick contains a central part that indicates the distance between the opening and closing of the security being traded, the area called the body.
Scalping is a trading strategy that aims to take advantage of minor changes in the stock price. Traders using this strategy place anywhere from 10 to a few hundred trades in a single day with the belief that small moves in the stock price are easier to catch than large ones. Traders who implement this strategy are known as scalpers. Lots of small wins can easily lead to big wins if a strict exit strategy is used to prevent big losses.
Function
L2 Candle Pattern Scalper utilizes candle pattern to decide long and short entry signal. It use inherent candles' relationship nearby to judge the market trend is up or down and decide to long or short.
Signal
buysmall --> long entry
exitred --> short entry
Pros and Cons
Pros:
1. its response is fast because OHLC candle is the raw source of market
2. it is suitable for scalping because it studies nearby candles to judge very short term trend change
Cons:
1. Mid-long term change is missing from this indicator, although I use fast and slow lines to indicate the mid-term trend.
2. No stop loss or take profit scheme is introduced.
Remarks
This is promising but need efforts to refine it.
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
L1 Buy after Dump DetectorLevel: 1
Background
The so-called "Buy after Dump" refers to the phenomenon in which the stock price sometimes rebounds temporarily due to the rapid decline in the falling market. The rebound was smaller than the decline, and the downtrend resumed after the rebound.
Function
L1 Buy after Dump Detector is one of my research to see win rate of a "Buy after Dump" chance. The principle is that I use ema() and OHLC to model a whale dump behavior. After the dump wave, I use KDJ to indicate several long entry points.
Key Signal
dump --> whale dump signal
fundready --> it indicate the end of a dump and make fund ready to long entry
longentry --> long entry signal generated from KDJ resonating with dump and fundready signal
Pros and Cons
Pros:
1. it can detect obvious dump and depict the decay of dump wave
2. use resonance to generate long entry
Cons:
1. it may be risky to "buy after dump" which may require take profit method here because the opportunity may be very short
2. KDJ is too sensitive in large time frame and have many long entry signals (the closer to dump wave, the better based on experience)
Remarks
Very interesing stuff, but rare of people trade with such crazy method. I suggest this is ONLY for backtest study of market behavior.
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
Fast ROI checker 50% Gann RetracementThis script is based on the Gann's 50% Retracement rule.
First, the ATH (All Time High) and ATL (All Time Low) are calculated; then, the 50% retracement level is found.
With this 50% level, we'll calculate the maximum price entry to keep a ROI which is set in the parameters.
For exemple, I only want to buy assets which can make a x16 before the 50% retracement , the script will calculate the maximum entry to respect this ROI .
If the Max entry price is above the ATL , the line will be green; if not, the line will be red.
To faster the search in the watchlist, when the price is between the Max Entry line and the ATL line, the background is painted in green.
It's not an investment strategy, you have to find your proper indicators to make purchases.
Enjoy !
Position Size CalculatorThis is a script to make calculating position size easier. It calculates position size as a percentage of account balance and Risk/Reward based on input values of entry, exit, stoploss and shows the R/R box similar to tradingview's R/R tool. There is an option to toggle showing label and choosing of label text color.
Have to enter the following inputs in order for it to work properly
1. Account Balance : Account balance in either whatever is base currency of account
2. Risk % : Percentage of account balance to lose if stop is hit.
3. Entry
4. Stoploss
5. Target Price
Notes:
- Target Price is required for calculating R/R but is not necessary to calculate position size.
- Formula to calculate position size is : Balance * Risk % / SL %
- Formula to calculate R/R is : TP % / SL %
- SL % = ( Entry - SL ) / Entry * 100
- TP % = (TP - Entry ) / Entry * 100
Thanks to u/Chonky_ for help with feedback.