APIBridge Advanced RSI + EMAUsing Pinescript, we will use charts of Cash/Future to trade in Options. Note this strategy works well with even the free version of TradingView.
The Relative Strength Index ( RSI ). Is a momentum oscillator that measures the speed and change of price movements. The RSI oscillates between zero and 100. Increasing RSI shows increasing bullish momentum. Decreasing RSI shows increasing bearish momentum. We take RSI upper bound as 80 to indicate bullish momentum and RSI lower bound as 20 to indicate bearish momentum.
Since this strategy uses underlying data (cash/future) to place trades in Options, please ignore the backtest of this strategy given by TradingView. TradingView does not provide options data but this strategy bypasses it.
Strategy Premise
The Relative Strength Index ( RSI ) is a momentum oscillator that measures the speed and change of price movements. The RSI oscillates between zero and 100. Increasing RSI shows increasing bullish momentum. Decreasing RSI shows increasing bearish momentum. We take RSI upper bound as 80 to indicate bullish momentum and RSI lower bound as 20 to indicate bearish momentum.
apibridge rsi + ema options / futures / commodity algo strategy logic
Long Entry: When RSI crosses over oversold level and fast ema crosses over slow ema , send LE .
Long Exit: When price hit Stop loss or Target .If SL/ TGT is not hit and reverse signal is sent by strategy then exit the Long
Short Entry : When RSI crosses under overbought level and fast ema crosses under slow ema , send SE
Short Exit : When price hit Stop loss or Target. If SL/ TGT is not hit and reverse signal is sent by strategy then exit Short
TradingView Parameters
1. Start Date(Mandatory) : The strategy does not take trade before this date
2. End Date(Mandatory) : The strategy does not take trade after this trade
3.RSI Length(Mandatory): Number of bars used to calculated RSI .
4.Fast Ema Length(Mandatory): Length for fast ema
5.Slow Ema Length(Mandatory): Length for slow ema
6.Source for rsi and ema calculation(Mandatory): Source to use for rsi and ema like close , open , high , low , hl2 etc
7.Overbought(Mandatory): To specify upper band of RSI .
8.Oversold(Mandatory): For specifying lower band of RSI .
9.plot ema or rsi (Mandatory) : Due to difference in scales of rsi and ema , strategy can only plot one of both precisely (the strategy logic which is based on both esi and ema is unaffected by this choice)
10.Quantity: We use this to specify the trade quantity (for Nifty min 75)
11.Custom Stop Loss in Points: Movement in chart price against the momentum which will trigger exit in options positions
12.Custom Target in Points: Movement in chart price against the momentum which will trigger exit in options positions
13.Base symbol: This is the base instrument symbol like NIFTY or BANK NIFTY .
14.Strike distance from ATM: Our default strike selection is considered as first ATM option (with nearest distance, only 100s are considered ). This strike
distance allows to calculate ATM options which are at fixed distance.
15.Expiry: Expiry of option. Weekly and monthly both expiry are allowed.
16.Instrument: For index instrument will be OPTIDX, for stock instrument will be OPTSTK
17.Strategy Tag: The Strategy of Nifty options configured in Api bridge.
Cari dalam skrip untuk "algo"
APIBridge Candlestick Reversal SystemStrategy Premise
This strategy uses the Wick Reversal System introduced in Pivot Boss and generates signals based on Candlestick Patterns.
– Wick Reversal System
– Extreme Reversal System
– Outside Reversal System
– Doji Reversal System
Wick Reversal System:
1. For a Bullish reversal wick to exist, the close of the bar should fall within the top 35% of the overall range of the candle.
2. For a bearish reversal wick to exist, the close of the bar should fall within the bottom 35% of the overall range of the candle.
Extreme Reversal System:
1. The first bar of the pattern is about two times larger than the average size of the candles in the look-back period.
2. The body of the first bar of the pattern should encompass more than 50% of the bar’s total range, but usually not more than 85%.
3. The second bar of the pattern opposes the first. If the first bar of the pattern is bullish (C > 0), then the second bar must be bearish (C < 0). If the first bar is bearish (C < 0), then the second bar must be bullish (C > 0).
Outside Reversal System:
1. The Engulfing bar of a bullish outside reversal setup has a low that is below the prior bar’s low (L < L) and a close that is above the prior bar’s high (C > H).
2. The Engulfing bar of a bearish outside reversal setup has a high that is above the prior bar’s high (H > H) and a close that is below the prior bar’s low (C < L).
3. The Engulfing bar is usually 5 to 25 percent larger than the size of the average bar in the look-back period.
Doji Reversal System:
1. The open and close prices of the Doji should fall within 10 percent of each other, as measured by the total range of the Candlestick .
2. For a Bullish Doji , the high of the Doji Candlestick should be below the ten-period Simple Moving Average (H SMA (10)).
4. For a Bearish Doji , one of the two bars following the Doji must close beneath the low of the Doji (C < L or C < L).
5. For a Bullish Doji setup, one of the two bars following the Doji must close above the high of the Doji (C > H) or C > H)
Strategy Logic
Long Entry:
When Low Pivot Point and Wick Reversal System and Bullish Wick Reversal Setup Pattern Send, LE
OR When Low Pivot Point and Extreme Reversal System and Bullish Extreme Reversal setup Send ,LE
OR When Low Pivot Point and Outside Reversal System and Bullish Outside Reversal Setup Send LE
OR When Low Pivot Point and Doji Reversal System and Bullish Doji Reversal Setup Send, LE
Long Exit:
Either when SL or Target is hit. If SL/ TGT is not hit and
When High Pivot Point and Wick Reversal System and Bearish Wick Reversal Setup Pattern Send LXSE
OR When High Pivot Point Extreme Reversal System and Bearish Extreme Reversal setup Send LXSE
OR When High Pivot Point Outside Reversal System and Bearish Outside Reversal Setup Send LXSE
OR When High Pivot Point Doji Reversal System and Bearish Doji Reversal Setup Send, LXSE
Short Entry:
When High Pivot Point and Wick Reversal System and Bearish Wick Reversal Setup Pattern Send SE
OR When High Pivot Point Extreme Reversal System and Bearish Extreme Reversal setup Send SE
OR When High Pivot Point Outside Reversal System and Bearish Outside Reversal Setup Send SE
OR When High Pivot Point Doji Reversal System and Bearish Doji Reversal Setup Send, SE
Short Exit:
Either when SL or Target is hit. If SL/ TGT is not hit and
When Low Pivot Point and Wick Reversal System and Bullish Wick Reversal Setup Pattern Send, SXLE
OR When Low Pivot Point and Extreme Reversal System and Bullish Extreme Reversal setup Send ,SXLE
OR When Low Pivot Point and Outside Reversal System and Bullish Outside Reversal Setup Send SXLE
OR When Low Pivot Point and Doji Reversal System and Bullish Doji Reversal Setup Send, SXLE
Candlestick Reversal System Algo Strategy Parameters for TradingView Charts
1.Length: This is number of bars used to calculated Ex: 14 à previous 14 candles are used
2.Backtesting : Use this to backtest the strategy between Starting and Ending Date and time , it can also be used to set trades in future time
3.Alert_Message : Need to copy while creating alert into Message Box
4.Trade Setup : Intraday / Positional (Selecct accordingly)
5.Start Time Stop Time (Session 1) : Intraday / Positional start time and end time of trade for session 1
6.End Session 1 : Define time to exit any existing position taken in session 1 so that exchange charges will not apply
7.Use Second Session : Check this to use second intraday session
8.Start Time Stop Time (Session 2) : Intraday / Positional start time and end time of trade for session 2
9.End Session 1 : Define time to exit any existing position taken in session 2 so that exchange charges will not apply
10.Use Target : check if you want to set required target if not cheque will not applicable
11.Use StopLoss : Cheque if you want to set stop loss if not cheque will not applicable
12.Trailling Stoploss : Cheque if you want to set trailing stop loss if not cheque will not applicable
13.Point Or Percentage For TG SL : Use Points or Percentage as per your choice
14.Target : Set as per the selection of (Point Or Percentage For TG SL)
15.Stop Loss : Set as per the selection of (Point Or Percentage For TG SL)
16.TSL_Type : Select as per your logic in %/ATR/Points
17.TSL_Input : Set in case you select %/Points in TSL_Type
18.ATR Length : Set as per your logic if you select ATR in the field of TSL_Type
19.ATR_Mult : Set as per your logic if you select ATR in the field of TSL_Type
20.Segment : Select segment of your logic EQ/FUTIDX/FUTSTK/OPTIDX/OPTSTK/FUTCUR/FUTCUM (Used in case of option / Futures )
21.Select Expiry Date : Select the expiry date of your trade as per the segment you selected (Used in case of option / Futures )
22.Select Expiry Month : Select the expiry Month of your trade as per the segment you selected (Used in case of option / Futures )
23.Year : Select the expiry Year of your trade as per the segment you selected (Used in case of option / Futures )
24.Quantity : Enter the quantity in which you want to trade (Used in case of option / Futures )
25.Product Type : Select MIS/Normal/ CNC as per your logic (Used in case of option / Futures )
26.Order Type : Select Market/Limit as per your logic (Used in case of option / Futures )
27.Strategy Tag : Enter the value in case you are using webhook / advance template in APIBridgeTM
28.Lotsize : Enter the lotsize as per your lotic and quentity selection (Used in case of option / Futures )
29.STEP (OTM/ATM/ ITM ) : Select OTM(+1)/ATM(0)/ ITM (-1) as per your logic works in case of options only
30.DIFFERENCE_BETWEEN 2 STRIKE : Select difference of 2 strikes you have used in APIBridge symbol setting list, like for Nifty 50 BankNifty 100
31.APIB Port : Set as per provided to you by Algoji in case of webhook / advance templet
The Segment full form is given below
EQ Equity
FUTIDX Future Index
FUTSTK Future Stock
OPTIDX Index Option
OPTSTK Stock Option
FUTCUR Futcur Currency
FUTCUM Future Commodity
Most Power V5 Most Power V5
The MOST indicator is an indicator used as a Moving Stoploss. The MOST indicator also generates a buy signal in case the prices rise, unlike the traditional indicators that allow you to make stop losses.In the MOST POWER V5 indicator, stoploss generates its signals using moving averages such as 'SMA', 'EMA', 'WMA', 'VWMA', 'HMA', 'SMMA', 'DEMA' rather than just the current price. In this way, it aims to prevent false signals that may be produced by excessive price movements during the day.
MOST POWER Indicator follows the average by preserving the stop loss distance in the movement of the moving average in the same direction.
The second variable that creates the MOST POWER curve is the stop loss distance that gives power to MOST with the moving average used and the shift rate that provides the stop signal. In this version, this distance is prepared with 2 separate inputs for both buy and sell.You can set these values as "percentage for long trend" and "percentage for short trend" in the indicator input properties.
You can also enter your Take Profit-1, Take Profit-2-, Take Profit-3- and Stop Loss levels in the indicator input properties, especially if you are interested in algo trading or to take advantage of the wonderful alarm setup features of tradingview and get the chance to get maximum profit. (If you enter Take Profit-1, Take Profit-2-, Take Profit-3- and Stop Loss levels as 0. Only buy and sell labels will appear on the indicator.)
Also, activate the amplitude filter option from the indicator input settings to get less signal and filter our inputs.
In addition, the entry price, take profit1, take profit2, take profit3 values for the last transaction opened to make things easier are located in the upper right corner of your graph as a table.
Important note: No indicator guarantees investment. That's why the tests you will do before real trades are very important in this indicator. I wish you all successful trades.
i will show how works with examples
Example 1
If you enter Take Profit-1, Take Profit-2-, Take Profit-3- and Stop Loss levels greater than 0
Example 2
If you enter Take Profit-1, Take Profit-2-, Take Profit-3- and Stop Loss levels as 0 (u will see only buy - sell labels)
Example 3
if select Amplitude Filter is on . you will see less signal
how works Amplitude Filter whats logic ?
if Amplitude Filter is active the signal from mostpower will be combined with Amplitude Filter.
for example, if the amplitude value is 2, the highest price and the lowest price of the last 2 bars are calculated. then this amplitude value is calculated for sma with its source high and low. Based on these values, the trend is determined in the amplitude of the price movement.
Important note: No indicator guarantees investment. That's why the tests you will do before real trades are very important in this indicator. I wish you all successful trades.
SBS AlgoHello traders, I am here again with a new and improved indicator.
This indicator is based on a pivot breakout algorithm which gives buy and sell signals according to the breakout of trendline. This is an advanced version of another script. It also takes price action into consideration along with some basic indicators like MACD and ADX to give good entry signals.
NOTE: This indicator is not designed to take entries completely based on signals it gives. Please use it along with your trading strategy to add more confluence to your trading system and maximize your profits.
I hope you guys will like this one too .Enjoy 👍
In case you find any bug, please do report in comment section .Thank you.
Strength Volatility Killer - The Quant ScienceStrength Volatility Killer - The Quant Science™ is based on a special version of RSI (Relative Strength Index), created with the simple average and standard deviation.
DESCRIPTION
The algorithm analyses the market and opens positions following three different volatility entry conditions. Each entry has a specific and personal exit condition. The user can setting trailing stop loss from user interface.
USER INTERFACE SETTING
Configures the algorithm from the user interface.
AUTO TRADING COMPLIANT
With the user interface, the trader can easily set up this algorithm for automatic trading.
BACKTESTING INCLUDED
The trader can adjust the backtesting period of the strategy before putting it live. Analyze large periods such as years or months or focus on short-term periods.
NO LIMIT TIMEFRAME
This algorithm can be used on all timeframes.
GENERAL FEATURES
Multi-strategy: the algorithm can apply long strategy or short strategy.
Built-in alerts: the algorithm contains alerts that can be customized from the user interface.
Integrated indicator: indicator is included.
Backtesting included: quickly automatic backtesting of the strategy.
Auto-trading compliant: functions for auto trading are included.
ABOUT BACKTESTING
Backtesting refers to the period 13 June 2022 - today, ticker: AVAX/USDT, timeframe 5 minutes.
Initial capital: $1000.00
Commission per trade: 0.03%
Tripple EMA Strategy - Dhan HQDear Traders,
Here with presenting the new Indicator (Strategy) which is primarily built based on the the EMA moving Average and Candlestick Pattern.
Idea behind this Indicator: I am sure every trader would have traded using Moving average one day or the other. And Moving average is theoretically they are Lagging and the EMA are used in place of Moving average just to avoid a bit of Lag to take advantage of those accuracy while avoiding the Lag. In order to be successful in trading Money Management and Risk Management is very much crucial and should be part of every trade we place.
What this indicator is providing:
Based on the EMA and candlestick patterns and using the inputs provided for RISK and Money Management options, Indicator continuously scans for trading opportunities and provides alerts for possible trades. I have tried to capture some analytical inputs for one to think and take control over the Reward, Risk and Money management parameters to tweak the indicator accordingly.
Below are the Analytical outputs provided:
1. Total Trades taken (History till present) and its profitability % & appx PNL
2. Current Dates & Yesterday's Trades along with its appx PNL
3. Long Trades performance vs Short Trades performance
4. Retrieve PNL values post specified Date in the Input settings.
5. Last 7 Days PNL
6. Month's PNL
Note: There is known BUG in the calculation where the first date of the month for Monthly PNL value is a trading Holiday then Monthly PNL is being displayed as 0. similarly this Bug is flowed for Last 7 Days PNL. This will be addressed in upcoming version along with planned release.
Alerts & Notifications:
There are basically 2 types of Alerts provided one with General Notification and Other with Dhan HQ notifications to support Algo Trades for Dhan HQ Baskets.
Overview for Dhan HQ Trade Alerts:
1. When the Day Beginning (At Session Start) Hedge Position can be placed and shall be squared off post Closing the session
2. During the course of the Day Buy & Sell Baskets shall be executed
3. Can map the Trade Level SL values
4. Can map Daily Limit for SL to avoid excessive Loss. Upon Loss you could stop trades for the complete day or you may restart the trade post completion of X no of hours.
Enjoy!
DISCLAIMER: No sharing, copying, reselling, modifying, or any other forms of use are authorized for our documents, script / strategy, and the information published with them. This informational planning script / strategy is strictly for individual use and educational purposes only. This is not financial or investment advice. Investments are always made at your own risk and are based on your personal judgement. I am not responsible for any losses you may incur. Please invest wisely.
Happy to receive suggestions and feedback in order to improve the performance of the indicator better.
[KRONOS] DeviationsDescription
This indicator calculates the differences between the current price and the local support or resistance, and normalizes it into a range.
The value basis is calculated from a defined period of time that is then multiplied to get a standard deviations and a max. and min. value subtracted and divided into a final value.
It includes
Extreme zones. This value appears as blue and red lines which deviates from the oversold to overbought range.
Momentum. Lower time frame momentum is represented by a gray histogram as well as a signal line oscillating from a red to blue color.
Strong reversal. Red ( bearish ) and blue ( bullish ) columns will appear on the histogram when our algorithm detects that the strength of momentum is coming to an end indicative of a trend reversal.
Trend confirmation. Red or blue arrows will act as a trend confirmation.
Support and resistance . The zero line will frequently serve as a S/R area.
Divergences. You can use this indicator to detect potential pivot areas.
How to use?
Sell/Short when the histogram shows a red column and the signal line is in or above the overbought area (colored in red).
Buy/Long when the histogram shows a blue column and the signal line is in or below the oversold area (colored in blue).
extra tip: if you entered a trade based on the above conditions, you can partially increase your position each time you see a confirmation arrow.
[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
Commercial Algo Trend © Fzn V1Hello Traders,
Here i bring to you my 2nd Price Action Atr based Indictor combined with fib entry and exit trailing levels with minimum risk and maximum profit , as we must have seen at times as we enter the trend reverse and hits our stop losses . Keeping that in mind as i too struggled and made losses so i decided and focused more on minimizing the stop loss and only on confirmation of Long or Short trade is been initiated with proper Stop loss as explained in the images below , why should we give market our money ;) as we are here to make money :D .. There is no holy grail as Stop loss wont be hit but yes it will be way less and all alerts are based on candle close . One can use this on any chart and any timeframe and its very good for scalping too .ATR Trailing SL is added too just incase you want to enter and exit trend manually . Better results are on 15m and above . Hope you guys will like it and comment if you have any doubts..
-----------------
Disclaimer
Copyright by FaizanNawazz.
The information contained in my scripts/indicators/strategies/ideas does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, or individual’s trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My scripts/indicators are only for educational purposes!
Happy Trading!
QaSH DCA Algorithm 2.0This is the strategy version of the QaSH DCA Algorithm indicator. This strategy version of the script includes live trading alert functionality, so it can be considered as a replacement that makes the indicator version obsolete. With this version, features have been added and also you can take advantage of TradingView's native backtesting system for more detailed backtest results.
QaSH DCA Algorithm implements a DCA strategy that takes advantage of price volatility by buying dips to average down, and adjusting price targets as the break-even price gets lower.
How does the DCA strategy work?
When the specified entry condition has occurred, the indicator will set up several limit orders below the current price. If price goes up a specified amount, then the layers will be overwritten at the higher prices. If price goes down and fills the first layer (limit order), then the Take Profit price is plotted and will be sent in an alert. If more layers are filled, then the TP price will move down accordingly as it’s based on the average entry price (alerts on each TP update). This action of lowering the average entry and TP price mitigates your risk, and increases the likelihood of a Take Profit event happening. This script uses a simple "ASAP" mode, where each deal will start exactly 2 bars after the last trade ended. An EMA filter and stoploss function was also added for risk management.
How does this differ from other DCA bots?
1) The layer placements, order volume , and “take profit %” for each layer or “safety order” is much more customizable than what you get from other services. For example, I can choose to have my TP% change, depending on how big the price dip was. Maybe on safety order 1 I want 10% TP, but on safety order 7 might want a 2% TP.
2) The entry condition is adjustable. For example, this script has an ema filter for entries.
3) Settings optimization. You can take advantage of the replay feature and TradingView's backtest system to see how trades would have played out, and how much PnL you would have made
4) You can use this indicator on more than just crypto. You can easily set up alerts for manual trades on stocks, or you can integrate it with your stock broker API of choice and automate your trades.
5) When combining this with an automation service, you will get unmatched execution speed by running it on your dedicated machine.
6) I can offer a lifetime subscription to the indicator upon request.
What kind of market is it best used on?
QaSH DCA Algorithm is best used on assets that are volatile. That means large and frequent swings up and down. Also I recommend running this on many uncorrelated assets at the same time. Better yet, run it with a variety of different settings simultaneously on the same asset.
What settings should I use?
The default settings are decent for most markets, and provide a good balance between profit potential and downside protection, although you can use a wide variety of settings. In a strong bull market its best to either bring up your layers to catch smaller dips, or you can go big on the first few layers (maybe 4 layers, 25% on each layer for example). In a sideways or brearish market you'll want more downside protection, so you'll want the larger orders to be at lower prices, or possibly use the stoploss and EMA filter.
BollingerBands Strat + pending order alerts via TradingConnectorSoftware part of algotrading is simpler than you think. TradingView is a great place to do this actually. To present it, I'm publishing each of the default strategies you can find in Pinescript editor's "built-in" list with slight modification - I'm only adding 2 lines of code, which will trigger alerts, ready to be forwarded to your broker via TradingConnector and instantly executed there. Alerts added in this script: 14, 17, 20 and 23.
SCRIPT INCLUDES PENDING ORDERS AND ALERTS! Alert will be sent to MetaTrader when order is triggered, but not yet filled. That means if market conditions change and order does not get filled, it needs to be cancelled as well, and there are alerts for that in the script as well.
How it works:
1. TradingView alert fires.
2. TradingConnector catches it and forwards to MetaTrader4/5 you got from your broker.
3. Trade gets executed inside MetaTrader within 1 second of fired alert.
When configuring alert, make sure to select "alert() function calls only" in CreateAlert popup. One alert per ticker is required.
Adding stop-loss, take-profit, trailing-stop, break-even or executing pending orders is also possible. These topics have been covered in other example posts.
This routing works for Forex, indices, stocks, crypto - anything your broker offers via their MetaTrader4 or 5.
Disclaimer: This concept is presented for educational purposes only. Profitable results of trading this strategy are not guaranteed even if the backtest suggests so. By no means this post can be considered a trading advice. You trade at your own risk.
If you are thinking to execute this particular strategy, make sure to find the instrument, settings and timeframe which you like most. You can do this by your own research only.
B4Signals Algo PremiumB4Signals Algo indicator is made up of more than 7+ innovative indicators carefully designed to generate high probability buy and sell signals while reducing risk. It derives its entries and exits from the B4Signals Indicator with added trend detection and volatility containment.
B4Signals Algo indicator detects the direction of trends for any asset and on any timeframe allowing traders to increase their confidence in positions, follow trends and stay in positions longer. Profit taking is up to the trader.
B4Signals Algo features:
Automatically generated buy and sell signals
Algo model selection in settings
Algo sensitivity selection in settings
Background chart shading for market hours
B4Signals Algo has two modes to choose from; each with an aggressive and a conservative approach to trading:
Algo 1 - Aggressive = Aims to detect very early trends, and is thus more reactive. Developed to catch both short term and long term trend reversal and provide clarity in the current trend direction. This setting attempts to make it easier to come in early in a new trend as well as to stay longer in that trend.
Algo 1 - Conservative = Aims to detect trend continuation where the stock price is likely to keep its current trend.
Algo 2 - Aggressive = Aims to detect very early confirmed trends, and is thus more reactive. Developed to catch both confirmed short term and confirmed long term trend reversals and provide confirmation in the current trend direction.
Algo 2 - Conservative = Aims to detect very early confirmed trends in conjunction with a filter to keep out false or choppy signals to leave the most accurate ones.
Disclaimer
Copyright by B4Signals.
The information contained in our scripts/indicators/ideas does not constitute financial advice or a solicitation to buy or sell any securities of any type. We will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, or individual’s trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Consecutive Up/Down Strat + alerts via TradingConnector to ForexSoftware part of algotrading is simpler than you think. TradingView is a great place to do this actually. To present it, I'm publishing each of the default strategies you can find in Pinescript editor's "built-in" list with slight modification - I'm only adding 2 lines of code, which will trigger alerts, ready to be forwarded to your broker via TradingConnector and instantly executed there. Alerts added in this script: 12 and 15.
How it works:
1. TradingView alert fires.
2. TradingConnector catches it and forwards to MetaTrader4/5 you got from your broker.
3. Trade gets executed inside MetaTrader within 1 second of fired alert.
When configuring alert, make sure to select "alert() function calls only" in CreateAlert popup. One alert per ticker is required.
Adding stop-loss, take-profit, trailing-stop, break-even or executing pending orders is also possible. These topics have been covered in other example posts.
This routing works for Forex, indices, stocks, crypto - anything your broker offers via their MetaTrader4 or 5.
Disclaimer: This concept is presented for educational purposes only. Profitable results of trading this strategy are not guaranteed even if the backtest suggests so. By no means this post can be considered a trading advice. You trade at your own risk.
If you are thinking to execute this particular strategy, make sure to find the instrument, settings and timeframe which you like most. You can do this by your own research only.
3Commas BotBjorgum 3Commas Bot
A strategy in a box to get you started today
With 3rd party API providers growing in popularity, many are turning to automating their strategies on their favorite assets. With so many options and layers of customization possible, TradingView offers a place no better for young or even experienced coders to build a platform from to meet these needs. 3Commas has offered easy access with straight forward TradingView compatibility. Before long many have their brokers hooked up and are ready to send their alerts (or perhaps they have been trying with mixed success for some time now) only they realize there might just be a little bit more to building a strategy that they are comfortable letting out of their sight to trade their money while they eat, sleep, etc. Many may have ideas for entry criteria they are excited to try, but further questions arise... "What about risk mitigation?" "How can I set stop or limit orders?" "Is there not some basic shell of a strategy that has laid some of this out for me to get me going?"
Well now there is just that. This strategy is meant for those that have begun to delve into the world of algorithmic trading providing a template that offers risk defined positions complete with stops, limit orders, and even trailing stops should one so choose to employ any of these criteria. It provides a framework that is easily manipulated (with some basic working knowledge of pine coding) to encompass ones own ideas and entry criteria, while also providing an already functioning strategy.
The default settings have a basic 1:1 risk to reward ratio, which sets a limit and a stop equal distance from the entry. The entry is a simple MA cross (up for long, down for short). There a variety of MA's to choose from and the user can define the lengths of the averages. The ratio can be adjusted from the menu along with a volatility based adder (ATR) that helps to distance a stop from support or resistance. These values are calculated off the swing low/high of the user defined lookback period. Risk is calculated from position entry to stop, and projected upwards to the limit as a function of the desired risk to reward ratio. Of note: the default settings include 0.05% commissions. Competitive commissions of the leading cryptocurrency exchanges are .1% round trip (one buy and one sell) for market orders. There is also some slippage to allow time for alerts to be sent and orders to fill giving the back test results a more accurate representation of real time conditions. Its recommended to research the going rates for your exchange and set them to default for the strategy you use or build.
To get started a user would:
1) Make a copy of the code and paste in their bot keys in the area provided under the "3Comma Keys" section
- eg. Long bot "start deal" copied from 3commas in to define "Long" etc. (code is commented)
2) Place alert on desired asset with desired settings ensuring to select "Order fills and alert() function calls"
3) Paste webhook into the webhook box and select webhook URL alerts (3rd party provided webhook)
3) Delete contents of alert message box and replace with {{strategy.order.alert_message}} and nothing else
- the codes will be sent to the webhook appropriately as the strategy enters and exits positions. Only 1 alert is needed
settings used for the display image:
1hr chart on BTCUSD
-ATR stop
-Risk adjustment 1.2
-ATR multiplier 1.3
-RnR 0.6
-MAs HEMA/SMA
-MA Length 50/100
-Order size percent of equity
-Trail trigger 60% of target
Experiment with your own settings on your crypto of choice or implement your own code!
Implementing your trailing stop (optional)
Among the options for possible settings is a trailing stop. This stop will ratchet higher once triggered as a function of the Average True Range (ATR). There is a variable level to choose where the user would like to begin trailing the stop during the trade. The level can be assigned with a decimal between 0 and 1 (eg. 0.5 = 50% of the distance between entry and the target which must be exceeded before the trail triggers to begin). This can allow for some dips to occur during the trade possibly keeping you in the trade for longer, while potentially reducing risk of drawdown over time. The default for this setting is 0 meaning unless adjusted, the trail will trigger on entry if the trailing stop exit method is selected. An example can be seen below:
Again, optional as well is the choice to implement a limit order. If one were to select a trailing stop they could choose not to set a limit, which could allow a trail to run further until hit. Drawdowns of this strategy would be foregoing locking gains at highs on target on other trades. This is a trade-off the user can decide on and test. An example of this working in favor can be observed below:
Conclusion
Although a simple strategy is implemented here, the benefits of this script allow a user a starting platform to build their strategies from with built in risk mitigation. This allows the user to sidestep some of the potential difficulties' that can arise while learning Pine and taking on the endeavor of automating their trading strategies. It is meant as an aid, a structure, and an educational piece that can be seen as a "pick-up-and-go" strategy with easy 3Commas compatibility. Additionally, this can help users become more comfortable with strategy alert messages and sending strings in the form of alerts from Pine. As well, FAQs are often littered with questions regarding "strategy.exit" calls, how to implement stops. how to properly set a trailing stop based on ATR, and more. The time this can save an individual to get started is likely of the best "take-aways" here.
Happy trading
NVME Blackfire XNVME Blackfire X Indicator is a trend-confirmation indicator that includes Buy and Sell signals on the chart, Support & Resistance lines, Automatic Trendlines, Session Highs and Lows, Previous MTF Candle's Highs and Lows, Strategy Mode with Working Win/Loss Calculator, Built-In Position Size Calculator, Institutional Zones, Re-Entry Points and Filters, Customisable Market Dashboard and Alerts for Many Features.
The 2 main settings for the algorithm are 'Sensitivity' and 'Agility'. When you place Blackfire X onto your charts, you should be met automatically with the best settings we've found so far and don't worry if you are struggling to find settings because our system has an onboard system that provides you with an automatic "Best Settings" for the current pair that you are on. You can choose to enable this feature on the algorithm settings or simply see what is ideal on the dashboard too.
The 'Sensitivity' controls how quickly the algorithm responds to the market's trend changes. The higher the sensitivity, the less trades on the chart. The lower the sensitivity, the more trades you'll find on the chart.
The 'Agility' controls where the signals are placed within the trend change, a lower agility will give you signals closer to its reversal points and a higher agility will give you slower signals.
We also have the option to change the indicator to your trading style, there are four modes that heavily impacts the algorithm's calculations.
These are "default", "swing mode", "scalp mode", "strategy mode".
"Default" is our normal algorithm module that utilises the user's input to provide signals using a basic filtration system.
"Swing Mode" is our algorithm that has been modified to give signals that are more delayed for swing traders.
"Scalp Mode" is our algorithm that has been modified to give signals that are quick and fast for scalps.
"Strategy Mode" utilises our default mode but instead places the user in a mode where trades will only appear if a stop loss or a take profit area has been met by the price after the signal call.
Our third key option is our bar colour switches, there are multiple options such as "Cloud-Based", "Pivot Based", "S/R Based", "Change-Based" and "Two Colour Modes". NVME Blackfire X colours the candles in the direction of the trend and a green colour shows an uptrend, a purple colour shows an unconfirmed trend or often a ranging area and a red colour shows a downtrend.
We must let traders know that the signals should be used carefully and with a trader's strategy rather than following signals for the sake of it being printed there!
Since we want this algorithm to have necessary features and respond fast too, we have chosen only trend-following and analysis features that will be quick to use and easy to understand. We want this to be different from our Vanquisher X algorithm as that is a massive multi-tool full of features for traders to enjoy.
The first main feature is our 'Trend Cloud' system, it utilises two moving average plots that creates a cloud filling and with our algorithm you can customise both of the moving averages to any currently existing moving average in the PineScript Library.
The second feature is our 'Institutional Zones' system, which plots area of the market where the institutions have placed orders and these can be used as an extra support and resistance zone for trades. There is an input option that allows the user to get more or less zones and it is called "The Detection Strength", increasing this will show more zones whilst decreasing it will show less.
The third feature is our 'Automatic Trendlines' system, which utilises two input methods ('Trendline Period' and 'Trendline Detection Ratio'), the period controls how many bars of data to lookback to for the trend-lines and the detection ratio controls how many trend-lines are plotted onto the chart.
The fourth feature is our 'Session High and Lows' system, which plots the highest high and the lowest low of each session in the trading hours, these plots can be useful for breakout traders.
The fifth feature is our 'MTF Candle Info' system, which plots the candle's high and low or the candle's open and close for a timeframe and the previous candle of choice. This can also be used for breakout traders such as having a lower timeframe breakout for a higher timeframe plot.
The sixth feature is our 'Adaptive S/R Zones', which plots support and resistance zones into any market pair that are accurate points at which the market could react and reject from.
* Informative Market Dashboard *
Our simple panel on your chart displays the most relevant data from all of our features and calculations in real-time.
Confirmation
The confirmation simply tells the user what the previous signal was and this can be useful if the user may decide to have their signals turned off on the charts.
Market State
The market state informs the user the direction of the trend whether it be ranging, in an uptrend or downtrend, you'll see the emoji that corresponds to that.
Recommended Sensitivity
This feature will show the user what the recommended sensitivity is for the current pair that the user is on and the user may find this helpful if they don't know what settings to use.
Recommended Agility
This feature will show the user what the recommended agility is for the current pair that the user is on and the user may find this helpful if they don't know what settings to use.
Trend Control
The trend control feature calculates data using the user set bars back input and it determines all the factors within the trend to give you an informative response, an uptrend will have "Bulls by: " + percentage of control and a downtrend will have "Bears by" + percentage of control.
Pair Strength
The pair strength is measures the control of bulls or bears in the form of the market strength and it will give the same response as the trend control but the percentage will be based on the buying or selling pressure.
Pair's Change
The pairs change measures the change in price from point A to point B, if the change is greater than 0%, the dashboard will inform you that Bulls are in control, and if not the dashboard will inform you that Bears are in control.
Market Money
The market money measures the amount of volume and money that is going into the current asset and if the net change is greater than 0%, bulls will be in control, if not then bears are giving the market their money.
NVME Oscillator X
This is our very own oscillator that has been integrated into our dashboard, allowing the user to see the trend of our other indicator without having to fill their charts up with more noise. If the oscillator is in a downtrend then the dashboard will state that its in a downtrend and if it is in an uptrend then it will show an uptrend text.
Volatility
This feature measures the amount of volatility in any pair and provides user with the percentage value so they can see whether or not the market is extremely volatile at the current time.
Current Session
This feature will tell the user what session they are currently on such as London, Europe, New York, Asia, Australia.
AZ Capital S & ROverview
The algorithm endeavours to robotize the identification of support and resistance levels by recognizing enormous swings/turns in authentic value activity.
These tops and bottoms in value activity shows where the bunches of buyers or sellers came into the market and may go about as future degrees of support or resistance.
The code identifies the last 3 huge swing highs and the last 3 swing lows. It at that point places lines on the outline to feature those levels.
In support and resistance hypothesis, frequently the support becomes resistance and the other way around. Along these lines, the algorithm doesn't just sort swings lows as "support" and swing highs as "resistance". All things considered, the algorithm takes a gander at the swing position comparative with the current close cost.
In the event that the price is over the level, the algorithm thinks of it as support. On the off chance that the price is beneath the level, the algorithm believes it to be resistance.
In light of this, the lines are naturally shaded by whether the prices are above or beneath the current close cost. At the point when any of the levels are beneath the nearby value, the lines are shaded green. Then again, at whatever point they are over the nearby, they are shaded red.
Spiral Guide Algorithm [V2]Spiral Guide Algorithm (SGA)
At its core, the Spiral Guide Algorithm is a low noise, un-bounded, oscillating cycle indicator designed to capture state change within a non-Gaussian distribution.
The idea, design, and application of the Spiral Guide Algorithm is rooted in first principles from four core areas of study, and in application proves to be an excellent trend following tool.
The Spiral Guide Algorithm produces and visualizes three principal components. Below we will cover each of those areas, as well as, how to apply this algorithm in trade analysis.
Principal Components
1. SGA Signal = waveform fundamental signal line
2. SGA Filtered Signal = finite impulse response filter of the SGA signal
3. SGA Histogram = delta between SGA signal and SGA filtered signal
Theory of Operation
1. Digital Signal Processing (DSP)
a. The SGA applies a DSP technique used in wireless transmission that decomposes a waveform into discrete components and then quantifies the interaction between each of those components.
2. Complex Systems Theory
a. In complex systems the tail often wags the dog and so SGA focuses not on the average of the distribution, but on the edges.
3. Game Theory
a. Positive feedback drives large changes from historical extremes, so targeting points of extreme oscillation offers the best chance of capturing large changes in the distribution.
4. Auction Theory
a. We know the auction process cycles between two phases:
i. At value
ii. Discovering value
b. SGA is designed to capture much of the “value discovery” phase between two “at value” areas.
Derivatives
1. When the SGA signal line is above 0 the time frame is up-trending
2. When the SGA signal line is below 0 the time frame is down-trending
3. A fundamental time frame shift is occurring when SGA signal line crosses 0
4. The ratio of SGA signal line time above 0 vs time below 0 will expose the current time frame bias (long, short, flat)
Application
1. Trades are signaled when the SGA signal line crosses the SGA filtered signal, and the trade is confirmed when the SGA filtered signal changes state.
2. Trades can be entered when the SGA signal line crosses 0.
3. SGA should align with the following before entering a trade: Structure, Cycles, Fractals.
4. The histogram is used for detecting divergence.
When and Where
1. Due to the large number of sample sets needed to calculate the SGA signal line, the SGA is designed for intraday charting.
2. Monitor multiple time frames around entry and exit time frame to satisfy the fractal requirements. As a rule, a 3-5x fractal above and below the entry and exit time frame is needed to align cycles.
3. For example:
a. Tick data or 1 second
b. 1 min
c. 5 min (entry/exit)
d. 15 min
4. This algorithm sees success in markets that are not mean reversion biased.
a. Trending markets with high volatility provide the best results.
(FireflyTA) Algo Score MTFAlgo Score MTF
The Algo Score MTF is a meta-analytic oscillator telling you about the technical market strength . It is analyzing a variety of different indicators and metrics to come up with a score that gives you an impression on whether the medium timeframes have fuel to go higher or if it's running out and the risk increases to see corrective price action.
----------------------
About Technical Market Strength
Algo measures the technical strength with a score between -10 and 10 . A bullish or bearish technical market strength shows a high correlation with bullish or bearish PA soon after the score reaches the significant levels deviating from 0. However, optimal treshold values (meaning the score after which the strength can be considered bullish or bearish) vary depending on the market looked at. For BTCUSD, the default values used can be seen as reference. If you want to apply Algo to other markets, you will have to calibrate the tresholds yourself.
It is important to know that market strength is the fuel to drive price higher or lower, but it is not the trigger. The trend is of superior importance. So when price is in a strong uptrend (in this case on the MTF), and the score reaches a value of -4 or lower (which can be considered bearish), it can still take a while for the trend to shift because of the strong momentum. The score in this case can be used as an indicator to show you times when it is wise to take profits / de-risk or take extra care in your risk management in general.
----------------------
Indicators used
All the indicators mentioned are calculated separately and weighted by the significance value you can customize in the indicator UI. It is also possible to (1) deactivate certain indicators and (2) force them as required, so that a signal in the oscillator only occurs when the indicator(s) that is/are required support the thesis (bullish vs. bearish).
Daily VWAP
MTF Trend
Traditional Bollinger Bands
RSI
MTF RSI Divergence
Stoch RSI
Ichimoku Cloud
Fib Retracement Levels
MACD
TTM Squeeze
Moneyflow
Custom Levels you can define (3 categories: Major, medium, minor)
For some indicators, there are specific settings to customize how they contribute to the overall score (i.e. MACD cross vs. shift vs. trending phase). It is also important to know that Algo fetches the indicator data from multiple timeframes, thereby adding reliability to the overall results.
----------------------
Algo Custom Logic
Algo is using my custom logic on when a certain indicator can be interpreted as bullish or bearish in the MTF horizon. If you want to find out about the reliability of certain indicators, I recommend disabling all the indicators except for the one you want to examine, and then see how the score reacts to price action.
----------------------
Timeframes
Due to script limitations, this version can only analyze the medium timeframes . It is best used with charts 2H+, it works on some 90m as well but ceases to work at 1H and below . It is also not compatible with higher timeframes . Upon using the same settings on the same ticker with different timeframes, you will see that the score shows a minor variance. This is because data is consolidated to match the timeframe, so it ultimately leads to minor differences. Find out for yourself what timeframe is the best to use with which market and which settings.
----------------------
How to Use
I'm going to add tooltips for the settings in the indicator UI with upcoming updates, so it becomes more clear on how to set Algo up properly. To prevent a loss of your customized settings, write them down somewhere in case a script update reverts the settings back to default.
You can find in-depth tutorials on how to use this indicator by browsing the links and resources in my signature.
Percentile Rank Market FilterA simple script to filter bull and bear markets by using percentile rank filter. Using market regimes to filter by bull/bear/sideways markets helps to understand how your strategy will
behave in various market regimes and allows you to avoid unprofitable regimes and only trade in profitable ones.
The idea of market regime filtering is used in the most successful technical algorithmic trading strategies, as one should always design a trading strategy with a particular market in mind according to trading legend, Larry Connors
Feel free to use this script in your strategies to improve your profits and lower drawdowns.
AZ Capital Lite 2.0
AZ Capital Lite 2.0 is the Updated Version of our Previous Lite Version of our trading algorithm/indicator. This algorithm is once again based on different indicators such as RSI and a combination of MA's along with ATR. Custom values that provide assistance to our PRO trading algorithm helping concluding analysis and finalising a trade even better.
AZ Capital Lite 2.0 combines various default indicators with custom values into One simple algorithm that helps the user to assess if an asset is moving upward or downwards.
AZ Capital Lite 2.0 works perfectly along with our AZ Capital PRO algorithm/indicator and helps the user to finalise the movement of an asset.
For Past Performances of this Algorithm/Indicator, Contact me Privately!
If you have any doubts on how to use the Algorithm/Indicator, Contact me Privately!
Commenting is RESTRICTED to only Comments about the Algorithm/Indicator and NOT asking for HOW-TO's and ACCESS!
Always DYOR and Trade Safely!
Regards,
Azyad (Founder of AZ Capital)
RogTrader HFT AlgoThis is a simple algorithm to generate Buy, Sell, Short, and Cover Signals. It uses the following:
RSI , MACD , Stochastic , Bollinger Bands , Ketler Channels, ATR Trailing Stop, Trend, and Volume .
Usage is simple: Green Background is Long and Red Background is Short positions.
LE = Long Entry
LX = Long Exit
SE = Short Entry
SX = Short Exit
This is not a trade recommendation, rather informative signals, and please do your due diligence. Thanks!
AZ Capital Lite
AZ Capital Lite is an additional feature of our AZ Capital PRO trading algorithm/indicator which is again based on different indicators such as RSI and EMA with custom values to provide assistance to our PRO trading algorithm helping in concluding analysis and finalising a trade.
RSI and EMA are two great indicators to access the movement of the asset and AZ Capital Lite makes those 2 different indicators into One simple indicator which helps the user to assess if an asset is moving upwards or downwards.
AZ Capital Lite also works along with our AZ Capital PRO algorithm/indicator helping to finalise the movement of an asset.
AZ Capital Lite is just using a customised and combined version of the regular EMA and RSI indicator available on TradingView.
For Past Performances of this Algorithm/Indicator, Contact me Privately!
If you have any doubts on how to use the Algorithm/Indicator, Contact me Privately!
Commenting is RESTRICTED to only Comments about the Algorithm/Indicator and NOT asking for HOW-TO's and ACCESS!
Always DYOR and Trade Safely!
Regards,
Azyad (Founder of AZ Capital)
AZ Capital PRO
AZ Capital PRO is a Trading Algorithm/Indicator for TradingView that brings to the user the easiest way to trading.
The Algorithm depends on different indicators such as the EMA and TMA with custom values to point the user with the best occasions to set up a Long (Buy) or Short (Sell) position on any asset on the Financial Markets.
EMA and TMA are two great indicators to access the movement of the asset and AZ Capital PRO makes those 2 different indicators into One simple indicator which helps the user to access if an asset is moving upwards or downwards.
AZ Capital PRO is just using a customised and combined version of the regular EMA and TMA indicator available on TradingView.
Along with printing a Buy/Sell Signal on the Chart, AZ Capital PRO also indicates the trend.
Each sign in the chart will be shown while the candle is dynamic yet signs at candle close are conclusive and won't repaint. The Algorithm works with any candle accessible on whatever timeframe accessible for any market accessible in TradingView.
The Algorithm works best under littler timeframes since there's more information accessible than higher timeframes. For the most extreme benefit, check diverse periods for affirmation.
The Algorithm shows two unique signs for entry or exit on a resource to expand its gainfulness. Keep in mind, signs can show up whenever during an open candle, yet once the sign is displayed on the close candle; it's conclusive and won't change later on.
For the Algorithm/Indicator Past Performance, Contact me Privately!
If you have any doubts on how to use the Algorithm/Indicator, Contact me Privately!
Commenting is RESTRICTED to only Comments about the Algorithm/Indicator and NOT asking for HOW-TO's and ACCESS!
Always DYOR and Trade Safely!
Regards,
Azyad (Founder of AZ Capital)