MetaFOX DCA (ASAP-RSI-BB%B-TV)Welcome To ' MetaFOX DCA (ASAP-RSI-BB%B-TV) ' Indicator.
This is not a Buy/Sell signals indicator, this is an indicator to help you create your own strategy using a variety of technical analyzing options within the indicator settings with the ability to do DCA (Dollar Cost Average) with up to 100 safety orders.
It is important when backtesting to get a real results, but this is impossible, especially when the time frame is large, because we don't know the real price action inside each candle, as we don't know whether the price reached the high or low first. but what I can say is that I present to you a backtest results in the worst possible case, meaning that if the same chart is repeated during the next period and you traded for the same period and with the same settings, the real results will be either identical to the results in the indicator or better (not worst). There will be no other factors except the slippage in the price when executing orders in the real trading, So I created a feature for that to increase the accuracy rate of the results. For more information, read this description.
Below I will explain all the properties and settings of the indicator:
A) 'Buy Strategies' Section: Your choices of strategies to Start a new trade: (All the conditions works as (And) not (OR), You have to choose one at least and you can choose more than one).
- 'ASAP (New Candle)': Start a trade as soon as possible at the opening of a new candle after exiting the previous trade.
- 'RSI': Using RSI as a technical analysis condition to start a trade.
- 'BB %B': Using BB %B as a technical analysis condition to start a trade.
- 'TV': Using tradingview crypto screener as a technical analysis condition to start a trade.
B) 'Exit Strategies' Section: Your choices of strategies to Exit the trades: (All the conditions works as (And) not (OR), You can choose more than one, But if you don't want to use any of them you have to activate the 'Use TP:' at least).
- 'ASAP (New Candle)': Exit a trade as soon as possible at the opening of a new candle after opening the previous trade.
- 'RSI': Using RSI as a technical analysis condition to exit a trade.
- 'BB %B': Using BB %B as a technical analysis condition to exit a trade.
- 'TV': Using tradingview crypto screener as a technical analysis condition to exit a trade.
C) 'Main Settings' Section:
- 'Trading Fees %': The Exchange trading fees in percentage (trading Commission).
- 'Entry Price Slippage %': Since real trading differs from backtest calculations, while in backtest results are calculated based on the open price of the candle, but in real trading there is a slippage from the open price of the candle resulting from the supply and demand in the real time trading, so this feature is to determine the slippage Which you think it is appropriate, then the entry prices of the trades will calculated higher than the open price of the start candle by the percentage of slippage that you set. If you don't want to calculate any slippage, just set it to zero, but I don't recommend that if you want the most realistic results.
Note: If (open price + slippage) is higher than the high of the candle then don't worry, I've kept this in consideration.
- 'Use SL': Activate to use stop loss percentage.
- 'SL %': Stop loss percentage.
- 'SL settings options box':
'SL From Base Price': Calculate the SL from the base order price (from the trade first entry price).
'SL From Avg. Price': Calculate the SL from the average price in case you use safety orders.
'SL From Last SO.': Calculate the SL from the last (lowest) safety order deviation.
ex: If you choose 'SL From Avg. Price' and SL% is 5, then the SL will be lower than the average price by 5% (in this case your SL will be dynamic until the price reaches all the safety orders unlike the other two SL options).
Note: This indicator programmed to be compatible with '3COMMAS' platform, but I added more options that came to my mind.
'3COMMAS' DCA bots uses 'SL From Base Price'.
- 'Use TP': Activate to use take profit percentage.
- 'TP %': Take profit percentage.
- 'Pure TP,SL': This feature was created due to the differences in the method of calculations between API tools trading platforms:
If the feature is not activated and (for example) the TP is 5%, this means that the price must move upward by only 5%, but you will not achieve a net profit of 5% due to the trading fees. but If the feature is activated, this means that you will get a net profit of 5%, and this means that the price must move upward by (5% for the TP + the equivalent of trading fees). The same idea is applied to the SL.
Note: '3COMMAS' DCA bots uses activated 'Pure TP,SL'.
- 'SO. Price Deviation %': Determines the decline percentage for the first safety order from the trade start entry price.
- 'SO. Step Scale': Determines the deviation multiplier for the safety orders.
Note: I'm using the same method of calculations for SO. (safety orders) levels that '3COMMAS' platform is using. If there is any difference between the '3COMMAS' calculations and the platform that you are using, please let me know.
'3COMMAS' DCA bots minimum 'SO. Price Deviation %' is (0.21)
'3COMMAS' DCA bots minimum 'SO. Step Scale' is (0.1)
- 'SO. Volume Scale': Determines the base order size multiplier for the safety orders sizes.
ex: If you used 10$ to buy at the trade start (base order size) and your 'SO. Volume Scale' is 2, then the 1st SO. size will be 20, the 2nd SO. size will be 40 and so on.
- 'SO. Count': Determines the number of safety orders that you want. If you want to trade without safety orders set it to zero.
'3COMMAS' DCA bots minimum 'SO. Volume Scale' is (0.1)
- 'Exchange Min. Size': The exchange minimum size per trade, It's important to prevent you from setting the base order Size less than the exchange limit. It's also important for the backtest results calculations.
ex: If you setup your strategy settings and it led to a loss to the point that you can't trade any more due to insufficient funds and your base order size share from the strategy becomes less than the exchange minimum trade size, then the indicator will show you a warning and will show you the point where you stopped the trading (It works in compatible with the initial capital). I recommend to set it a little bit higher than the real exchange minimum trade size especially if you trade without safety orders to not stuck in the trade if you hit the stop loss
- 'BO. Size': The base order size (funds you use at the trade entry).
- 'Initial Capital': The total funds allocated for trading using your strategy settings, It can be more than what is required in the strategy to cover the deficit in case of a loss, but it should not exceed the funds that you actually have for trading using this strategy settings, It's important to prevent you from setting up a strategy which requires funds more than what you have. It's also has other important benefits (refer to 'Exchange Min. Size' for more information).
- 'Accumulative Results': This feature is also called re-invest profits & risk reduction. If it's not activated then you will use the same funds size in each new trade whether you are in profit or loss till the (initial capitals + net results) turns insufficient. If it's activated then you will reuse your profits and losses in each new trade.
ex: The feature is active and your first trade ended with a net profit of 1000$, the next trade will add the 1000$ to the trade funds size and it will be distributed as a percentage to the BO. & SO.s according to your strategy settings. The same idea in case of a loss, the trade funds size will be reduced.
D) 'RSI Strategy' Section:
- 'Buy': RSI technical condition to start a trade. Has no effect if you don't choose 'RSI' option in 'Buy Strategies'.
- 'Exit': RSI technical condition to exit a trade. Has no effect if you don't choose 'RSI' option in 'Exit Strategies'.
E) 'TV Strategy' Section:
- 'Buy': TradingView Crypto Screener technical condition to start a trade. Has no effect if you don't choose 'TV' option in 'Buy Strategies'.
- 'Exit': TradingView Crypto Screener technical condition to exit a trade. Has no effect if you don't choose 'TV' option in 'Exit Strategies'.
F) 'BB %B Strategy' Section:
- 'Buy': BB %B technical condition to start a trade. Has no effect if you don't choose 'BB %B' option in 'Buy Strategies'.
- 'Exit': BB %B technical condition to exit a trade. Has no effect if you don't choose 'BB %B' option in 'Exit Strategies'.
G) 'Plot' Section:
- 'Signals': Plots buy and exit signals.
- 'BO': Plots the trade entry price (base order price).
- 'AVG': Plots the trade average price.
- 'AVG options box': Your choice to plot the trade average price type:
'Avg. With Fees': The trade average price including the trading fees, If you exit the trade at this price the trade net profit will be 0.00
'Avg. Without Fees': The trade average price but not including the trading fees, If you exit the trade at this price the trade net profit will be a loss equivalent to the trading fees.
- 'TP': Plots the trade take profit price.
- 'SL': Plots the trade stop loss price.
- 'Last SO': Plots the trade last safety order that the price reached.
- 'Exit Price': Plots a mark on the trade exit price, It plots in 3 colors as below:
Red (Default): Trade exit at a loss.
Green (Default): Trade exit at a profit.
Yellow (Default): Trade exit at a profit but this is a special case where we have to calculate the profits before reaching the safety orders (if any) on that candle (compatible with the idea of getting strategy results at the worst case).
- 'Result Table': Plots your strategy result table. The net profit percentage shown is a percentage of the 'initial capital'.
- 'TA Values': Plots your used strategies Technical analysis values. (Green cells means valid condition).
- 'Help Table': Plots a table to help you discover 100 safety orders with its deviations and the total funds needed for your strategy settings. Deviations shown in red is impossible to use because its price is <= 0.00
- 'Portfolio Chart': Plots your Portfolio status during the entire trading period in addition to the highest and lowest level reached. It's important when evaluating any strategy not only to look at the final result, but also to look at the change in results over the entire trading period. Perhaps the results were worryingly negative at some point before they rose again and made a profit. This feature helps you to see the whole picture.
- 'Welcome Message': Plots a welcome message and showing you the idea behind this indicator.
- 'Green Net Profit %': It plots the 'Net Profit %' in the result table in green color if the result is equal to or above the value that you entered.
- 'Green Win Rate %': It plots the 'Win Rate %' in the result table in green color if the result is equal to or above the value that you entered.
- 'User Notes Area': An empty text area, Feel free to use this area to write your notes so you don't forget them.
The indicator will take care of you. In some cases, warning messages will appear for you. Read them carefully, as they mean that you have done an illogical error in the indicator settings. Also, the indicator will sometimes stop working for the same reason mentioned above. If that happens then click on the red (!) next to the indicator name and read the message to find out what illogical error you have done.
Please enjoy the indicator and let me know your thoughts in the comments below.
Wyszukaj w skryptach "bot"
SVMKR_UT_Bot_HMA_UCS_LRSThis Pine Script code is a TradingView study script titled "SVMKR_UT_Bot_HMA_UCS_LRS". It combines two separate trading indicators: the UT Bot (Ultimate Trailing Stop Bot) and the UCS_LRS (Linear Regression Slope) indicator.
UT Bot (Ultimate Trailing Stop Bot):
The UT Bot is designed to provide buy and sell signals based on a trailing stop strategy.
It calculates the trailing stop level using the Average True Range (ATR) and Heikin Ashi candle signals if enabled.
Buy signals are generated when the price crosses above the trailing stop, while sell signals occur when the price crosses below the trailing stop.
Additionally, buy and sell signals are visually represented on the chart with corresponding labels and shapes.
The script also includes options to customize the sensitivity of the trailing stop and to color the bars based on buy or sell signals.
Hull Moving Average (HMA):
This section calculates and plots the Hull Moving Average, a type of moving average that reduces lag and improves smoothing compared to traditional moving averages.
It uses the weighted moving average (WMA) to compute the HMA, which helps to identify trend direction and potential reversal points.
UCS_LRS (Linear Regression Slope):
The UCS_LRS indicator calculates the linear regression slope of the closing prices over a specified period.
It then applies exponential smoothing to the slope values and calculates an average slope.
Buy signals are generated when the current slope is greater than the average slope and positive, indicating an uptrend.
Conversely, sell signals are generated when the current slope is less than the average slope and negative, suggesting a downtrend.
The linear regression slope and its average are plotted on the chart, allowing traders to visually identify trend strength and potential reversal points.
Overall, this combined script provides traders with a comprehensive set of tools for trend following and momentum trading strategies, integrating trailing stop analysis, moving average smoothing, and linear regression slope analysis into a single script for technical analysis on TradingView charts.
Price Action Pattern Breakout Strategy: Wedge,Triangle,ChannelIntroducing the Price Action Pattern Breakout Strategy: Wedge,Triangle,Channel 💹🚀
The "Price Action Pattern Breakout Strategy: Wedge, Triangle, Channel" is a dynamic and automated trading strategy that excels in recognizing and capitalizing on breakout opportunities within the realm of powerful price action patterns. It is finely tuned to achieve exceptional precision in detecting three distinct pattern types: Wedge, Triangle, and Channel. This diversity equips you to confidently navigate a wide range of market scenarios and opportunities.
This strategy automates trade entries and exits upon confirmed pattern breakouts, this eliminates human errors in correctly recognizing patterns and prevents emotional decisions. This strategy is designed to work across different time frames, making it suitable for both short-term and long-term traders. Whether you're a day trader, swing trader, or investor, this strategy provides the flexibility you need to thrive in diverse market conditions.
💎 How it Works:
▶️ In this strategy, three price action patterns have been utilized, one of which is the "Wedge" pattern. The Wedge pattern has consistently demonstrated a high level of credibility, typically resulting in sharp and rapid price movements following a confirmed breakout from this pattern. This characteristic makes the Wedge pattern highly noteworthy in our strategy. The second pattern is the "Triangle" pattern, which, depending on its formation, whether ascending or descending, can indicate a strong continuation or reversal of the trend. The last pattern is the "Channel" pattern. The reason for using the Channel pattern is its versatility in various market conditions and its tendency to produce reliable results.
In the snapshot below, you can observe the types of patterns that this strategy is capable of identifying at a glance:
▶️ This strategy employs two types of targeting systems: Fixed Targets and Trailing Targets.
Fixed Targets is the default targeting system of the strategy, incorporating two primary targets: TP1 (Target Point 1) and TP2 (Target Point 2). These targets are thoughtfully adjusted in alignment with specific rules for each pattern. With Fixed Targets, you have the flexibility to designate the position size percentage for your exits at TP1 and TP2. For instance, should you opt to allocate 60% of your position size to TP1, as soon as the price triggers the first take profit level, 60% of your initial position is gracefully closed, leaving the remaining 40% to exit the trade upon reaching TP2.
Trailing Targets represent the strategy's alternative targeting system. With this system, the trailing stop becomes active once the price reaches the specified trigger point. The strategy then exits the trade based on the defined offset percentage and price retracement from the trailing limit.
▶️ This strategy relies on a single type of stop loss, determined by previous pivot points and adjusted based on the trade's direction, whether long or short, placing the stop loss above or below the prior pivot. This stop loss approach has demonstrated reliability when used alongside price action patterns.
In addition to this fixed stop loss, you can specify a percentage buffer, offering protection against potential stop hunting due to market fluctuations. This buffer helps protect your positions from sudden price swings. For example, selecting a 1% buffer means your stop loss will be positioned 1% higher or lower concerning the last pivot, depending on your trade's direction. This added layer of security ensures your trades remain resilient and less vulnerable to market volatility.
▶️ A practical feature of this strategy is the "Risk-Free" option. Once activated, it continuously monitors price movements, and as soon as the price progresses in the trade's direction and surpasses the designated Risk-Free Trigger Point in percentage, the stop loss is dynamically shifted from its initial position to the entry price, effectively making the trade "risk-free." This means that if the trade doesn't go as expected, we exit at the entry point, incurring neither profit nor loss from the trade.
Additionally, you have the flexibility to fine-tune the modified stop loss, positioning it slightly above or below the entry price through the configuration of a specified percentage. This allows for effective consideration of commission fees in your trading strategy.
▶️ Risk management is a crucial concept in trading, playing a significant role in a trader's long-term success. This strategy introduces a unique feature called "Fixed Loss Position Sizing", where upon activation, you can limit the risk exposure to a specified percentage of your capital per trade. Set your preferred risk percentage along with the intended leverage. The strategy independently considers your available capital and designated leverage, determining the position size before executing any trade.
In the case of a stop loss, your loss is limited to the specified risk percentage. For instance, with a $1000 account and a 1% risk set, the strategy adjusts each trade's size to ensure a maximum loss of $10 if the stop loss is triggered. Enabling this feature will ensure disciplined risk management, aligning potential losses precisely with your predetermined risk percentage, contingent upon your total available capital.
▶️ Another feature of this strategy is a sophisticated mechanism called "Loss Compensation". When enabled, Loss Compensation dynamically adjusts the position size after a loss, aiming to recover from previous losses in subsequent trades. This adaptive mechanism continually modifies the position size to mitigate the impact of consecutive losses until reaching a user-defined limit for consecutive loss compensations.
The feature's configurability allows users to set the maximum number of consecutive losses to compensate for and also includes an option to factor in trading fees from prior trades into the compensation calculation. Loss Compensation operates in conjunction with the 'Fixed Loss Position Sizing' setting, ensuring that once losses are sufficiently compensated, subsequent entries revert to the predefined configurations within the 'Fixed Loss Position Sizing' settings.
This advanced tool ensures a stable risk management approach by changing trade sizes dynamically according to past results during consecutive loss periods.
▶️ This strategy incorporates a feature known as the "Counter-Pattern Breakout", altering its approach to wedge, triangle, and channel pattern breakouts. Normally, the strategy relies on standard pattern signals to determine whether to enter long or short positions based on breakout directions.
For example, in an ascending channel or a rising wedge pattern, the strategy typically seeks a short position opportunity upon a confirmed breakout in the lower line, and breakouts from the upper line are disregarded by the strategy. But with this feature enabled, strategy disregards the conventional pattern signals, seizing breakouts from upper or lower lines to open corresponding positions. For instance, in the ascending channel or the rising wedge pattern example, the strategy might enter a long position if the upper line breaks or a short position if the lower line breaks.
This introduces a more adaptive and opportunistic trading style, allowing you to capitalize on price movements, irrespective of the typical signal direction indicated by the pattern.
▶️ This strategy is fully compatible with third-party trading bots, allowing for easy connectivity to popular trading platforms. By leveraging the TradingView webhook functionality, you can effortlessly link the strategy to your preferred bot and receive accurate signals for position entry and exit. The strategy provides all the necessary alert message fields, ensuring a smooth and user-friendly trading experience. With this integration, you can automate the execution of trades, saving time and effort while enjoying the benefits of this powerful strategy.
⚙️ How to Use & Configure User Settings:
To fully utilize the "Price Action Pattern Breakout Strategy: Wedge, Triangle, Channel," it's essential to consider and comprehend the following steps. They play a crucial role in enhancing its functionality and achieving its utmost potential outcomes:
1. General Strategy Settings:
Enable Dark Mode if using a dark TradingView theme for improved chart visibility.
Select the Strategy's Trade Direction: Long, Short, or Both.
Choose Pattern Recognition Accuracy: High for precise recognition but fewer positions, Low for more positions with slightly less accuracy.
Enable 'Prevent New Entry on Opposite Signal While In Position' to avoid new trades if the opposite signal occurs.
Switch to Indicator Mode if solely using the strategy as an indicator or in combination with other strategies.
2. Pattern and Pivot Configuration:
Consider configuring the Number of Patterns and Pivot Lookback Lengths. Here, you can personalize the pivot lookback lengths for wedge, triangle, and channel patterns across eight different settings on your chart. For lower time frames, consider larger lengths to reduce chart noise. Alternatively, to maintain clarity on your chart, you can disable multiple patterns with different lengths while ensuring at least one pattern remains enabled.
Note that enabling more patterns doesn't always equate to increased potential profit. Sometimes, fewer patterns result in greater profit potential, and vice versa. Experiment with lengths and the number of patterns to determine the most profitable and optimal outcome for your trading symbol and timeframe.
3. Targeting System Selection:
Choose between 'Fixed Targets' or 'Trailing Targets' for your targeting system.
'Fixed Targets' is the default setting, operational when 'Trailing Targets' are turned off.
Set the TP1 Position Size as a percentage, defining the size for TP1, and the rest exits at TP2.
Optionally activate 'Skip Entry if TP1 is Passed' to bypass entering positions if the price has exceeded TP1.
Alternatively, opt for the 'Trailing Target' for dynamic exits based on trigger points and offsets. Note that this option disables fixed targets.
4. Stop Loss Configuration:
Determine the number of candles to consider for stop loss placement based on the last pivot.
Optionally add a percentage to the stop loss to create a buffer against market fluctuations, guarding your positions from sudden price swings.
5. Risk Management Configuration:
You can activate the 'Risk-Free' feature, making your trades risk-free by moving the stop loss to the entry price upon reaching a specified trigger point.
You have the possibility to enable 'Fixed Loss Position Sizing' to limit risk to a percentage of total capital per trade, ensuring prudent risk management.
You can employ 'Use Real-Time Balance for Each Entry' to precisely calculate fixed loss position sizing according to the real-time balance for every entry.
The 'Loss Compensation' feature can be activated to automatically adjust trade sizes during consecutive losses and compensate for prior incurred losses.
Loss compensation continues adjusting trade sizes until it reaches the defined limit of consecutive losses specified in the 'Maximum Consecutive Losses To Compensate' field.
You can factor in commission fees by specifying a percentage in the 'Include Trading Fees in Compensation (%)' field, providing an option for more accurate loss compensation calculations.
You have the option to enable 'Limit Compensation to Real-Time Balance' to prevent consecutive loss compensation from exceeding your current real-time account balance.
It's important to note that for the 'Loss Compensation' feature to operate, the 'Fixed Loss Position Sizing' must be enabled.
6. Counter-Pattern Breakout Configuration:
In this section you have the option to enable the "Counter-Pattern Breakout" feature to adjust the strategy's approach to wedge, triangle, and channel pattern breakouts. Once enabled, the strategy disregards traditional pattern signals and capitalizes on breakouts from either the upper or lower lines, initiating corresponding positions accordingly.
Choose between 'Fixed Target' or 'Trailing Target' for your targeting system. If you opt for the 'Fixed Target', set a specific target point as a percentage, serving as the default target for counter-pattern breakouts. Alternatively, choose the 'Trailing Target' for dynamic exits based on trigger points and offsets. Do keep in mind that selecting the 'Trailing Target' option disables the fixed target setting.
Keep in mind that for standard, non-counter-pattern breakouts, the target point settings in their respective sections remain applicable, distinct from the settings configured for targeting within this section.
Note that the stop loss configurations are shared across standard pattern and counter-pattern breakouts and can be adjusted within the stop loss section.
7. Info Tables:
In the info tables section, you can show or hide different tables on the charts. This includes the backtest table, the current balance table displaying available funds, and a table showcasing Maximum Consecutive Wins or Losses. Choose which to display according to your preferences and specific needs.
8.Date & Time Range Filter:
Utilize the Date & Time Range filter feature to precisely select a start and end date, including time, to filter data within the chosen range.
When connecting this strategy to a trading bot for automated trades, ensure to set the start date and time to the intended initiation moment to avoid undesired outcomes as this directly affects the real-time balance calculations of the strategy.
8. Integration with Third-Party Bots:
To automate trading, leverage the strategy's compatibility with third-party trading bots. Seamlessly integrate the strategy into well-known trading platforms by using alert message fields to input commands from third-party trading bots, enabling automated trade execution for both long and short positions.
By furnishing these adjustable settings, the strategy empowers you to personalize it according to your unique requirements, thereby bolstering the adaptability and efficacy of your trading approach.
🔐 Source Code Protection:
The 'Price Action Pattern Breakout Strategy: Wedge, Triangle, Channel' source code is engineered for precision, reliability, and effectiveness. Its original and innovative design warrants protection and restricted access, preserving the strategy's exclusivity. Safeguarding the code maintains the strategy's integrity and distinctiveness, providing users with a competitive advantage in their trading endeavors.
USD Liquidity Conditions Index Swing Stock Strategy Original credits goes to @ElDoggo22 www.tradingview.com
I looked in the post created by him, of USD liquidity and I have noticed that if you are going to apply a percentile top and bottom to it, can become an interesting swing strategy for US Stocks.
So in this case I decided to create a 99th percentile for top and 4th percentile for bot with a big length, preferably 100+ candles, for this example i took 150.
Rules for entry :
Long : either bot or top lines are ascending
We exit long either the top line is descending, or we have sudden cross of the moving average with both top and bot within the same candle
Short: we enter short when we have a sudden cross down of the moving average with both top and bot within the same candle
We exit short when we have a cross over of the moving average with both top and bot within the same candle ( or we have a long entry condition)
If there are qny questions, please let me know !
X48 - Strategy | MA Type Cross + TPSL | Future&Spot | V.2Thank You For Open Source Code, This Strategy Ref. By 1.Simple Strategy Like MA Crossover For Long/Short or Spot Trade, 2. CDC Action Zone V.2 for BarPaint
This Strategy Mixing With MA Crossover Strategy and BarPaint By CDC Action Zone and TP/SL by Varbara
### How To Use Strategy : Setting EMA/SMA Crossover EMA/SMA, Any Value If You Want
For Long Position : Cross Up
For Short Position : Cross Down
Can Use With Spot Trade : Cross Up = Buy, Cross Down = Sell
TP/SL When Your OrderSize Change From any % Of Your TP/SL Value
### In Strategy Setting
Intitial Capital = Ex. 200
Order Size = Should Be Money Management Not Use 100% of Capital Ex. 10% of Capital (200$) = Order Size 20$
StopLoss and Take Profit = If You Run Trend TF 4H+ or 1D+ You Can Change TP% = 1,000% for nonlimit and Stop Loss 5 - 20% from your order size
Ex. Stoploss 15% = OrderSize / 100 x %SL = 20$/100 x 15% = 3$ Loss from order size 20$ (if you not set stop loss.)
Base Currency = (Your Currency) # Ex. USD
Commission = (Your Trading Fee) # Ex. Future Fee Can Check At Binance Fee Rate > www.binance.com > Choose Your Fee Type, Ex. USD M Future (Regular User) = 0.02 (Maker), 0.04 (Taker)
Commission Symbol Type = % # (Ref. By Binance Fee Rate)
### Notice ####
Default Setting It's Realistic From Normal Life Ex. Capital 200$ / Ordersize 20$ (10%)/ Commission 0.1% (Buy+Sell) / Slippage = 2 / TP = 1000% (nonlimit) / SL = 15%/OrderSize
Low Risk But High Return, Good Luck
### Bot Auto Trade by X4815162342 ###
if you wanna try my bot auto trade X48-3in1-bot : Contact My Line ID : x4815x
Full Command Alert For This Strategy If You Wanna See It's
'{"ex":"'+markettype+'","side": "'+longcommand+'", "amount": "@{{strategy.order.contracts}}", "symbol": "{{ticker}}", "passphrase": "'+passphrase+'","leverage":"'+str.tostring(leveragex)+'"}'
'{"ex":"'+markettype+'","side": "'+shortcommand+'", "amount": "@{{strategy.order.contracts}}", "symbol": "{{ticker}}", "passphrase": "'+passphrase+'","leverage":"'+str.tostring(leveragex)+'"}'
But Easy Than Full Command Just Use Thisssssss !! Strategy Be Manage Auto Long and Short or TPSL Position
You Don't Do Anything Just Use This Message to Alerts Message
{{strategy.order.alert_message}}
### If you don't use bot but just looking for strategy test ####
Just Pass Bot Setting Function It's Nothing Effect For Strategy !!!!!!
Let's Enjoy With Your Strategy BackTest 😁
Remember Beware Max drawdown%. I'm Recommend Lower Than 10% It's Very Good.
3C Crossover with TTP & TSLThis is not a set and forget strategy. It needs constant tweaking to maintain a high winrate. Also what works on one pair can be horrible on another.
This strategy works best on the 1 min or 5 min TF but also works well on the 15 min. Haven't done any testing in higher TF's as im only interested in scalping.
If enabled you can retrive data for the filters on any TF.
The strategy do not repaint.
You do not need a 3c subscription to run this strategy as the bot turns on and off the bot itself.
Instructions for the 3commas connector:
1. First, you need to prepare 3commas Long/Short bots that will only listen to custom TV signals.
2. Inputs for the 3commas bot can be found at the end of the user inputs.
3. Once you have entered the required details into the inputs, turn on 3commas comments. They should appear on the chart (looks messy).
4. Now you can add the alert where you should paste the 3commas Webhook URL: 3commas.io
5. For the alert message text insert the placeholder {{strategy.order.comment}} and delete the rest. 6. Once the alert is saved, you can turn off those 3commas comments to have a clearer chart.
7. With a new alert, the bot and trade should launch.
Long or Short trades are determined with a crossing of the fast MA over the slow MA for Long and the opposite for Short. By checking Close position on MA cross the deal will close on a crossover/under of the 2 MA's
You can select from various different MA's and of course lenghts. You can add both EMA filter on any lenght aswell as ATR to determine to go long or short.
Using the MA gap can help you to not enter trades in a low volatile ranging market.
The RSI filter, sets the maximum RSI threshold for a long position and the minimum for a short. By default and what i recomend is that you enter Longs when RSI is above 50 and shorts when RSI are below 50.
-You can set confirmation of the trade direction with RSI , i.e. for Long the RSI must rise a specified number of bars back, vice versa for Short.
Enabling the pullback filter is great to avoid Longing tops and Shorting bottoms.
Stop loss can be set be either a fixed percentage or by using ATR
Take profit can be set by using percentage, ATR or RiskReward ratio(RR). if you use ATR as a stoploss i recomend using RR as the TP.
Yu can choose to trail the TP with either Percentage or ATR
Whats ahead. I really want to incorporate RSI divergencies, but haven't figured out how yet. Any other ideas would be greatly appreciated.
Have a look at my other strategies. They are similar to this but works abit differently.
Fibonacci Zone Study w/Candles - R3c0nTraderCredits:
Thank you "eykpunter" for granting me permission to use "Fibonacci Zones" to create this study
What does this do? How is it different?
This study was created so it can be used with the strategy 'Fibonacci Zone DCA Strategy - R3c0nTrader' in order to generate buy/sell signals for a 3Commas bot.
I was not able to use "eykpunter's" "Fibonacci Zones" to create these signals as it was missing the code for this. To create the buy or sell signal you need to be able to create an alert for when the price moves through the Fib levels. Unfortunately, the "price" is not available to be selected when creating an alert with the original study. Hence the need to create this new study and to resolve the issue.
This study has overlay turned off by default so it will appear in a separate pane below your active chart. I did this so I can clearly view and separate the strategy from the study.
Steps Overview:
Add the study to your chart
Configure the study to match the Fib length you used in the strategy.
Create Alerts from the study to generate the buy or sell signals to 3Commas
The below steps for creating signals are just examples! Since there are numerous ways you can open or close a trade from a signal, please do your own testing. This cannot be understated.
Example of how to generate buy signals:
After adding the study, select the three dots for this study and click on "Add an alert on Fibonacci Zone Study /w Candles…"
Setup the condition to trigger the alert. If you want to initiate a buy when the price crosses over the top of the lower Fib zone (downtrend zone), then use the following:
Condition>Fibonacci Zone Study>Price High>Crossing Up>Fibonacci Zone Study>Top-Low Fib Border
Options>Once per bar
Expiration>Open-ended
Alert actions>Webhook URL (use the 3Commas webhook URL)
Alert name>Enter a name, "BUY Paper-Fib-Bot"
Message>Use the 3Commas message from the paper bot to open the trade
Example of how to generate sell signals:
After adding the study, select the three dots for this study and click on "Add an alert on Fibonacci Zone Study /w Candles…"
Setup the condition to trigger the alert. If you want to initiate a sell when the price reaches the top of the High Fib zone (uptrend zone), then try the following:
Condition>Fibonacci Zone Study>Price High>Crossing Up>Fibonacci Zone Study>Top-High Fib Border
(Note: I used "Crossing Up" but "Crossing" is another option; I just haven't tested it yet with a paper bot)
Options>Once per bar
Expiration>Open-ended
Alert actions>Webhook URL (use the 3Commas webhook URL)
Alert name>Enter a name, "SELL Paper-Fib-Bot"
Message>Use the 3Commas message from the paper bot to close the trade
5min Williams Fractals scalping (3commas)Another strategy I'm learning Pine Script on. It is inspired by a MoneyZG youtube strategy called "Easy 5 Minute Scalping Strategy (Simple to Follow Scalping Trading Strategy)".
Again this is a one order per trade strategy compatible with the 3commas bot (works also with the free 3commas subscription). This strategy is based on the signals from Williams Fractals, taking the signals in reverse - red triangle indicates a bottom and hence we go long. The green triangle indicates a top so we go short. By default these signals are only accepted if they occur between the two Emas. However, you can also turn this off and when a WF signal comes in, only the current price has to be between the Emas. Stop loss is set to the current Ema slow and the take profit is a multiple of the distance to the slow ema.
Like previously I have added different filters as well as the ability to view essential things like the WF signal and Emas. I hope the script will help you to be more successful and if so it would be great if you could share here your setups, or tips on what would be good to refine to make it an even a more profitable strategy. Kind of a community approach so that we help each other out :).
Instructions for the 3commas connector:
1. First, you need to prepare 3commas Long/Short bots that will only listen to custom TV signals.
2. Inputs for the 3commas bot can be found at the end of the user inputs.
3. Once you have entered the required details into the inputs, turn on 3commas comments. They should appear on the chart (looks messy).
4. Now you can add the alert where you should paste the 3commas Webhook URL: 3commas.io
5. For the alert message text insert the placeholder {{strategy.order.comment}} and delete the rest.
6. Once the alert is saved, you can turn off those 3commas comments to have a clearer chart.
7. With a new alert, the bot and trade should launch.
In the near future I would like to publish more scripts that will carry similar elements as the first two, incl. compatibility with 3commas (I don't have access to another bot system). I will choose some strategies myself, but I will also be glad for some tips on what strategy would be good to do and is still missing here on Tradingview (short youtube videos or brief strategy manuals would be great).
Thanks and keep it up
PS: My screen values starting at Long Target Profit and ending at Pullback NOT greater than: 1.5; 1.5; 0; ON; 1; 2; OFF; 17; 36; ON; 0.05; ON; Chart; 14; 46; 50; 48.5; 51; OFF; 1; ON; 4; 2.
Investment Boat(Yatırım Botu)English:
The investment bot plugin works according to past 90 bar(candle) statistics. It shows goals that you can use to detect cheap products and products that you buy that you can easily sell. Invest bot add-on at the best price 1 (2 (Method:) to apply the technique of buying piece by piece, or the price becomes cheaper as it increases the amount of the purchase, make an average near the bottom, and opportunity all at once and decreases capital input blocks missing bottom: method of capture: the product helps to obtain.
Features:
The investment bot does not trade for you, it informs you at the most convenient times, purchases are made manually.
By automating all reviews of the product you want to review, it eliminates the human and error factor that doesn't leave a feature you forgot to review.
According to past statistics, it examines whether the price of the product being studied is suitable for profit, you can instantly determine which product is cheaper, and avoid getting caught up in FOMO.
Shows the correct Trading Method to be made in the trend determined by Trend Tracking. (Hold in rising trend, buy - sell in horizontal trend, buy opportunity in falling trend)
It shows Trend turns with colored candles and you get push notifications in important areas when the alarm is set. This feature is very important, it helps you capture the product from the bottom and continue the process by moving your stop level.
According to Old statistics examined when collecting and selling goods, it shows possible price return zones where you can easily buy and sell the product with red(buy) and green(sell) lines.
You may receive notifications in overbought and sold zones. Even if you don't follow the important price movements associated with the product with the alarm when you install an Alarm, you know that your eyes will not stay behind.
Keep the plugin to yourself with customizable settings.
Method 1:
The investment bot piecemeal purchase technique plugin scores between 0 and 6 based on the price of the product; 3x, 5x. Let's think of the X value as $ 100. It looks like a $ 500 transaction will open for 3x points, 300 points, 5x points. thanks to purchases made using the piecemeal purchase technique, you provide an average price close to the lower price of the product that returns from the bottom. A 0x score indicates that this product is not suitable for medium-and long-term purchases, its price is expensive, but it is your job to green lines hit-and-run operations.
Example usage: we decided to buy Bitcoin we want to buy Bitcoin we divide the capital you set aside to buy Bitcoin into 21 parts (1x+2x+3x+4x+5x+6x=21x) if Bitcoin were at the current 3x level (3x+4x+5x=12x) we would divide it into 12 parts. Our initial purchase support and resistance lines after raising the price if the price rises, we thought we would make a left turn at the profit level we made, but it could be pulled down if it goes according to the price level we continue to add, in the process of adding each, when adding the product, to give a signal to return the price if we don't. Sometimes it can drop from 2 to 3 levels without adding products skipped level we can shop by adding your purchases to the current level you have decided. If you have collected enough products, all that remains is to wait for the rise, so you can collect the investment you have created from the appropriate levels, piece by piece or wholesale, at targets indicated by Green lines created according to the old statistics. Don't forget to make a profit.
Method 2:
The yellow candle and purple candle that come in trend turns indicate the most accurate times for us to get in and out of the process. The price is to see the yellow candle, we get the product from here and immediately between 1-3% here now the goal is that if the circuit does not occur and the drop will be lower, we catch the product from the bottom, but thanks to the product caught from the bottom, we can not stop a few times until this return to get the product out of the process, when there should be a stop under the yellow candle, stop losses that turn from the bottom area are very easily compensated. After you purchase the product, a rising trend if the trend breaks the current trend continues to fall, if the process exits, but does not continue to decline-a trend we expect to see goals worsen purple candle purple candle means to sell, but when we see these purple candles, how much you sell doesn't mean we're going to stop level under the purple candle, cheap and easy to buy products we don't sell if the rising trend continues, we are constantly moving under the purple candle to the stop level. You get maximum profit at the end of the transaction, but sometimes Future fake moves and needles will cause you to stop unnecessarily, unfortunately there is no solution or measure for this.
Warning: the investment bot plugin aims to shop at the right time, but before buying, supports must be withdrawn, it must be verified that the price does not fall only to act according to the plugin and to trade non-stop (even when collecting goods 10-20% should be placed, even better than losing 70-80% in possible large falls) is wrong. Depending on the chart time you use, the results calculated by the plugin may vary, and smaller time statistics give less reliable results.
Türkçe:
Yatırım Botu eklentisi geçmiş 90 bar(mum) istatistiklerine göre çalışmaktadır. Ucuzlayan ürünleri tespit etmek için kullanabileceğiniz gibi aldığınız ürünleri rahatça satabileceğiniz hedefleri de göstermektedir. Yatırım Botu eklentisi size tepeden ürün aldırmaz ürünü en uygun fiyattan alabilmeniz için (Yöntem 1:) parçalı alım tekniği uygulamanıza yada (Yöntem 2:) dip yakalamanıza yardımcı olur: Fiyat ucuzladıkça alım miktarını arttırarak ortalamanızın dibe yakın olmasını sağlar ayrıca tüm sermayeniz ile tek seferde girip düşüşlerde fırsatları kaçırmanıza engel olur.
Özellikleri:
Yatırım Botu sizin yerinize alım satım yapmaz en uygun zamanlarda sizi bilgilendirir, alımlar manuel yapılır.
İncelenmek istenen ürün ile ilgili tüm incelemeleri otomatik yaparak incelemeyi unuttuğunuz bir özellik bırakmaz insan ve hata faktörünü ortadan kaldırır.
İncelenen ürün fiyatının kazanç elde edilebilmesi için uygun durumda olup olmadığını geçmiş istatistiklere göre inceler hangi ürünün daha fazla ucuzladığını anında tespit edebilirsiniz, FOMO'ya kapılmanızın önüne geçer tepeden malı elinize veremezler.
Trend takibi ile tespit edilen trend'te yapılması doğru olan trade yöntemini gösterir. (Yükselen Trend'te Alınan Tutulur, Yatay Trend'te Al - Sat, Düşen Trend'te ise Fırsat Alımı)
Trend dönüşlerini renkli mumlar ile gösterir ve alarm kurulduğunda önemli bölgelerde anlık bildirimler alırsınız. Bu özellik çok önemlidir ürünü en dipten yakalamanıza ve stop seviyenizi taşıyarak işleme devam etmenize yardımcı olur.
Mal toplarken ve satarken incelenen eski istatistiklere göre ürünü kolayca alabileceğiniz ve satabileceğiniz muhtemel fiyat dönüş bölgelerini kırmızı(alış) ve yeşil(satış) çizgiler ile gösterir.
Aşırı alım ve satım bölgelerinde bildirim alabilirsiniz. Alarm kurduğunuzda alarm bulunan ürün ile ilgili önemli fiyat hareketlerini takip etmeseniz bile bilirsiniz, gözünüz arkada kalmaz.
Özelleştirilebilir ayarlar ile eklentiyi kendinize uydurun.
Yöntem 1:
Yatırım Botu Parçalı Alım Tekniği Eklentisi ürünün fiyatına bakarak ucuzlama durumunu 0 ile 6 arasında puanlar; 3x, 5x gibi. X değerini 100 dolar olarak düşünelim. 3x olan puana 300 dolarlık 5x olan puana 500 dolarlık işlem açılacak gibi. Parçalı alım tekniği ile yapılan alımlar sayesinde fiyatı dipten dönen ürünün dip fiyatına yakın bir ortalama sağlarsınız. 0x puanı o ürünün orta uzun vade alım için uygun olmadığını fiyatının pahalı olduğunu gösterir ancak yeşil hedeflere kadar vur kaç işlemleri yapmak sizin bileceğiniz iştir.
Örnek Kullanım: Bitcoin almaya karar verdik alım yapmak istiyoruz Bitcoin almak için ayırdığınız sermayeyi 21 parçaya bölüyoruz (1x+2x+3x+4x+5x+6x=21x) eğer Bitcoin şuan 3x alınabilir seviyede olsaydı (3x+4x+5x=12x) 12 parçaya bölecektik. İlk alımımızı destek ve direnç çizgilerini çektikten sonra fiyatın yukarı dönüş yapacağını düşündüğümüz seviyeden yapıyoruz fiyat yukarı giderse hemen kar ediyoruz ancak oldu da aşağı giderse alınabilir fiyat seviyelerine göre ekleme yapmaya devam ediyoruz her ekleme işlemi yapılırken fiyatın yukarı dönüş için bir sinyal vermesi şart ürün düşerken ekleme yapmıyoruz. Bazen ürün biz ekleme yapmadan 2 3 seviye birden düşebilir burada karar sizin atlanan seviye alımlarını mevcut seviyeye ekleyerek alım yapabilirsiniz. Yeterince ürün topladıysanız geriye sadece yükselişi beklemek kalır uygun seviyelerden toplayarak oluşturduğunuz yatırımı eski istatistiklere göre oluşturulan Yeşil Çizgilerle gösterilen hedeflerde parça parça yada toptan satabilirsiniz. Kar almayı ihmal etmeyin.
Yöntem 2:
Trend dönüşlerinde gelen sarı mum ve mor mum işleme girmemiz ve çıkmanız için en doğru zamanları gösterir. Sarı mum'u gördüğünüzde fiyat dip bölgesinden dönüş yapıyordur ürünü buradan alır ve hemen sarı mum altına stop koyarız %1-3 arasında olmalı daha fazla değil burada amaç eğer dönüş gerçekleşmez ve düşüş devam ederse işlemden çıkıp ürünü daha aşağıda gerçekleşecek dönüşten tekrar almaktır, ürünü dipten yakalayana kadar birkaç sefer stop olabiliriz ancak dipten yakalanan ürün sayesinde stop zararları çok rahat telafi edilmektedir. Ürünü aldıktan sonra bulunduğumuz trend yükselen bir trend ise kolay al-sat hedeflerinde ürünü ucuza satmıyoruz mor mum görmeyi bekliyoruz mor mum trend'in bozulabileceği anlamını taşıyor ancak kesin bozulacak elindekini sat kaç demek değildir bu nedenle mor mum'u gördüğümüzde stop seviyemizi mor mum altına taşıyoruz trend bozulur düşüş devam ederse işlemden çıkmış oluyoruz ancak düşüş devam etmez yükselen trend devam ederse stop seviyemizi sürekli mor mum altına taşıyarak ilerliyoruz. Sonunda maximum kar alarak işlemden çıkıyoruz ancak bazen gelecek fake hareketler ve iğneler gereksiz stop olmanıza neden olacaktır bunun bir çözümü yada önlemi yok malesef.
Uyarı: Yatırım Botu eklentisi doğru zamanlarda alım yaptırmayı amaçlar ancak alım yapmadan önce destekler çizilmeli fiyatın aşağı gitmediği onaylanmalıdır sadece eklentiye göre hareket etmek ve stopsuz işlem yapmak (Mal toplarken dahi %10-20 aşağıya bile olsa mutlaka konulmalıdır olası büyük düşüşlerde %70-80 kaybetmekten iyidir) yanlıştır. Kullandığınız grafik zamanına göre eklentinin hesapladığı sonuçlar değişebilir, küçük zaman istatistikleri daha az güvenilir sonuçlar verir.
Strategy - Bobo PAPATRHi I've revamped this bot mentioned in the linked idea to make it work with v4 of pine. In doing so there are some very significant changes to how it works. The main one is that it no longer uses traditional daily pivot calculations to calculate the bands. It creates a more dynamic intraday set of pivot points based on recent price action rather than yesterday's ohlc. As published, the bot is tuned for a 15 min time frame. But it actually works well on lower time frames you just need to adjust the lookback periods in settings a bit to re tune it. It's also tuned to ES really but will need tweaking for a different instrument at the very least.
The basic concept is recent price action is used to calculate a 'middle' around which red and green bands are located. Their position or width is largely determined by recent volatility. The middle line is again calculated from recent price action. The three lines from that form a tradeable range with green at the top and red at the bottom. The strategy is simple enough, it shorts as it sinks from outside red, and longs when rising above green. The basic principle being that once you enter that range you have a high probability of hitting the middle before you hit your stop loss. So the basic principle is you are trying to capture the inherent ranginess of liquid indices like S&P 500. That back and forth movement that happens. The bot is capturing this by fading extremes of a recent range but the problem with that is you'dd get murdered in a strong trend. To mitigate that there is a trend calculation running in the background the will prevent trading against firm trends mostly. So the bot should trade mostly in rangy conditions because that is what it is trying to do.
Bot will close issue close signals automatically upon crossing the middle, it also will close automatically at predefined stops or limits. These values are denominated in market mintick values. For example the CFD SPX500 has a mintick of 0.1. Therefore a stop value of 100 will equate to 10 points on the index. If trading the same market via ES1! the mintick value is different - 0.25. So in this case a value of 40 is required to set the stop at 10 points.
Anyway shout if you have questions. Hope it's useful.
TVC:SPX OANDA:SPX500USD
Kairos [Signals]Kairos bot looks for the opportune time to buy low and sell high at targets
It provides signals to open and close trades, and indicates favorable positions for a stop loss and profit taking
The Kairos bot can be used on any chart and on any time frame
---BACKTESTER---
Using the backtester script the user can look at a chart's history between selected dates to find optimal bot settings and optimal time frames
The backtester is based on general percentages for profit taking as indicated below:
-------------T1 T2 T3 T4 T5 T6 CLOSE
1 Target: 50% 50%
2 Targets: 50% 25% 25%
3 Targets: 40% 30% 20% 10%
4 Targets: 40% 25% 20% 10% 5%
5 Targets: 35% 25% 20% 10% 5% 5%
6 Targets: 30% 25% 20% 10% 5% 5% 5%
ie: If 2 targets are selected:
- 50% of investment will be taken at target 1
- 25% of investment will be taken at target 2
- and the remainder 25% will be taken when the trade is closed on a close signal
However, it is up to the user's own risk appetite to determine where and how much profit to take
Note that the backtester does not have any on screen indicators other than OPEN and CLOSE, however profit taking can be indicated by ticking the Style -> Trades on Chart tick box on the settings userform
---SIGNALS---
The signals script can be used for automation and can indicate up to 6 potential Profit Targets, as well as a Stop Loss based on how many bars back needs to be taken into consideration
The signals (Open/Close) can be automated using TradingView alerts, however the Stop Loss and Profit Taking are only indicators and are for the users own interpretation
The user does not have to place a Stop Loss or take profit at the Targets if so wished, the bot can be used to simply buy on an OPEN signal and sell on a CLOSE signal, however, the backtester will indicate that it is far more profitable to take profits.
It is advised to take profits just below indicated Targets as these are potentially high selling zones and price action can sometimes turn down just short of these targets.
---INVITE-ONLY SCRIPT---
This is an invite-only script, so if you would like to try out Kairos Bot, send me a message
Kairos [Backtester]Kairos bot looks for the opportune time to buy low and sell high at targets
It provides signals to open and close trades, and indicates favorable positions for a stop loss and profit taking
The Kairos bot can be used on any chart and on any time frame
---BACKTESTER---
Using the backtester script the user can look at a chart's history between selected dates to find optimal bot settings and optimal time frames
The backtester is based on general percentages for profit taking as indicated below:
-------------T1 T2 T3 T4 T5 T6 CLOSE
1 Target: 50% 50%
2 Targets: 50% 25% 25%
3 Targets: 40% 30% 20% 10%
4 Targets: 40% 25% 20% 10% 5%
5 Targets: 35% 25% 20% 10% 5% 5%
6 Targets: 30% 25% 20% 10% 5% 5% 5%
ie: If 2 targets are selected:
- 50% of investment will be taken at target 1
- 25% of investment will be taken at target 2
- and the remainder 25% will be taken when the trade is closed on a close signal
However, it is up to the user's own risk appetite to determine where and how much profit to take
Note that the backtester does not have any on screen indicators other than OPEN and CLOSE, however profit taking can be indicated by ticking the Style -> Trades on Chart tick box on the settings userform
---SIGNALS---
The signals script can be used for automation and can indicate up to 6 potential Profit Targets, as well as a Stop Loss based on how many bars back needs to be taken into consideration
The signals (Open/Close) can be automated using TradingView alerts, however the Stop Loss and Profit Taking are only indicators and are for the users own interpretation
The user does not have to place a Stop Loss or take profit at the Targets if so wished, the bot can be used to simply buy on an OPEN signal and sell on a CLOSE signal, however, the backtester will indicate that it is far more profitable to take profits.
It is advised to take profits just below indicated Targets as these are potentially high selling zones and price action can sometimes turn down just short of these targets.
---INVITE-ONLY SCRIPT---
This is an invite-only script, so if you would like to try out Kairos Bot, send me a message
SARcastiqueSARcastique
Introduction
SARcastique leverages classic signal strategies typically seen in equity program trading algos. Interestingly, in the crypto world, these statistical methods don’t mean quite as much as crypto is generally random and spastic. (I find some of the online analysis humorous—“setting bottom when we cross the 50 day moving average”—really? Trend following is measured in minutes, hours or days, not weeks or months. SARcastique uses the Parabolic SAR indicator with various filters to insure good buying and selling opportunities.
BOT RENTERS: All my BOTs use the same framework with different signaling strategies as I have found this a very useful way to “test and learn”. The framework allows configuration for “interesting” parameters to their underlying TA-lib functions. In addition, I have found that trade execution strategies are far more important than getting the right signals in place. My framework allows for MARKET orders only, and “chasing the book” which insures that you can place LIMIT orders attempting to be a “market maker” not “taker”. In addition, the framework takes a trailing STOP approach which eliminates a lot of risk on the down side.
With so much trading, fees and slippage can really make a difference. Some exchanges provide free trades (GDAX) if you make markets with your trading. This applies to both the BUY and SELL sides and proves very useful. A big mistake with newbies in this area is not considering cost (and slippage). My BOTs have yielded approximately 70-80% free trades (mileage varies based on statistical settings) with exchanges that have the market maker policy. Always, be conservative in back-testing the strategies with fee settings—this can quickly destroy profits.
I have tested extensively on Binance, Bitfinex and GDAX and leave it to you to backtest your favorite exchange—SARcastique trades a lot with some settings, so if your exchange isn’t quite as reliable or has holes in the data the BOT may not perform as advertised.
Key Features
• Designed for market maker trading
• Leverages classic statistical models in a unique crypto way
• Trades when market is sideways or heading up, sleeps when heading down
• Two to three trades daily (depending on settings and market action)
• Tune-able with ample knobs and levers.
Stop Loss % (default 97%) STOPs will be placed and ratchet up following stops with each 1% increase in price action.
Trailing Stop Loss (default 95%) once w hav momentum we can increase are downside risk. You dont want to get shaken out in a wild crypto market (or maybe you do)
SAR Settings (default .02, .028, .04) very sensative and specific to exchange and pair. A fscinating indicator
Short EMA - guide for SAR BUY indicator signal
Long EMA - guide for SAR SELL indicator signal
Buy ROC Length (default 75) number of candles averaged for positive rate of change, which gives the go ahead to act on a BUY signal. When markets are heading south the BOT goes to sleep. You might get a STOP LOSS haircut (default 3%, 2 to 1 chance if you are in a position), but no trade chattering in whipsaw downward spirals after that.
Sell ROC Length (default 85) number of candles averaged for a negative rate of change, which gives the go ahead to act on a SELL signal. Note: the tighter the Bollinger Bands (e.g. 5) the less likely a SELL will process before a STOP LOSS is reached making this parameter useless in those cases.
MACD – the moving average convergence/divergence is used to check the validity of BUY and SELL signals
MACD Fast Period (default 13)
MACD Slow Period (default 24)
MACD Signal Smoothing (default 10)
Average Volume Length (default 19) used to assert that SELL signals are accompanied by meaning full volume.
Pineconnector Strategy Template (Connect Any Indicator)Hello traders,
If you're tired of manual trading and looking for a solid strategy template to pair with your indicators, look no further.
This Pine Script v5 strategy template is engineered for maximum customization and risk management.
Best part?
It’s optimized for Pineconnector, allowing seamless integration with MetaTrader 4 and 5.
This powerful tool gives a lot of power to those who don't know how to code in Pinescript and are looking to automate their indicators' signals on Metatrader 4/5.
IMPORTANT NOTES
Pineconnector is a trading bot software that forwards TradingView alerts to your Metatrader 4/5 for automating trading.
Many traders don't know how to dynamically create Pineconnector-compatible alerts using the data from their TradingView scripts.
Traders using trading bots want their alerts to reflect the stop-loss/take-profit/trailing-stop/stop-loss to break options from your script and then create the orders accordingly.
This script showcases how to create Pineconnector alerts dynamically.
Pineconnector doesn't support alerts with multiple Take Profits.
As a workaround, for 2 TPs, I had to open two trades.
It's not optimal, as we end up paying more spreads for that extra trade - however, depending on your trading strategy, it may not be a big deal.
TRADINGVIEW ALERTS
1) You'll have to create one alert per asset X timeframe = 1 chart.
Example: 1 alert for EUR/USD on the 5 minutes chart, 1 alert for EUR/USD on the 15-minute chart (assuming you want your bot to trade the EUR/USD on the 5 and 15-minute timeframes)
2) Select the Order fills and alert() function calls condition
3) For each alert, the alert message is pre-configured with the text below
{{strategy.order.alert_message}}
Please leave it as it is.
It's a TradingView native variable that will fetch the alert text messages built by the script.
4) Don't forget to set the Pineconnector webhook URL in the Notifications tab of the TradingView alerts UI.
You’ll find the URL on the Pineconnector documentation website.
EA CONFIGURATION
1) The Pyramiding in the EA on Metatrader must be set to 2 if you want to trade with 2 TPs => as it's opening 2 trades.
If you only want 1 TP, set the EA Pyramiding to 1.
Regarding the other EA settings, please refer to the Pineconnector documentation on their website.
2) In the EA, you can set a risk (= position size type) in %/lots/USD, as in the TradingView backtest settings.
KEY FEATURES
I) Modular Indicator Connection
* plug in your existing indicator into the template.
* Only two lines of code are needed for full compatibility.
Step 1: Create your connector
Adapt your indicator with only 2 lines of code and then connect it to this strategy template.
To do so:
1) Find in your indicator where the conditions print the long/buy and short/sell signals.
2) Create an additional plot as below
I'm giving an example with a Two moving averages cross.
Please replicate the same methodology for your indicator, whether it's a MACD , ZigZag , Pivots , higher-highs, lower-lows, or whatever indicator with clear buy and sell conditions.
//@version=5
indicator("Supertrend", overlay = true, timeframe = "", timeframe_gaps = true)
atrPeriod = input.int(10, "ATR Length", minval = 1)
factor = input.float(3.0, "Factor", minval = 0.01, step = 0.01)
= ta.supertrend(factor, atrPeriod)
supertrend := barstate.isfirst ? na : supertrend
bodyMiddle = plot(barstate.isfirst ? na : (open + close) / 2, display = display.none)
upTrend = plot(direction < 0 ? supertrend : na, "Up Trend", color = color.green, style = plot.style_linebr)
downTrend = plot(direction < 0 ? na : supertrend, "Down Trend", color = color.red, style = plot.style_linebr)
fill(bodyMiddle, upTrend, color.new(color.green, 90), fillgaps = false)
fill(bodyMiddle, downTrend, color.new(color.red, 90), fillgaps = false)
buy = ta.crossunder(direction, 0)
sell = ta.crossunder(direction, 0)
//////// CONNECTOR SECTION ////////
Signal = buy ? 1 : sell ? -1 : 0
plot(Signal, title = "Signal", display = display.data_window)
//////// CONNECTOR SECTION ////////
Important Notes
🔥 The Strategy Template expects the value to be exactly 1 for the bullish signal and -1 for the bearish signal
Now, you can connect your indicator to the Strategy Template using the method below or that one.
Step 2: Connect the connector
1) Add your updated indicator to a TradingView chart
2) Add the Strategy Template as well to the SAME chart
3) Open the Strategy Template settings, and in the Data Source field, select your 🔌Connector🔌 (which comes from your indicator)
Note it doesn’t have to be named 🔌Connector🔌 - you can name it as you want - however, I recommend an explicit name you can easily remember.
From then, you should start seeing the signals and plenty of other stuff on your chart.
🔥 Note that whenever you update your indicator values, the strategy statistics and visuals on your chart will update in real-time
II) Customizable Risk Management
- Choose between percentage or USD modes for maximum drawdown.
- Set max consecutive losing days and max losing streak length.
- I used the code from my friend @JosKodify for the maximum losing streak. :)
Will halt the EA and backtest orders fill whenever either of the safeguards above are “broken”
III) Intraday Risk Management
- Limit the maximum intraday losses both in percentage or USD.
- Option to set a maximum number of intraday trades.
- If your EA gets halted on an intraday chart, auto-restart it the next day.
IV) Spread and Account Filters
- Trade only if the spread is below a certain pip value.
- Set requirements based on account balance or equity.
V) Order Types and Position Sizing
- Choose between market, limit, or stop orders.
- Set your position size directly in the template.
Please use the position size from the “Inputs” and not the “Properties” tab.
Reason : The template sends the order on the same candle as the entry signals - at those entry signals candles, the position size isn’t computed yet, and the template can’t then send it to Pineconnector.
However, you can use the position size type (USD, contracts, %) from the “Properties” tab for backtesting.
In the EA, you can define the position size type for your orders in USD or lots or %.
VI) Advanced Take-Profit and Stop-Loss Options
- Choose to set your SL/TP in either pips or percentages.
- Option for multiple take-profit levels and trailing stop losses.
- Move your stop loss to break even +/- offset in pips for “risk-free” trades.
VII) Logger
The Pineconnector commands are logged in the TradingView logger.
You'll find more information about it in this TradingView blog post .
WHY YOU MIGHT NEED THIS TEMPLATE
1) Transform your indicator into a Pineconnector trading bot more easily than before
Connect your indicator to the template
Create your alerts
Set your EA settings
2) Save Time
Auto-generated alert messages for Pineconnector.
I tested them all, and I checked with the support team what could/can’t be done
3) Be in Control
Manage your trading risks with advanced features.
4) Customizable
Fits various trading styles and asset classes.
REQUIREMENTS
* Make sure you have your Pineconnector license ID.
* Create your alerts with the Pineconnector webhook URL
* If there is any issue with the template, ask me in the comments section - I’ll answer quickly.
BACKTEST RESULTS FROM THIS POST
1) I connected this strategy template to a dummy Supertrend script.
I could have selected any other indicator or concept for this script post.
I wanted to share an example of how you can quickly upgrade your strategy, making it compatible with Pineconnector.
2) The backtest results aren't relevant for this educational script publication.
I used realistic backtesting data but didn't look too much into optimizing the results, as this isn't the point of why I'm publishing this script.
This strategy is a template to be connected to any indicator - the sky is the limit. :)
3) This template is made to take 1 trade per direction at any given time.
Pyramiding is set to 1 on TradingView.
The strategy default settings are:
* Initial Capital: 100000 USD
* Position Size: 1 contract
* Commission Percent: 0.075%
* Slippage: 1 tick
* No margin/leverage used
WHAT’S COMING NEXT FOR YOU GUYS?
I’ll make the same template for ProfitView, then for AutoView, and then for Alertatron.
All of those are free and open-source.
I have no affiliations with any of those companies - I'm publishing those templates as they will be useful to many of you.
Dave
Ultimate Grid Tool + Alerts (DCA & Limit Orders) [enzedengineer]Overview
The "Ultimate Grid Tool + Alerts" script works much like a grid bot from automated trading services such as 3Commas making it a good free alternative with some extra utility.
How it works
The user is prompted to set up a grid by manually defining a lower and upper range and then by selecting how many grid segments they want (max 20). The script will automatically create equally spaced grids within this defined range. The script has built in alerts which are intended to be used in conjunction with a third-party application to execute buy and sell orders on an exchange.
The script has two alert functionalities to choose between:
Limit orders (like traditional grid bots) or;
DCA zones (time-based)
DCA zones:
This is the default selection. Each zone has its own alert condition which is triggered if the price closes within that zone. The frequency of the alert is determined by the user's chart resolution, therefore you can have the alert trigger every day, or 4 hours, or 30 minutes and so on. This allows for flexibility, for example, you could go from DCA'ing at $20 per day at higher prices to $100 per day as the price drops into the lower end of your grid range.
Limit orders:
This mode is selected by checking the "Limit Order" box. As mentioned earlier, this mode works like traditional grid bots with each grid line representing a limit order. The alert condition is met when ta.cross(close, gridline) = true.
Buy and Sell:
This mode is selected by checking the "Buy and Sell" box. This is a visual modification only which changes the colour of the grids to help plan the user's trading. Please note, there is no buying or selling logic within the script itself - this should be built into the alert message to be used with a third-party application for exchange order execution.
Use case: The author of this script has been using it with the default settings to DCA into Bitcoin in the current bear market. Using a chart resolution of 15 minutes the script purchases x-amount of Bitcoin every 15 minutes (Alertatron executes the exchange orders). This method provides a well blended average price and takes away the internal conundrum of "should I buy some today". No matter what, the bot will make a purchase within at least 15 minutes of the ultimate Bitcoin bottom and arguably this gives a psychological edge and reduces FOMO (fear of missing out).
MPF EMA Cross Strategy (8~13~21) by Market Pip FactoryThis script is for a complete strategy to win maximum profit on trades whilst keeping losses at a minimum, using sound risk management at no greater than 1.5%
The 3x EMA Strategy uses the following parameters for trade activation and closure.
1/ Daily Time Frame for trend confirmation
2/ 4 Hourly Time Frame for trend confirmation
3/ 1 Hourly Time Frame for trend confirmation AND trade execution
4/ 3x EMAs (Exponential Moving Averages)
* EMA#1 = 8 EMA (Red Color)
* EMA#2 = 13 EMA (Blue Color)
* EMA#3 = 21 EMA (Orange Color)
5/ Fanning of all 3x EMAs and CrossOver/CrossUnder for Trend Confirmation
6/ Price Action touching an 8 EMA for trade activation
7/ Price Action touching a 21 EMA for trade cancellation BEFORE activation
* For LONG trades: 8 EMA would be ABOVE 21 EMA
* For SHORT trades: 8 EMA would be BELOW 21 EMA
* For trade Cancellation, price action would touch the 21 EMA before trade is activated
* For trade Entry, price action would touch 8 EMA
Once trigger parameter is identified, entry is found by:
a) Price action touches 8 EMA (Candle must Close for confirmed Trade preparation)
b) Trade preparation can be cancelled before trade is activated if price action touches 21 EMA
c) Trailing Stop Loss can be used (optional) by counting back 5 candles from current candle
CLOSURE of a Trade is identified by:
e) 8 EMA crossing the 21 EMA, then close trade, no matter LONG or SHORT
f) Trail Stop Loss
IMPORTANT:
g) No more than ONE activated trade per EMA crossover
h) No more than ONE active trade per pair
NOTE: This strategy is to be used in conjunction with Cipher Twister (my other indicator) to reduce trades on
sideways price action and market trends for super high win ratio.
NOTE: Enabling of LONGs and SHORTs Via Cipher Twister is done by using the previous
green or red dot made. Additionally, when the trend changes, so do the dot's validity based
on being above or below the 0 centerline.
----------------------------
Strategy and Bot Logic
----------------------------
.....::: FOR SHORT TRADES ONLY :::.....
The Robot must use the following logic to enable and activate the SHORT trades:
Parameters:
$(crossunder)=8EMA,21EMA=Bearish $(crossover)=8EMA,21EMA=Bullish $entry=SELL STOP ORDER (Short)
$EMA#1 = 8 EMA (Red Color) $EMA#2 = 13 EMA (Blue Color) $EMA#3 = 21 EMA (Orange Color)
Strategy Logic:
1/ Check Daily Time Frame for trend confirmation if:
(look back up to 50 candles - find last cross of EMAs)
$(chart)=daily and trend=$(crossunder) then goto 2/ *Means: crossunder = ema21 > ema8
$(chart)=daily and trend=$(crossover) then stop (No trades) *Means: crossover = ema8 > ema21
NOTE: This function is switchable. 0=off and 1=on(active). Default = 1 (on)
2/ Check 4 Hourly Time Frame for trend confirmation if:
(look back up to 50 candles - find last cross of EMAs)
$(chart)=4H and trend=$(crossunder) then goto 3/ *Means: crossunder = ema21 > ema8
$(chart)=4H and trend=$(crossover) then stop (No trades) *Means: crossover = ema8 > ema21
NOTE: This function is switchable. 0=off and 1=on(active). Default = 1 (on)
3/ 1 Hourly Time Frame for trend confirmation AND trade execution if:
(look back up to 50 candles - find last cross of EMAs)
$(chart)=1H and trend=$(crossunder) then goto 4/ *Means: crossunder = ema21 > ema8
$(chart)=1H and trend=$(crossover) then stop (No trades) *Means: crossover = ema8 > ema21
4/ Trade preparation:
* if Next (subsequent) candle touches 8EMA, then set STOP LOSS and ENTRY
* $stoploss=3 pips ABOVE current candle HIGH
* $entry=3 pips BELOW current candle LOW
5/ Trade waiting (ONLY BEFORE entry is hit and trade activated):
* if price action touches 21 EMA then cancel trade and goto 1/
Note: Once trade is active this function does not apply !
6/ Trade Activation:
* if price activates/hits ENTRY price, then bot activates trade SHORTs market
7/ Optional Trailing stop:
* if active, then trailing stop 3 pips ABOVE previous HIGH of previous 5th candle
or * Move Stop Loss to Break Even after $X number of pips
NOTE: This means count back and apply accordingly to the 5th previous candle from current candle.
NOTE: This function is switchable. 0=off and 1=on(active). Default = 0 (off)
8/ Trade Close ~ Take Profit:
* Only TP when
$(chart)=1H and trend=$(crossover) then close trade ~ Or obviously if Stop Loss is hit if 7/ is activated.
----------END FOR SHORT TRADES LOGIC----------
.....::: FOR LONG TRADES ONLY :::.....
The Robot must use the following logic to enable and activate the LONG trades:
Parameters:
$(crossunder)=8EMA,21EMA=Bearish $(crossover)=8EMA,21EMA=Bullish $entry=BUY STOP ORDER (Long)
$EMA#1 = 8 EMA (Red Color) $EMA#2 = 13 EMA (Blue Color) $EMA#3 = 21 EMA (Orange Color)
Strategy Logic:
1/ Check Daily Time Frame for trend confirmation if:
(look back up to 50 candles - find last cross of EMAs)
$(chart)=daily and trend=$(crossover) then goto 2/ *Means: crossover = ema8 > ema21
$(chart)=daily and trend=$(crossunder) then stop (No trades) *Means: crossunder = ema21 > ema8
NOTE: This function is switchable. 0=off and 1=on(active). Default = 1 (on)
2/ Check 4 Hourly Time Frame for trend confirmation if:
(look back up to 50 candles - find last cross of EMAs)
$(chart)=4H and trend=$(crossover) then goto 3/ *Means: crossover = ema8 > ema21
$(chart)=4H and trend=$(crossunder) then stop (No trades) *Means: crossunder = ema21 > ema8
NOTE: This function is switchable. 0=off and 1=on(active). Default = 1 (on)
3/ 1 Hourly Time Frame for trend confirmation AND trade execution if:
(look back up to 50 candles - find last cross of EMAs)
$(chart)=1H and trend=$(crossover) then goto 4/ *Means: crossover = ema8 > ema21
$(chart)=1H and trend=$(crossunder) then stop (No trades) *Means: crossunder = ema21 > ema8
4/ Trade preparation:
* if Next (subsequent) candle touches 8EMA, then set STOP LOSS and ENTRY
* $stoploss=3 pips BELOW current candle LOW
* $entry=3 pips ABOVE current candle HIGH
5/ Trade waiting (ONLY BEFORE entry is hit and trade activated):
* if price action touches 21 EMA then cancel trade and goto 1/
Note: Once trade is active this function does not apply !
6/ Trade Activation:
* if price activates/hits ENTRY price, then bot activates trade LONGs market
7/ Optional Trailing stop:
* if active, then trailing stop 3 pips BELOW previous LOW of previous 5th candle
or * Move Stop Loss to Break Even after $X number of pips
NOTE: This means count back and apply accordingly to the 5th previous candle from current candle.
NOTE: This function is switchable. 0=off and 1=on(active). Default = 0 (off)
8/ Trade Close ~ Take Profit:
* Only TP when
$(chart)=1H and trend=$(crossunder) then close trade ~ Or obviously if Stop Loss is hit if 7/ is activated.
----------END FOR LONG TRADES LOGIC----------
IMPORTANT:
* If an existing trade is already open for that same pair, & price action touches 8EMA, do NOT open a new trade..
* bot must continuously check if a trade is currently open on the pair that triggers
* New trades are to be only opened if there is no active trade opened on current pair.
* Only 1 trade per pair rule !
* 5 simultaneous open trades (not same pairs) default = 5 but value can be changed accordingly.
* Maximum risk management must not exceed 1.5% on lot size
*** Some features are not yet available autoated, they will be added in due course in subsequent version updates ***
Dual Fibonacci Zone & Ranged Vol DCA Strategy - R3c0nTraderWhat does this do?
This is for educational purposes and allows one to backtest two Fibonacci Zones simultaneously. This also includes an option for Ranged Volume as a parameter.
Pre-requisites:
First off, this is a Long only strategy as I wrote it with DCA in mind. It cannot be used for shorting. Shorting defeats the purpose of a DCA bot which has a goal that is Long a position not Short a position. If you want to short, there are plenty of free scripts out there that do this.
You must have some base knowledge or experience with Fibonacci trading, understanding what is ADX, +DI (and -DI), etc.
You can use this script without a 3Commas account and see how 3Commas DCA Bot would perform. However, I highly recommend inexperienced uses get a free account and going through the tutorials, FAQ's and knowledgebase. This would give you a base understanding of the settings you will see in this strategy and why you will need to know them. Only then should you try testing this strategy with a paper bot.
Background
After I had created and released "Fibonacci Zone DCA Strategy", I began expanding and testing other ideas.
The first idea was to add Ranged Volume to the Fibonacci Zone DCA strategy which I wanted for providing further confirmation before entering a trade. The second idea was to add a second Fibonacci Zone that was just as configurable as the first Fibonacci Zone. I managed to add both and they can be easily enabled or disabled via the strategy settings menu.
Things Got Real Interesting
Things got real interesting when I started testing strategies with two Fibonacci zones. Here's a quick list of what I found I was able to do:
Mix and match exit strategies. I could set the Fib-1 zone strategy to exit with a take profit % and separately set the Fib-2 zone strategy to exit when the price crosses the top-high fib border
Trade the trend. A common phrase amongst traders is "the Trend is your friend" and with the help of an additional Fib Zone, I was able to trade the trend more often by using two different Fib Zone strategies which if configured properly can shorten time to re-deploy capital, increase number of closed trades, and in some cases increase net profit.
Trade both bull market uptrends and bear market downtrends in the same strategy. I found I could configure one Fib Zone strategy to be really good in uptrends and another Fib Zone strategy to be really good in downtrends. In some cases, with both Fib Zone strategies enabled together in a single strategy I got better results than if the strategies were backtested separately.
There are many other trade strategies I am finding with this. One could be to trade a convergence or divergence of the two different Fib Zones. This could possibly be achieved by setting one strategy to have different Fibonacci length.
Credits:
Thank you "EvoCrypto" for granting me permission to use "Ranged Volume" to create this strategy
Thank you "eykpunter" for granting me permission to use "Fibonacci Zones" to create this strategy
Thank you "junyou0424" for granting me permission to use "DCA Bot with SuperTrend Emulator" which I used for adding bot inputs, calculations, and strategy
Fibonacci Zone DCA Strategy - R3c0nTraderCredits:
Thank you "eykpunter" for granting me permission to use "Fibonacci Zones" to create this strategy
Thank you "junyou0424" for granting me permission to use "DCA Bot with SuperTrend Emulator" which I used for adding bot inputs, calculations, and strategy
Pre-requisites:
You can use this script without a 3Commas account and see how 3Commas DCA Bot would perform. However, I highly recommend signing up for their free account, going through their training, and testing this strategy with a paper bot. This would give you a base understanding of the settings you will see in this strategy and why you will need to know them.
What can this do?
First off, this is a Long only strategy as I wrote it with DCA in mind. It cannot be used for shorting. Shorting defeats the purpose of a DCA bot which has a goal that is Long a position not Short a position. If you want to short, there are plenty of free scripts out there that do this.
I created this script out of curiosity and I wanted to see how a strategy based on “Fibonacci” levels would work with a 3Commas DCA bot. I came across "eykpunter’s" "Fibonacci Zones" study and in TradingView and I found it to be a very interesting concept. The "Fib Zones" in his study are basically a "Donchian Channel" of 4 Fibonacci lines. These are the High @ 0.236, Center High @ 0.382, Center Low @ 0.618, and Low @ 0.764.
The Fib Zones in this strategy can be used as conditions to open a trade as well as closing a trade. There is also the option to close a trade based on a Target Take Profit (%).
Advanced Fibonacci trading is also supported by specifying additional parameters for Trade Entry and Exit.
For example, for order entry, you can increase the minimum trend strength to open an order via the "minimum ADX value" option. You can also further limit order entry by selecting the option to "Only open trades on bullish +DI" (Positive Directional Index).
Or you can play the contrarian. For example, I would look for "buying the dip" opportunities by doing the following under "Trade Entry Settings":
Set the "Min ADX value to open trade" to zero
Set the option "Open a trade when the price moves" to "1-To the bottom of Downtrend Fib zone" or "2-Higher than the top of the Downtrend Fib zone"
Uncheck option "Only open trades on bullish +DI"
Set the 'Min ADX value to open trade' to Zero
Set the 'Max +DI value to open trade' to a value between 10-20.
For Trade Exit settings, I can use a "Target Take Profit (%)" or one of the High Fib levels to close the trade.
Here's an example result when using a Contrarian-Fibonacci-Zone-DCA strategy:
Explanation of Chart lines and colors on chart
Six Options for Entering a Fibonacci Trade
Open a trade when the price moves:
1-To the bottom of Downtrend Fib zone
2-Higher than the top of the Downtrend Fib zone
3-Higher than the bottom of Ranging Fib Zone
4-Higher than the top of Ranging Fib Zone
5-Higher than the bottom of Uptrend Fib Zone
6-To the top of Uptrend Fib Zone
Three Options for Exiting a Fibonacci Trade
Take profit using:
"Target Take Profit (%)"
"High Fibonacci Border-1"
"High Fibonacci Border-2"
TTP Grid BacktesterThis pine script strategy allows to backtest Grid bots.
This initial version offers the following features:
- Set the top and bottom limits of the grid
- Plots the average position price, realised and unrealised profits
- Set the value to invest
- This script is a strategy so you can check each individual buy/sell, stats and all included with strategies
What does it do:
- Depending where is located the initial close price relative to the grid (above, below, inside) it will buy for as many levels are above the price.
- It will disable a level that recently filled an order (in the way grids bot do)
- When the grid starts it will disable the closest grid level
- It places limit orders in the active levels and many levels can be filled in a single candle
- You can activate recalculate on each order filled, which will allow to fill further needed orders if the price swings up and down crossing multiple times multiple grid levels but I have found that doing this can compromise the accuracy of the price used on those levels (there are minor gaps between the filled price and the original level price)
How to use it:
- When you add this strategy to the chart you will be asked to select the top and bottom limits of the grid
- Notice you can always select the strategy in the chart and drag and drop the limits to adjust the grid
- Once the grid is in place, you can use either lower chart timeframes for higher accuracy of the stats, or higher timeframes if you want to privilege longer periods of testing
How to set the correct "initial capital"
In order to prevent getting wrong stats you need to make sure you are using the correct initial capital. If you put less than what you are actually using your results will be over inflated. If you set an initial capital below what the bot requires, your results will be smaller than they should.
- If you want to use exactly 100% of the capital for the grid use then first select what amount per level you want to use. Set this value in the settings of the indicator (if you are trading BTCUSD pair, how much BTC you want to use per level, 0.01 for example).
- Once you have set this value, then open the TradingView "Data Window" to be able to visualise the calculation of cash required to run the grid that the strategy is giving you. In our example with BTCUSD this value will be given in USD.
- Enter this amount in the "Properties" tab, "Initial Capital". If you enter the exact amount you will be using all for the grid usage.
- The grid first action will be to buy 0.01 for each level that is above the current price in the first candle of the chart. If there are no levels above it won't do any initial investment.
- The rest of the cash will be use to buy levels below if the price goes to the lower range of the grid later
Intention of this script
I built this script to help me understand better how grid bots work.
Understanding the flow of realised vs unrealised profits in a grid can help me understand why sometimes even if you are in red on unrealised profits, you can still compensate with realised profits and many other tricky scenarios with grids.
Sometimes I'm running a grid bot and would like to simulate how much better (or worst) it would have been to run it using different limits.
Future work and ideas
Initially I'm focusing on confirming that the grid behaves correctly and that the stats are as accurate as possible.
That is the first priority.
Once I feel more confident with the accuracy I will consider adding some of the following ideas (not in any particular order):
- Table with stats including: price of each level, times the level filled an order, times it was use for selling/buying, etc. Time it took to become in realised profit. Comparison against profits from buy & hold.
- Trailing TP/SL
- Entry/exit price
- Trading time window: only trade between the specified dates/times
- Alerts
MoonFlag DailyThis is a useful indicator as it shows potential long and short regions by coloring the AI wavecloud green or red.
There is an option to show a faint white background in regions where the green/red cloud parts are failing as a trade from the start position of each region.
Its a combination of 3 algos I developed, and there is an option to switch to see these individually, although this has lots of info and is a bit confusing.
It does have alerts and there are text boxes in the indicator settings where a comment can be input - this is useful for webhooks bots auto trading.
Most useful in this indicator is that at the end of each green/long or red/short region there is a label that shows the % gain or loss for a trade.
The label at the end of the chart shows the % of winning longs/shorts and the average % gain or loss for all the longs/shorts within the set test period (set in settings)
So, I generally set the chart initially on a 15min timeframe with the indicator timeframe (in settings) set to run on say 30min or 1hour. I then select a long test period (several plus months) and then optimize the wavelcloud length (in settings) to give the best %profit per trade. (Longs always seem to give better results than shorts)
I then, change the chart timeframe to much faster, say 1min or 5min, but leave the indicator timeframe at 1 hour. In this manner - the label only shows a few trades however, the algo is run at every bar close and when this is set to 1min, this means that losses will be minimised at the bot exits quickly. In comparison - if the chart is on a 15min timeframe - it can take this amount before the bot will exit a trade and by then there could be catastrophic losses.
It is quite hard to get a positive result - although with a bit of playing around - just as a background indicator - I find this useful. I generally set-up on say 4charts all with different timeframes and then look for consistency between the long/short signal positions. (Although when I run as a bot I use a fast timeframe)
Please do leave some comments and get in touch.
MoonFlag (Josef Tainsh PhD)
3Commas TA Start Conditions Indicator v1.0Introduction
The indicator attempts to implement the "Technical Analysis Starting Conditions" found in the 3Commas DCA trading bot settings.
How is it original and useful and how does it compare to other scripts in the Public Library?
This indicator is unique in that it's the only one (as of the initial publications) that can handle 5 signal indicator types at the same time as well as output the signal values either to the chart or the data window. The indicator supports all of the following 3Commas built-in indicators on the 3 minute, 5 minute, 15 minute, 30 minute, 1 hour, 2 hour, and 4 hour time frames:
RSI-7
ULT-7-14-2
BB-20-1-LB (Long)
BB-20-2-LB (Long)
MFI-14 crosses 40 (Long)
MFI-14 crosses 20 (Long)
CCI-40 crosses -200 (Long)
BB-20-1-UB (Short)
BB-20-2-UB (Short)
MFI-14 crosses 65 (Short)
CCI-40 crosses 0 (Short)
CCI-40 crosses 100 (Short)
What does it do and how does it do it?
When applied to the chart for the first time, the default settings are completely blank, so the only chart element you will see is the "Start Condition Result" line in orange. Once you start applying settings in the "DEAL START CONDITION" section, the indicator will redraw and display the new values for the "Start Condition Result" line. A value of 1 indicates that the results of the condition(s) is "passing". Conversely, a value of 0 indicates that the results of the condition(s) is NOT passing. If you desire to dig deeper into why the indicator is producing the results, you can enable the "Show TA Indicator # Plot" to visually see the values on the price chart or simply open the Data Window panel to see their values as you hover over the candles in the price chart.
This indicator can be used with any indicator in the Public Library that seeks to emulate the 3Commas Technical Analysis Starting Conditions for a signal provider. For example, this indicator can be used our own 3Commas DCA Bot Strategy v1.0 to aid in your backtesting analysis and build confidence that your bot will perform given historical market data that TradingView provides. When you do so, make sure that the "Strategy" input has the same values with the two indicator settings.
Enjoy! 😊👍
How to obtain access to the script?
You have two choices:
Use the "Website" link below to obtain access to this indicator, or
Send us a private message (PM) in TradingView itself.
[ADOL_]ARVIS 3ENG) This is version 3 of ARVIS BOT. ARVIS 3
Since it is a new version with a completely different identity from Trend Break, we do not use the name Trend Break.
It is a version made lighter in the existing version and newly created logic.
Existing ARVIS users can use versions 1, 2, 3 and 3R auxiliary tools to be added without additional rights.
Optional use is possible.
principle)
Features of the new core logic:
It was created considering the relative strength RSI and the ICHIMOKU moving average.
Identify the trend strength to generate a long and short reversal signal at the reversal of the trend.
By using HTF signal, it is possible to bring the signal of the upper time to the smaller time.
By using HTF, the candle splits and the standard maintains the flow of time.
A method was used to reduce the whipsaw of frequent signal appearances.
option)
A volatility warning notification has been included. A function that alerts you before volatility increases.
It is indicated in the form of ■ at the bottom of the chart.
You can optionally set the signal range.
Dynamic Fibonacci moving along the candlestick was applied. 0.5 is used as a criterion for determining a large trend.
By combining the RSI and the moving average, you can apply a background that utilizes the RSI as a sensitivity.
By combining RSI and Stochastic, the overbought/oversold section was output as the background.
You can output overbought/oversold at the desired time as a background.
Up/down divergence included as background.
Black is downward divergence and white is upward divergence.
In the lower right corner, an indicator for the probability of a long is added by combining the multiple moving averages and the figures analyzed for the convergence trend.
50% is used as a reference point for long/short conversion, 10~20% is considered oversold section, and 80~90% is considered overbought section.
It can be used as a reference point for counter-trend trading. Probability indicators allow you to increase your judgment with visualized numbers.
principle example)
time frame)
Recommended time frame: 15-minute peaks >> 1-hour peaks > 1.3-minute peaks = 4 hour peaks = daily
alarm)
Various alert functions are available. based on the alert signal
When trading, various signals help to set specific conditions.
- HTF Long Short , Alert
- Volatility warning alert
- Basic long and short alerts
- Up/down divergence alert
trading method)
1. Utilize SIGNAL1 L,S signals. It is a similar approach to the existing manual bot mode.
2.SIGNAL2's , signals can bring high-time signals to buy and sell. This is a similar approach to the existing autobot mode.
If you bring a high time signal to a small time, you can refine the hit point, so in this case, use SIGNAL2 of 15 minutes or longer.
SIGNAL2 15-minute view at 3-minute peak, SIGNAL 1 hour view at 15-minute peak, and SIGNAL 4 hour view at 1-hour peak are recommended values.
3-1. Entry criteria/stop loss criteria (when trading hands and bots)
- entry criteria; Follow the signal.
- Stop loss criteria;
Use fixed stop loss: Set 1% fixed stop loss section from signal generation. (% is set individually)
Use Candle Stop Loss: Set a stop loss when the low or high point of the signal generating bar collapses.
Use flow stop loss: Set the stop loss considering the flow of the wave.
3-2. Entry criteria/stop loss criteria (in case of signal-based bot trading)
- It is not recommended to use more than 3x magnification. The above entry requires manual intervention and risk management.
It switches every time the opposite signal appears after entering without setting the stop loss separately.
Example of using the 15-minute HTF signal in the 3-minute scale
4. Note
You are solely responsible for any trading decisions you make.
ARVIS 3R indicator will be updated. Required for use of ARVIS 3
This is an additional feature. It is created as an indicator at the bottom, not as a candle chart.
5. How to use
It is set to be available only to invited users. When invited,
Tap Add Indicator to Favorites at the bottom of the indicator.
If you click the indicator at the top of the chart screen and look at the left tab, there is a Favorites tab.
Add an indicator by clicking the indicator name in the Favorites tab.
KOR) ARVIS BOT의 3버전입니다. ARVIS 3
Trend Break와 정체성을 완전히 달리한 신버전이므로
더이상 Trend Break 의 명칭을 쓰지 않습니다.
기존버전을 경량화하고 로직을 새롭게 만든 버전입니다.
기존의 ARVIS 이용자는 추가 권한 없이 1,2,3버전과 추가될 3R보조도구의
선택 활용이 가능합니다.
원리)
새로운 핵심적인 로직의 기능 :
상대강도인 RSI와 ICHIMOKU 이평선을 고려하여 만들어졌습니다.
추세강도를 파악해 추세의 전환자리에서 롱과 숏의 전환 신호를 발생시키도록 합니다.
HTF신호를 이용하여 상위 시간의 신호를 작은 시간대로 가져올 수 있습니다.
HTF를 활용함으로써 캔들은 쪼개고 기준은 상위 시간의 흐름을 유지해
잦은 신호출현의 휩쏘를 줄이는 방법을 사용하였습니다.
옵션)
변동성 경고 알림이 포함되었습니다. 변동성이 커지기 전에 미리 알려주는 기능으로
차트하단에 ■ 형태로 표기됩니다.
시그널의 범위를 옵션으로 설정할 수 있습니다.
캔들을 따라 움직이는 동적 피보나치가 적용되었습니다. 0.5를 큰 추세 판단 기준으로 활용합니다.
RSI와 이평선을 결합하여 RSI를 민감도로 활용한 배경을 적용할 수 있습니다.
RSI와 스토캐스틱을 결합하여 과매수/과매도구간을 배경으로 출력하였습니다.
원하는 시간의 과매수/과매도를 배경으로 출력할 수 있습니다.
상승/하락 다이버전스가 배경으로 포함되었습니다.
검은색은 하락다이버전스, 흰색은 상승다이버전스입니다.
우측하단에 다중이평선과 수렴추세를 분석한 수치를 종합하여 롱의 확률에 대한 표시기가 추가되었습니다.
50%는 롱/숏의 전환 기준점으로 활용하며, 10~20%는 과매도 구간, 80~90%는 과매수 구간으로 간주하여
역추세 매매의 기준점으로 활용할 수 있습니다. 확률 표시기를 통해 가시화된 수치로 판단을 높일 수 있습니다.
원리 예시)
타임프레임)
추천타임프레임 : 15분봉 >> 1시간봉 > 1,3분봉 = 4시간봉 = 일봉
알람)
다양한 얼러트 기능을 사용할 수 있습니다. 얼러트 신호를 기반으로
매매시 다양한 신호는 구체적 조건 설정에 도움이 됩니다.
- HTF 롱숏🥵,🥶 얼러트
- 변동성 경고 얼러트
- 기본 롱,숏 얼러트
- 상승/하락 다이버전스 얼러트
매매방법)
1. SIGNAL1 L,S 신호를 활용합니다. 기존의 수동봇 모드와 비슷한 접근입니다.
2.SIGNAL2의 🥵,🥶 신호는 높은 시간의 신호를 가져와 매매할 수 있습니다. 기존의 자동봇 모드와 비슷한 접근입니다.
높은 시간대의 신호를 작은시간으로 가져오면 타점을 정교화 할 수 있으므로, 이와같은 경우 15분 이상의 SIGNAL2를 활용합니다.
3분봉에서 SIGNAL2 15분 보기, 15분봉에서 SIGNAL 1시간 보기, 1시간봉에서 SIGNAL 4시간 보기가 추천값입니다.
3-1. 진입기준/손절기준(손,봇 매매시)
- 진입기준; 시그널을 따릅니다.
- 손절기준;
고정손절가 이용 : 시그널 발생으로부터 1% 고정 손절가 구간을 설정합니다.(%는 개별로 설정)
캔들손절가 이용 : 시그널 발생봉의 저점이나 고점이 무너지면 손절을 설정합니다.
흐름손절가 이용 : 파동의 흐름을 고려하여 손절을 설정합니다.
3-2. 진입기준/손절기준(신호기반 봇 매매시)
- 3배율 이상을 권장하지 않습니다. 이상의 진입은 수동개입으로 리스크관리가 필요합니다.
손절가를 따로 설정하지 않고 진입후 반대신호가 뜰때마다 스위칭을 합니다.
3분봉에서 15분HTF 신호사용의 예시
4. 참고
귀하가 내리는 모든 거래 결정은 전적으로 귀하의 책임입니다.
ARVIS 3R 지표가 업데이트 예정입니다. ARVIS 3의 활용에 필요한
부가적인 기능입니다. 캔들차트가 아닌 하단의 지표로 생성됩니다.
5. 사용방법
초대된 사용자만 사용할 수 있도록 설정이 되어있습니다. 초대를 받을 경우,
지표 하단의 즐겨찾기에 인디케이터 넣기를 누릅니다.
차트화면 상단에 지표를 눌러서 왼쪽탭에 보면 즐겨찾기 탭이 있습니다.
즐겨찾기 탭에서 지표이름을 눌러서 지표를 추가합니다.
ComboTrade V.2.1 (BuySell Signals,Take profit,4MA,Fibo,Ichi+QL)A WORD WITH ESTEEMED TRADERS:
The type of indicator that a trader uses to create a strategy depends on the type of strategy he intends to employ; this is related to the trading style and the trader's loss tolerance.
A trader looking for a long-term trade with high profits may adopt a follow-up strategy, and on the other hand, a trader who decides to make short-term trades with frequent but low profits may be eager to use a strategy based on price fluctuations. Different types of indicators can be used to confirm the results.
Indicators alone should not be used as a tool to make trading decisions. Instead, every trader should use indicators to receive trading signals and formulate trading strategies and determine his or her exact method.
Brief and essential description:
With the above description, traders are advised to use the ComboTrade indicator as a trading assistant. Using the tools embedded in this trading assistant makes it easy for traders and depending on the trading strategy, you can get the best result for positioning.
Note 1: The trading time frame for ComboTrade with over one hour (1H) will achieve best result. Checking out the lower time frame to buy or sell as a confirmation is recommended.
Note 2: At Trading View home screen choose “ Candles or ...” as “Bar’s Style”.
Once you added ComboTrade into to your chart, go to the setting gear of the ComboTrade indicator, which includes two sections: “Input” and “Style”.
The “Input” section is for the input values of the indicators and the “Style” section is for activating and deactivating the tools.
Activate Moving Average 7, 21, 50 and 200 with close (Default)
Activate Combo Cloud by tick the “Show ichimoku” if you use it (Default)
By activating ichimoku, three components will be added to the Como Cloud with below details:
1- The “Quality Line” shows the quality line (26 Kijun-sen future candlesticks) which helps the trader to understand the direction of the trend and will help the trader to make a decision.
2. The “Period Line” shows the 103-day period and can act as a support and resistance tool. In addition, this number can be changed.
3- The intersection of various Como cloud lines has also been installed.
The TP (Take Profit) signal indicates a similar buy or sell area using the RSI and Stochastic oscillators, and be sure to pay special attention to it. Be sure to tick the related box (TP) at “Style” section.
The “Trailing Stop” at “Style” section acts as a support and resistance line. It acts as a support when the price candle is placed above the Trailing Stop line and as a resistance if the price candle is placed below the Trailing Stop line.
At “Bot Key Value” in “Input” section, the number is adjustable from 0.25 to any number. According to the trader's strategy, the number of input and output signals in this section can be adjusted. The best number for BTC is 0.78 and for Altcoins is 0.78 to 1.
At “Bot ATR Period” in “Input” section, the best default number is 8. The best values for Altcoins is 8 to 10, which has a significant effect on the regulation of signaling and support and authority lines.
The “Bot Buy” and “Bot Sell” at “Style” section are the main and most important parts of the indicator that you must tick in order to active them both.
“Plot Background” can activate the Como Cloud and set it to green (ascending) and red (descending).
The “Labels” and “Lines” are related to the important Fibonacci tool, which by displaying the lines of the Fibonacci lines and by activating the label, the numbers related to the price and the Fibonacci numbers are displayed. It helps traders to extract data from the last few days.
DISCLAIMER:
ALL DECISIONS AND RISK MANAGEMENT, ETC. ARE THE FULL RESPONSIBILITY OF THE TRADER AND THE AUTHOR IS NOT RESPONSIBLE FOR THE POSITIONS AND THE RESULTS OF THE TRADES (POSSIBLE LOSSES) IN ANY WAYS. DO YOUR OWN RESEARCH (DYOR) BEFORE ENTERING/ EXISTING IN TO/ FROM ANY POSITIONS.
Please like and use your comments after using the indicator.
Always be Profitable!
JebraTrade
14 April 2021