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
חפש סקריפטים עבור "bot"
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
Dankland Playground DCAing multi-strategy OPThis is essentially a script that I made for myself before deciding it may be good enough for you all as well.
How it works basically is this... you have 18 oscillators which can all be used as independently as you wish. That means there are 20 groups which they can be split amongst as you choose.
When in separate groups they should not be able to sell eachothers positions without triggering a stop loss. Every single oscillator has its own position sizing and exit sizing which can be stated as either a percent of balance or a flat amount of contracts. Each oscillator has a minimum amount of profit you can tell it to sell it, which is calculated from the average cost of your current position, which does include all groups. This works out to help you average out better entry and exit prices, essentially a method of DCAing.
You can set the minimum sale amount, which is to keep it from placing orders below your exchanges minimum dollar trade cost.
The included oscillators are as follows:
Chande Momentum cross
Moving Average Cross
MACD cross
%B Bollinger cross
Stochastic cross + region filter
Stochastic RSI cross + region filter
SMII cross and region
Three RMIs
Standard RSI
LSMA-smoothed RSI
Know Sure Thing
RSI of KST
Coppock Curve
RSI of Curve
PPO
RSI of PPO
Trix
RSI of Trix
So the idea is that this is essentially multiple strategies combined into one backtestable house. Balance is calculated for all position sizes in order to try to prevent false entries that plague so many scripts (IE, you set pyramiding to 2, each buy $1000, initial balance $1000, and yet it buys two orders off the bat for $2000 total and nets 400% profit because the second was considered free)/
You tune each side and position size them so that they work together as well as you can and in doing so you are able to create a single backtest that is capable of running a bot, essentially, between multiple strategies - you can run a slower Moving Average cross, a faster SMI cross or MACD, or Bollinger that grabs big moves only, all the while having MACD trade small bonuses along the way. This way you can weight the Risk to Reward of each against eachother.
I will not try to claim this is something you can open and with no work have the best bot on the planet. This scripts intention is to take a lot of relatively common trading strategies and combine them under on roof with some risk management and the ability to weigh each against eachother.
If you are looking for a super advanced singular algorithm that tries to capture every peak and valley exactly on the dot, this is not for you. If you are looking for a tool with a high level of customizability, with a publisher who intends to update it to the best of his ability in accordance to seeking to make the best product that I personally can make for both myself and the community (because I will be using this myself of course!) that was specifically designed with the intention of performing well in spot markets by averaging low entry costs and high exit costs, this is for you! That is the exact intention here.
I do not trade margin currently, I trade spot. I am sure this script can be tuned to work on margin but this is not my intention or area so if this is you and there is something you need for margin specifically implemented, ask, because I likely don't know what you need yet.
The current backtest shown is hand-optimized by myself for BTC/USD 1hr market with NO stop loss enabled and all sales weighed to be around 0% minimum profit from the total average entry cost.
I chose to run it myself with no stop losses because Bitcoin is so bullish to me. The stop losses can still be very profitable, but not 1495% net profit. This style of automation is not for everyone as when running with no stop loss and the requirement every sale is somewhat profitable, or at least no very noticeable loss, you wind up relying on yourself to manually stop out if things crash too much and the bot has to stop trading to wait for market to go back up. The thing to do here if you are playing without a stop loss is to have your own alerts set at your fear level, a % drop in a period of time or something like that, and when you reach that point I would consider resetting the bot so it continues to take trades. I personally will accept a temporary drop in USD as long as I can keep my BTC holdings up overall as the goal should always be to have as many BTC as possible by the start and end of the bull run.
[astropark] 4h Crypto/USDT Strategy [alarms]Dear Followers,
today a new Swing and Scalper Tool , which works great for Cryptocurrencies on the USDT market on 4h timeframe .
This tool has some cool features:
it works on many timeframes, but best one is 4H timeframe : so you can enjoy both manual and bot trading by using a 24/7 running bot;
it comes in three working mode : default, alternative and high frequency ;
auto-stoploss: you can enable an stoploss in trade, bot will follow
It's always suggested to use a proper money and risk management in trades. This is not the "Holy Grail", it does not exist.
Strategy results are calculated from the beginning of 2018 till now, so more than 2 years, using 10000$ as initial capital and working at 1x leverage (no leverage at all!) and 0.1% trading fee already applied.
You can always DM me if you need any help to configure it on your preferred chart or if you want a customization of this bot for a specific pair.
This script will let you set all notification alerts you may need in order to be alerted on each triggered signals.
The one for backtesting purpose can be found by searching for the astropark's "4h Crypto/USDT Strategy" and then choosing the indicator with "strategy" suffix in the name, or you can find here below
This is a premium indicator , so send me a private message in order to get access to this script.
Theft Indicator - BOOM Buy/Sell SignalsWhat is our indicator?
Theft Indicator - BOOM is a script that shows entry levels on a condition that is met with our special algo. The algo consists of crossovers, which are not visible but we take pride in the effort we have put to make this indicator have a high success rate as long as you have a scalping target price set.
Does it Repaint?
Our indicator does NOT re-paint. Although while setting an alert it may pop up the repaint alert, please take into consideration that once a signal is fired on a "CLOSED BAR", our signal will never disappear, they do not repaint.
What Markets is it usable with?
You can use it in any market, Forex, Stocks, Crypto, Indices. All time frames work, not all trades will be profitable (this is how trading is, you can take a loss sometimes). But the Majority is profitable if you use a stop loss and target price.
How to use:
Simple plug and play it to your chart, in addition to a few other indicators we will recommend to you (we still have not published them yet), and this will confirm your trades. You can also connect TV alerts with a bot and let it run. Please be aware that SLIPPAGE time is important, If you run a bot on this indicator you HAVE to know that the buy/sell price will be on the bar AFTER the Candle close (For example: the BUY/SELL alert is on a candle, the buy/sell your bot or you will execute WILL be in the following candle depending on your trading system. We advise you to not leave the bot to trade on its own, you have to monitor and have a specific syntax that we will help you with creating according to your trading style.
P.S: This is not financial advice, we are just sharing our indicator that we know has good results, and it will take time for people in -ve profiles to recover losses and for the profiting to be more profitable. We use a specific trading method that only works with it
You can contact me for more information about the indicator, Goodluck :)
Theft Indicator - Pip GainerWhat is our indicator?
Theft Indicator - Pip Gainer is one of our recent published scripts that shows price action on a certain period of time (We Use a modified version of ATR). We take pride in enabling trading to become easier for the experienced and the non-experienced traders around the globe. Buy & Sell alerts will be fired once a condition in our algo is met.
Does it Repaint?
Our indicator does NOT re-paint. Although while setting an alert it may pop up the repaint alert, please take into consideration that once a signal is fired on a "CLOSED BAR", our signal will never disappear, they do not repaint.
What Markets is it usable with?
This version is dedicated to FOREX markets, we encourage using it for low timeframes starting the 3 minute to the 15 minute timeframe. WE RECOMMEND USING THIS IN THE FOREX MARKET, ESPECIALLY WITH CURRENCY PAIRS.
How to use:
Simple plug and play it to your chart, in addition to a few other indicators we will recommend to you (we still have not published them yet), and this will confirm your trades. You can also connect TV alerts with a bot and let it run. Please be aware that SLIPPAGE time is important, If you run a bot on this indicator you HAVE to know that the buy/sell price will be on the bar AFTER the Candle close (For example: the BUY/SELL alert is on a candle, the buy/sell your bot or you will execute WILL be in the following candle depending on your trading system. We advise you to not leave the bot to trade on its own, you have to monitor and have a specific syntax that we will help you with creating according to your trading style.
How are the Buy/Sell Alerts fired?
We use the simple ATR (Average True Range) indicator. However we have modified the indicator to serve our trading system. Check below for a definition of what ATR is:
What is Average True Range - ATR?
The average true range (ATR) is a technical analysis indicator that measures market volatility by decomposing the entire range of an asset price for that period. Specifically, ATR is a measure of volatility introduced by market technician J. Welles Wilder Jr. The true range indicator is taken as the greatest of the following: current high less the current low; the absolute value of the current high less the previous close; and the absolute value of the current low less the previous close. The average true range is then a moving average, generally using 14 days, of the true ranges.
Why is our indicator special and different from the normal ATR indicators?
We have modified the mathematical equation and changed it slightly to give more accurate signals, we do not promise all trades are profitable, the use of this indicator is up to your own judgement and liability. We believe that we have an indicator like no other ATR.
P.S: This is not financial advice, we are just sharing our indicator that we know has good results, and it will take time for people in -ve profiles to recover losses and for the profiting to be more profitable. We use a specific trading method that only works with it
You can contact me for more information about the indicator, Goodluck :)
Theft Indicator - Buy/Sell Options Trading 1-3Mins ScalpingWhat is our indicator?
Theft Indicator - Buy/Sell Options Trading Signals is our third published script that shows price action on a certain period of time (We Use ATR indicator). We take pride in enabling trading to become easier for the experienced and the non-experienced traders around the globe. Buy & Sell alerts will be fired once a condition in our algo is met.
Does it Repaint?
Our indicator does NOT re-paint. Although while setting an alert it may pop up the repaint alert, please take into consideration that once a signal is fired on a "CLOSED BAR", our signal will never disappear, they do not repaint.
What Markets is it usable with?
You can use it in any market, Forex, Stocks, Crypto, Indices. All time frames are profitable, not all trades. But the Majority is profitable if you use a stop loss and target price. Although this one is for STOCK OPTIONS, it can work for other markets as well, but it will best perform with STOCKS & OPTIONS TRADING
How to use:
Simple plug and play it to your chart, in addition to a few other indicators we will recommend to you (we still have not published them yet), and this will confirm your trades. You can also connect TV alerts with a bot and let it run. Please be aware that SLIPPAGE time is important, If you run a bot on this indicator you HAVE to know that the buy/sell price will be on the bar AFTER the Candle close (For example: the BUY/SELL alert is on a candle, the buy/sell your bot or you will execute WILL be on the following candle depending on your trading system) THIS IS WITH EVERY SCRIPT, NOT MINE ONLY. We advise you to not leave the bot to trade on its own, you have to monitor and have a specific syntax that we will help you with creating according to your trading style.
How are the Buy/Sell Alerts fired?
We use the simple ATR (Average True Range) indicator. However we have modified the indicator to serve our trading system. Check below for a definition of what ATR is:
What is Average True Range - ATR?
The average true range (ATR) is a technical analysis indicator that measures market volatility by decomposing the entire range of an asset price for that period. Specifically, ATR is a measure of volatility introduced by market technician J. Welles Wilder Jr. The true range indicator is taken as the greatest of the following: current high less the current low; the absolute value of the current high less the previous close; and the absolute value of the current low less the previous close. The average true range is then a moving average, generally using 14 days, of the true ranges.
Why is our indicator special and different from the normal ATR indicators?
We have modified the uniqueness of ATR and changed it slightly to give more accurate signals, we do not promise all trades are profitable, the use of this indicator is up to your own judgement and liability. We believe that we have an indicator like no other ATR.
P.S: This is not financial advice, we are just sharing our indicator that we know has good results, and it will take time for people in -ve profiles to recover losses and for the profiting to be more profitable. We use a specific trading method that only works with it
You can contact me for more information about the indicator, Goodluck :)
Theft Indicator - 5Min Scalping SystemWhat is our indicator?
Theft Indicator - Buy & Sell Alert System is our first published script that shows price action on a certain period of time (We Use ATR indicator). We take pride in enabling trading to become easier for the experienced and the non-experienced traders around the globe. Buy & Sell alerts will be fired once a condition in our algo is met.
Does it Repaint?
Our indicator does NOT re-paint. Although while setting an alert it may pop up the repaint alert, please take into consideration that once a signal is fired on a "CLOSED BAR", our signal will never disappear, they do not repaint.
What Markets is it usable with?
You can use it in any market, Forex, Stocks, Crypto, Indices. All time frames are profitable, not all trades. But the Majority is profitable if you use a stop loss and target price.
How to use:
Simple plug and play it to your chart, in addition to a few other indicators we will recommend to you (we still have not published them yet), and this will confirm your trades. You can also connect TV alerts with a bot and let it run. Please be aware that SLIPPAGE time is important, If you run a bot on this indicator you HAVE to know that the buy/sell price will be on the bar AFTER the Candle close (For example: the BUY/SELL alert is on a candle, the buy/sell your bot or you will execute WILL be in the following candle depending on your trading system. We advise you to not leave the bot to trade on its own, you have to monitor and have a specific syntax that we will help you with creating according to your trading style.
How are the Buy/Sell Alerts fired?
We use the simple ATR (Average True Range) indicator. However we have modified the indicator to serve our trading system. Check below for a definition of what ATR is:
What is Average True Range - ATR?
The average true range (ATR) is a technical analysis indicator that measures market volatility by decomposing the entire range of an asset price for that period. Specifically, ATR is a measure of volatility introduced by market technician J. Welles Wilder Jr. The true range indicator is taken as the greatest of the following: current high less the current low; the absolute value of the current high less the previous close; and the absolute value of the current low less the previous close. The average true range is then a moving average, generally using 14 days, of the true ranges.
Why is our indicator special and different from the normal ATR indicators?
We have modified the mathematical equation and changed it slightly to give more accurate signals, we do not promise all trades are profitable, the use of this indicator is up to your own judgement and liability. We believe that we have an indicator like no other ATR.
P.S: This is not financial advice, we are just sharing our indicator that we know has good results, and it will take time for people in -ve profiles to recover losses and for the profiting to be more profitable. We use a specific trading method that only works with it
You can contact me for more information about the indicator, Goodluck :)
Backtesting & Trading Engine [PineCoders]The PineCoders Backtesting and Trading Engine is a sophisticated framework with hybrid code that can run as a study to generate alerts for automated or discretionary trading while simultaneously providing backtest results. It can also easily be converted to a TradingView strategy in order to run TV backtesting. The Engine comes with many built-in strats for entries, filters, stops and exits, but you can also add you own.
If, like any self-respecting strategy modeler should, you spend a reasonable amount of time constantly researching new strategies and tinkering, our hope is that the Engine will become your inseparable go-to tool to test the validity of your creations, as once your tests are conclusive, you will be able to run this code as a study to generate the alerts required to put it in real-world use, whether for discretionary trading or to interface with an execution bot/app. You may also find the backtesting results the Engine produces in study mode enough for your needs and spend most of your time there, only occasionally converting to strategy mode in order to backtest using TV backtesting.
As you will quickly grasp when you bring up this script’s Settings, this is a complex tool. While you will be able to see results very quickly by just putting it on a chart and using its built-in strategies, in order to reap the full benefits of the PineCoders Engine, you will need to invest the time required to understand the subtleties involved in putting all its potential into play.
Disclaimer: use the Engine at your own risk.
Before we delve in more detail, here’s a bird’s eye view of the Engine’s features:
More than 40 built-in strategies,
Customizable components,
Coupling with your own external indicator,
Simple conversion from Study to Strategy modes,
Post-Exit analysis to search for alternate trade outcomes,
Use of the Data Window to show detailed bar by bar trade information and global statistics, including some not provided by TV backtesting,
Plotting of reminders and generation of alerts on in-trade events.
By combining your own strats to the built-in strats supplied with the Engine, and then tuning the numerous options and parameters in the Inputs dialog box, you will be able to play what-if scenarios from an infinite number of permutations.
USE CASES
You have written an indicator that provides an entry strat but it’s missing other components like a filter and a stop strategy. You add a plot in your indicator that respects the Engine’s External Signal Protocol, connect it to the Engine by simply selecting your indicator’s plot name in the Engine’s Settings/Inputs and then run tests on different combinations of entry stops, in-trade stops and profit taking strats to find out which one produces the best results with your entry strat.
You are building a complex strategy that you will want to run as an indicator generating alerts to be sent to a third-party execution bot. You insert your code in the Engine’s modules and leverage its trade management code to quickly move your strategy into production.
You have many different filters and want to explore results using them separately or in combination. Integrate the filter code in the Engine and run through different permutations or hook up your filtering through the external input and control your filter combos from your indicator.
You are tweaking the parameters of your entry, filter or stop strat. You integrate it in the Engine and evaluate its performance using the Engine’s statistics.
You always wondered what results a random entry strat would yield on your markets. You use the Engine’s built-in random entry strat and test it using different combinations of filters, stop and exit strats.
You want to evaluate the impact of fees and slippage on your strategy. You use the Engine’s inputs to play with different values and get immediate feedback in the detailed numbers provided in the Data Window.
You just want to inspect the individual trades your strategy generates. You include it in the Engine and then inspect trades visually on your charts, looking at the numbers in the Data Window as you move your cursor around.
You have never written a production-grade strategy and you want to learn how. Inspect the code in the Engine; you will find essential components typical of what is being used in actual trading systems.
You have run your system for a while and have compiled actual slippage information and your broker/exchange has updated his fees schedule. You enter the information in the Engine and run it on your markets to see the impact this has on your results.
FEATURES
Before going into the detail of the Inputs and the Data Window numbers, here’s a more detailed overview of the Engine’s features.
Built-in strats
The engine comes with more than 40 pre-coded strategies for the following standard system components:
Entries,
Filters,
Entry stops,
2 stage in-trade stops with kick-in rules,
Pyramiding rules,
Hard exits.
While some of the filter and stop strats provided may be useful in production-quality systems, you will not devise crazy profit-generating systems using only the entry strats supplied; that part is still up to you, as will be finding the elusive combination of components that makes winning systems. The Engine will, however, provide you with a solid foundation where all the trade management nitty-gritty is handled for you. By binding your custom strats to the Engine, you will be able to build reliable systems of the best quality currently allowed on the TV platform.
On-chart trade information
As you move over the bars in a trade, you will see trade numbers in the Data Window change at each bar. The engine calculates the P&L at every bar, including slippage and fees that would be incurred were the trade exited at that bar’s close. If the trade includes pyramided entries, those will be taken into account as well, although for those, final fees and slippage are only calculated at the trade’s exit.
You can also see on-chart markers for the entry level, stop positions, in-trade special events and entries/exits (you will want to disable these when using the Engine in strategy mode to see TV backtesting results).
Customization
You can couple your own strats to the Engine in two ways:
1. By inserting your own code in the Engine’s different modules. The modular design should enable you to do so with minimal effort by following the instructions in the code.
2. By linking an external indicator to the engine. After making the proper selections in the engine’s Settings and providing values respecting the engine’s protocol, your external indicator can, when the Engine is used in Indicator mode only:
Tell the engine when to enter long or short trades, but let the engine’s in-trade stop and exit strats manage the exits,
Signal both entries and exits,
Provide an entry stop along with your entry signal,
Filter other entry signals generated by any of the engine’s entry strats.
Conversion from strategy to study
TradingView strategies are required to backtest using the TradingView backtesting feature, but if you want to generate alerts with your script, whether for automated trading or just to trigger alerts that you will use in discretionary trading, your code has to run as a study since, for the time being, strategies can’t generate alerts. From hereon we will use indicator as a synonym for study.
Unless you want to maintain two code bases, you will need hybrid code that easily flips between strategy and indicator modes, and your code will need to restrict its use of strategy() calls and their arguments if it’s going to be able to run both as an indicator and a strategy using the same trade logic. That’s one of the benefits of using this Engine. Once you will have entered your own strats in the Engine, it will be a matter of commenting/uncommenting only four lines of code to flip between indicator and strategy modes in a matter of seconds.
Additionally, even when running in Indicator mode, the Engine will still provide you with precious numbers on your individual trades and global results, some of which are not available with normal TradingView backtesting.
Post-Exit Analysis for alternate outcomes (PEA)
While typical backtesting shows results of trade outcomes, PEA focuses on what could have happened after the exit. The intention is to help traders get an idea of the opportunity/risk in the bars following the trade in order to evaluate if their exit strategies are too aggressive or conservative.
After a trade is exited, the Engine’s PEA module continues analyzing outcomes for a user-defined quantity of bars. It identifies the maximum opportunity and risk available in that space, and calculates the drawdown required to reach the highest opportunity level post-exit, while recording the number of bars to that point.
Typically, if you can’t find opportunity greater than 1X past your trade using a few different reasonable lengths of PEA, your strategy is doing pretty good at capturing opportunity. Remember that 100% of opportunity is never capturable. If, however, PEA was finding post-trade maximum opportunity of 3 or 4X with average drawdowns of 0.3 to those areas, this could be a clue revealing your system is exiting trades prematurely. To analyze PEA numbers, you can uncomment complete sets of plots in the Plot module to reveal detailed global and individual PEA numbers.
Statistics
The Engine provides stats on your trades that TV backtesting does not provide, such as:
Average Profitability Per Trade (APPT), aka statistical expectancy, a crucial value.
APPT per bar,
Average stop size,
Traded volume .
It also shows you on a trade-by-trade basis, on-going individual trade results and data.
In-trade events
In-trade events can plot reminders and trigger alerts when they occur. The built-in events are:
Price approaching stop,
Possible tops/bottoms,
Large stop movement (for discretionary trading where stop is moved manually),
Large price movements.
Slippage and Fees
Even when running in indicator mode, the Engine allows for slippage and fees to be included in the logic and test results.
Alerts
The alert creation mechanism allows you to configure alerts on any combination of the normal or pyramided entries, exits and in-trade events.
Backtesting results
A few words on the numbers calculated in the Engine. Priority is given to numbers not shown in TV backtesting, as you can readily convert the script to a strategy if you need them.
We have chosen to focus on numbers expressing results relative to X (the trade’s risk) rather than in absolute currency numbers or in other more conventional but less useful ways. For example, most of the individual trade results are not shown in percentages, as this unit of measure is often less meaningful than those expressed in units of risk (X). A trade that closes with a +25% result, for example, is a poor outcome if it was entered with a -50% stop. Expressed in X, this trade’s P&L becomes 0.5, which provides much better insight into the trade’s outcome. A trade that closes with a P&L of +2X has earned twice the risk incurred upon entry, which would represent a pre-trade risk:reward ratio of 2.
The way to go about it when you think in X’s and that you adopt the sound risk management policy to risk a fixed percentage of your account on each trade is to equate a currency value to a unit of X. E.g. your account is 10K USD and you decide you will risk a maximum of 1% of it on each trade. That means your unit of X for each trade is worth 100 USD. If your APPT is 2X, this means every time you risk 100 USD in a trade, you can expect to make, on average, 200 USD.
By presenting results this way, we hope that the Engine’s statistics will appeal to those cognisant of sound risk management strategies, while gently leading traders who aren’t, towards them.
We trade to turn in tangible profits of course, so at some point currency must come into play. Accordingly, some values such as equity, P&L, slippage and fees are expressed in currency.
Many of the usual numbers shown in TV backtests are nonetheless available, but they have been commented out in the Engine’s Plot module.
Position sizing and risk management
All good system designers understand that optimal risk management is at the very heart of all winning strategies. The risk in a trade is defined by the fraction of current equity represented by the amplitude of the stop, so in order to manage risk optimally on each trade, position size should adjust to the stop’s amplitude. Systems that enter trades with a fixed stop amplitude can get away with calculating position size as a fixed percentage of current equity. In the context of a test run where equity varies, what represents a fixed amount of risk translates into different currency values.
Dynamically adjusting position size throughout a system’s life is optimal in many ways. First, as position sizing will vary with current equity, it reproduces a behavioral pattern common to experienced traders, who will dial down risk when confronted to poor performance and increase it when performance improves. Second, limiting risk confers more predictability to statistical test results. Third, position sizing isn’t just about managing risk, it’s also about maximizing opportunity. By using the maximum leverage (no reference to trading on margin here) into the trade that your risk management strategy allows, a dynamic position size allows you to capture maximal opportunity.
To calculate position sizes using the fixed risk method, we use the following formula: Position = Account * MaxRisk% / Stop% [, which calculates a position size taking into account the trade’s entry stop so that if the trade is stopped out, 100 USD will be lost. For someone who manages risk this way, common instructions to invest a certain percentage of your account in a position are simply worthless, as they do not take into account the risk incurred in the trade.
The Engine lets you select either the fixed risk or fixed percentage of equity position sizing methods. The closest thing to dynamic position sizing that can currently be done with alerts is to use a bot that allows syntax to specify position size as a percentage of equity which, while being dynamic in the sense that it will adapt to current equity when the trade is entered, does not allow us to modulate position size using the stop’s amplitude. Changes to alerts are on the way which should solve this problem.
In order for you to simulate performance with the constraint of fixed position sizing, the Engine also offers a third, less preferable option, where position size is defined as a fixed percentage of initial capital so that it is constant throughout the test and will thus represent a varying proportion of current equity.
Let’s recap. The three position sizing methods the Engine offers are:
1. By specifying the maximum percentage of risk to incur on your remaining equity, so the Engine will dynamically adjust position size for each trade so that, combining the stop’s amplitude with position size will yield a fixed percentage of risk incurred on current equity,
2. By specifying a fixed percentage of remaining equity. Note that unless your system has a fixed stop at entry, this method will not provide maximal risk control, as risk will vary with the amplitude of the stop for every trade. This method, as the first, does however have the advantage of automatically adjusting position size to equity. It is the Engine’s default method because it has an equivalent in TV backtesting, so when flipping between indicator and strategy mode, test results will more or less correspond.
3. By specifying a fixed percentage of the Initial Capital. While this is the least preferable method, it nonetheless reflects the reality confronted by most system designers on TradingView today. In this case, risk varies both because the fixed position size in initial capital currency represents a varying percentage of remaining equity, and because the trade’s stop amplitude may vary, adding another variability vector to risk.
Note that the Engine cannot display equity results for strategies entering trades for a fixed amount of shares/contracts at a variable price.
SETTINGS/INPUTS
Because the initial text first published with a script cannot be edited later and because there are just too many options, the Engine’s Inputs will not be covered in minute detail, as they will most certainly evolve. We will go over them with broad strokes; you should be able to figure the rest out. If you have questions, just ask them here or in the PineCoders Telegram group.
Display
The display header’s checkbox does nothing.
For the moment, only one exit strategy uses a take profit level, so only that one will show information when checking “Show Take Profit Level”.
Entries
You can activate two simultaneous entry strats, each selected from the same set of strats contained in the Engine. If you select two and they fire simultaneously, the main strat’s signal will be used.
The random strat in each list uses a different seed, so you will get different results from each.
The “Filter transitions” and “Filter states” strats delegate signal generation to the selected filter(s). “Filter transitions” signals will only fire when the filter transitions into bull/bear state, so after a trade is stopped out, the next entry may take some time to trigger if the filter’s state does not change quickly. When you choose “Filter states”, then a new trade will be entered immediately after an exit in the direction the filter allows.
If you select “External Indicator”, your indicator will need to generate a +2/-2 (or a positive/negative stop value) to enter a long/short position, providing the selected filters allow for it. If you wish to use the Engine’s capacity to also derive the entry stop level from your indicator’s signal, then you must explicitly choose this option in the Entry Stops section.
Filters
You can activate as many filters as you wish; they are additive. The “Maximum stop allowed on entry” is an important component of proper risk management. If your system has an average 3% stop size and you need to trade using fixed position sizes because of alert/execution bot limitations, you must use this filter because if your system was to enter a trade with a 15% stop, that trade would incur 5 times the normal risk, and its result would account for an abnormally high proportion in your system’s performance.
Remember that any filter can also be used as an entry signal, either when it changes states, or whenever no trade is active and the filter is in a bull or bear mode.
Entry Stops
An entry stop must be selected in the Engine, as it requires a stop level before the in-trade stop is calculated. Until the selected in-trade stop strat generates a stop that comes closer to price than the entry stop (or respects another one of the in-trade stops kick in strats), the entry stop level is used.
It is here that you must select “External Indicator” if your indicator supplies a +price/-price value to be used as the entry stop. A +price is expected for a long entry and a -price value will enter a short with a stop at price. Note that the price is the absolute price, not an offset to the current price level.
In-Trade Stops
The Engine comes with many built-in in-trade stop strats. Note that some of them share the “Length” and “Multiple” field, so when you swap between them, be sure that the length and multiple in use correspond to what you want for that stop strat. Suggested defaults appear with the name of each strat in the dropdown.
In addition to the strat you wish to use, you must also determine when it kicks in to replace the initial entry’s stop, which is determined using different strats. For strats where you can define a positive or negative multiple of X, percentage or fixed value for a kick-in strat, a positive value is above the trade’s entry fill and a negative one below. A value of zero represents breakeven.
Pyramiding
What you specify in this section are the rules that allow pyramiding to happen. By themselves, these rules will not generate pyramiding entries. For those to happen, entry signals must be issued by one of the active entry strats, and conform to the pyramiding rules which act as a filter for them. The “Filter must allow entry” selection must be chosen if you want the usual system’s filters to act as additional filtering criteria for your pyramided entries.
Hard Exits
You can choose from a variety of hard exit strats. Hard exits are exit strategies which signal trade exits on specific events, as opposed to price breaching a stop level in In-Trade Stops strategies. They are self-explanatory. The last one labelled When Take Profit Level (multiple of X) is reached is the only one that uses a level, but contrary to stops, it is above price and while it is relative because it is expressed as a multiple of X, it does not move during the trade. This is the level called Take Profit that is show when the “Show Take Profit Level” checkbox is checked in the Display section.
While stops focus on managing risk, hard exit strategies try to put the emphasis on capturing opportunity.
Slippage
You can define it as a percentage or a fixed value, with different settings for entries and exits. The entry and exit markers on the chart show the impact of slippage on the entry price (the fill).
Fees
Fees, whether expressed as a percentage of position size in and out of the trade or as a fixed value per in and out, are in the same units of currency as the capital defined in the Position Sizing section. Fees being deducted from your Capital, they do not have an impact on the chart marker positions.
In-Trade Events
These events will only trigger during trades. They can be helpful to act as reminders for traders using the Engine as assistance to discretionary trading.
Post-Exit Analysis
It is normally on. Some of its results will show in the Global Numbers section of the Data Window. Only a few of the statistics generated are shown; many more are available, but commented out in the Plot module.
Date Range Filtering
Note that you don’t have to change the dates to enable/diable filtering. When you are done with a specific date range, just uncheck “Date Range Filtering” to disable date filtering.
Alert Triggers
Each selection corresponds to one condition. Conditions can be combined into a single alert as you please. Just be sure you have selected the ones you want to trigger the alert before you create the alert. For example, if you trade in both directions and you want a single alert to trigger on both types of exits, you must select both “Long Exit” and “Short Exit” before creating your alert.
Once the alert is triggered, these settings no longer have relevance as they have been saved with the alert.
When viewing charts where an alert has just triggered, if your alert triggers on more than one condition, you will need the appropriate markers active on your chart to figure out which condition triggered the alert, since plotting of markers is independent of alert management.
Position sizing
You have 3 options to determine position size:
1. Proportional to Stop -> Variable, with a cap on size.
2. Percentage of equity -> Variable.
3. Percentage of Initial Capital -> Fixed.
External Indicator
This is where you connect your indicator’s plot that will generate the signals the Engine will act upon. Remember this only works in Indicator mode.
DATA WINDOW INFORMATION
The top part of the window contains global numbers while the individual trade information appears in the bottom part. The different types of units used to express values are:
curr: denotes the currency used in the Position Sizing section of Inputs for the Initial Capital value.
quote: denotes quote currency, i.e. the value the instrument is expressed in, or the right side of the market pair (USD in EURUSD ).
X: the stop’s amplitude, itself expressed in quote currency, which we use to express a trade’s P&L, so that a trade with P&L=2X has made twice the stop’s amplitude in profit. This is sometimes referred to as R, since it represents one unit of risk. It is also the unit of measure used in the APPT, which denotes expected reward per unit of risk.
X%: is also the stop’s amplitude, but expressed as a percentage of the Entry Fill.
The numbers appearing in the Data Window are all prefixed:
“ALL:” the number is the average for all first entries and pyramided entries.
”1ST:” the number is for first entries only.
”PYR:” the number is for pyramided entries only.
”PEA:” the number is for Post-Exit Analyses
Global Numbers
Numbers in this section represent the results of all trades up to the cursor on the chart.
Average Profitability Per Trade (X): This value is the most important gauge of your strat’s worthiness. It represents the returns that can be expected from your strat for each unit of risk incurred. E.g.: your APPT is 2.0, thus for every unit of currency you invest in a trade, you can on average expect to obtain 2 after the trade. APPT is also referred to as “statistical expectancy”. If it is negative, your strategy is losing, even if your win rate is very good (it means your winning trades aren’t winning enough, or your losing trades lose too much, or both). Its counterpart in currency is also shown, as is the APPT/bar, which can be a useful gauge in deciding between rivalling systems.
Profit Factor: Gross of winning trades/Gross of losing trades. Strategy is profitable when >1. Not as useful as the APPT because it doesn’t take into account the win rate and the average win/loss per trade. It is calculated from the total winning/losing results of this particular backtest and has less predictive value than the APPT. A good profit factor together with a poor APPT means you just found a chart where your system outperformed. Relying too much on the profit factor is a bit like a poker player who would think going all in with two’s against aces is optimal because he just won a hand that way.
Win Rate: Percentage of winning trades out of all trades. Taken alone, it doesn’t have much to do with strategy profitability. You can have a win rate of 99% but if that one trade in 100 ruins you because of poor risk management, 99% doesn’t look so good anymore. This number speaks more of the system’s profile than its worthiness. Still, it can be useful to gauge if the system fits your personality. It can also be useful to traders intending to sell their systems, as low win rate systems are more difficult to sell and require more handholding of worried customers.
Equity (curr): This the sum of initial capital and the P&L of your system’s trades, including fees and slippage.
Return on Capital is the equivalent of TV’s Net Profit figure, i.e. the variation on your initial capital.
Maximum drawdown is the maximal drawdown from the highest equity point until the drop . There is also a close to close (meaning it doesn’t take into account in-trade variations) maximum drawdown value commented out in the code.
The next values are self-explanatory, until:
PYR: Avg Profitability Per Entry (X): this is the APPT for all pyramided entries.
PEA: Avg Max Opp . Available (X): the average maximal opportunity found in the Post-Exit Analyses.
PEA: Avg Drawdown to Max Opp . (X): this represents the maximum drawdown (incurred from the close at the beginning of the PEA analysis) required to reach the maximal opportunity point.
Trade Information
Numbers in this section concern only the current trade under the cursor. Most of them are self-explanatory. Use the description’s prefix to determine what the values applies to.
PYR: Avg Profitability Per Entry (X): While this value includes the impact of all current pyramided entries (and only those) and updates when you move your cursor around, P&L only reflects fees at the trade’s last bar.
PEA: Max Opp . Available (X): It’s the most profitable close reached post-trade, measured from the trade’s Exit Fill, expressed in the X value of the trade the PEA follows.
PEA: Drawdown to Max Opp . (X): This is the maximum drawdown from the trade’s Exit Fill that needs to be sustained in order to reach the maximum opportunity point, also expressed in X. Note that PEA numbers do not include slippage and fees.
EXTERNAL SIGNAL PROTOCOL
Only one external indicator can be connected to a script; in order to leverage its use to the fullest, the engine provides options to use it as either an entry signal, an entry/exit signal or a filter. When used as an entry signal, you can also use the signal to provide the entry’s stop. Here’s how this works:
For filter state: supply +1 for bull (long entries allowed), -1 for bear (short entries allowed).
For entry signals: supply +2 for long, -2 for short.
For exit signals: supply +3 for exit from long, -3 for exit from short.
To send an entry stop level with an entry signal: Send positive stop level for long entry (e.g. 103.33 to enter a long with a stop at 103.33), negative stop level for short entry (e.g. -103.33 to enter a short with a stop at 103.33). If you use this feature, your indicator will have to check for exact stop levels of 1.0, 2.0 or 3.0 and their negative counterparts, and fudge them with a tick in order to avoid confusion with other signals in the protocol.
Remember that mere generation of the values by your indicator will have no effect until you explicitly allow their use in the appropriate sections of the Engine’s Settings/Inputs.
An example of a script issuing a signal for the Engine is published by PineCoders.
RECOMMENDATIONS TO ASPIRING SYSTEM DESIGNERS
Stick to higher timeframes. On progressively lower timeframes, margins decrease and fees and slippage take a proportionally larger portion of profits, to the point where they can very easily turn a profitable strategy into a losing one. Additionally, your margin for error shrinks as the equilibrium of your system’s profitability becomes more fragile with the tight numbers involved in the shorter time frames. Avoid <1H time frames.
Know and calculate fees and slippage. To avoid market shock, backtest using conservative fees and slippage parameters. Systems rarely show unexpectedly good returns when they are confronted to the markets, so put all chances on your side by being outrageously conservative—or a the very least, realistic. Test results that do not include fees and slippage are worthless. Slippage is there for a reason, and that’s because our interventions in the market change the market. It is easier to find alpha in illiquid markets such as cryptos because not many large players participate in them. If your backtesting results are based on moving large positions and you don’t also add the inevitable slippage that will occur when you enter/exit thin markets, your backtesting will produce unrealistic results. Even if you do include large slippage in your settings, the Engine can only do so much as it will not let slippage push fills past the high or low of the entry bar, but the gap may be much larger in illiquid markets.
Never test and optimize your system on the same dataset , as that is the perfect recipe for overfitting or data dredging, which is trying to find one precise set of rules/parameters that works only on one dataset. These setups are the most fragile and often get destroyed when they meet the real world.
Try to find datasets yielding more than 100 trades. Less than that and results are not as reliable.
Consider all backtesting results with suspicion. If you never entertained sceptic tendencies, now is the time to begin. If your backtest results look really good, assume they are flawed, either because of your methodology, the data you’re using or the software doing the testing. Always assume the worse and learn proper backtesting techniques such as monte carlo simulations and walk forward analysis to avoid the traps and biases that unchecked greed will set for you. If you are not familiar with concepts such as survivor bias, lookahead bias and confirmation bias, learn about them.
Stick to simple bars or candles when designing systems. Other types of bars often do not yield reliable results, whether by design (Heikin Ashi) or because of the way they are implemented on TV (Renko bars).
Know that you don’t know and use that knowledge to learn more about systems and how to properly test them, about your biases, and about yourself.
Manage risk first , then capture opportunity.
Respect the inherent uncertainty of the future. Cleanse yourself of the sad arrogance and unchecked greed common to newcomers to trading. Strive for rationality. Respect the fact that while backtest results may look promising, there is no guarantee they will repeat in the future (there is actually a high probability they won’t!), because the future is fundamentally unknowable. If you develop a system that looks promising, don’t oversell it to others whose greed may lead them to entertain unreasonable expectations.
Have a plan. Understand what king of trading system you are trying to build. Have a clear picture or where entries, exits and other important levels will be in the sort of trade you are trying to create with your system. This stated direction will help you discard more efficiently many of the inevitably useless ideas that will pop up during system design.
Be wary of complexity. Experienced systems engineers understand how rapidly complexity builds when you assemble components together—however simple each one may be. The more complex your system, the more difficult it will be to manage.
Play! . Allow yourself time to play around when you design your systems. While much comes about from working with a purpose, great ideas sometimes come out of just trying things with no set goal, when you are stuck and don’t know how to move ahead. Have fun!
@LucF
NOTES
While the engine’s code can supply multiple consecutive entries of longs or shorts in order to scale positions (pyramid), all exits currently assume the execution bot will exit the totality of the position. No partial exits are currently possible with the Engine.
Because the Engine is literally crippled by the limitations on the number of plots a script can output on TV; it can only show a fraction of all the information it calculates in the Data Window. You will find in the Plot Module vast amounts of commented out lines that you can activate if you also disable an equivalent number of other plots. This may be useful to explore certain characteristics of your system in more detail.
When backtesting using the TV backtesting feature, you will need to provide the strategy parameters you wish to use through either Settings/Properties or by changing the default values in the code’s header. These values are defined in variables and used not only in the strategy() statement, but also as defaults in the Engine’s relevant Inputs.
If you want to test using pyramiding, then both the strategy’s Setting/Properties and the Engine’s Settings/Inputs need to allow pyramiding.
If you find any bugs in the Engine, please let us know.
THANKS
To @glaz for allowing the use of his unpublished MA Squize in the filters.
To @everget for his Chandelier stop code, which is also used as a filter in the Engine.
To @RicardoSantos for his pseudo-random generator, and because it’s from him that I first read in the Pine chat about the idea of using an external indicator as input into another. In the PineCoders group, @theheirophant then mentioned the idea of using it as a buy/sell signal and @simpelyfe showed a piece of code implementing the idea. That’s the tortuous story behind the use of the external indicator in the Engine.
To @admin for the Volatility stop’s original code and for the donchian function lifted from Ichimoku .
To @BobHoward21 for the v3 version of Volatility Stop .
To @scarf and @midtownsk8rguy for the color tuning.
To many other scripters who provided encouragement and suggestions for improvement during the long process of writing and testing this piece of code.
To J. Welles Wilder Jr. for ATR, used extensively throughout the Engine.
To TradingView for graciously making an account available to PineCoders.
And finally, to all fellow PineCoders for the constant intellectual stimulation; it is a privilege to share ideas with you all. The Engine is for all TradingView PineCoders, of course—but especially for you.
Look first. Then leap.
Pharoceus CryptoScalper's RSI+BB Signal+AlertsDescription
This is an indicator with alerts/signals and it's designed for Cryptocurrency leverage trading (scalping). This indicator features, the most popularly used indicators in technical analysis and that is the Bollinger Bands and Relative Strenght Index (RSI). The CryptoScalper's RSI+BB Signal+Alerts was designed for use with ProfitTrailer V2 and can also be used with all other trading bots that allows alerts or on its own as a powerful market leverage trading indicator using alerts because it offers buy alerts as well.
The Pharoceus CryptoScalper's RSI+BB Signal+Alerts can be customized to any trader specific patterns and settings, making it so easy to use. With the Buy and Sell Signal feature, trading on any cryptocurrency exchange can be automated likewise with any crypto trading bot as stated previously; but I'll always recommend using it for buys only if you're using it with a bot. This indicator/script can be used with any base pair; BTC, ETH, and USD or USDT as well. This is also not affiliated with any bot or exchange and it's not advertising either ProfitTrailer or any bot or exchanges.
This is a free indicator for anyone to use, for access and support, also strategy, results and settings discussion, join the discord channel (link below) and come build a real community. If you want to support my work and more free signals, donations are highly encouraged.
I am not a financial adviser and all gains or losses are at the discretion of all users and I would not be held liable for any of the other. This effort is solely of an individual who believes Signals shouldn't have to cost traders an arm or a leg or taken as an opportunity to rip people off.
Also, I know a lot of people are asking for access to the ProfitTrailerV2 RSI+BB+SRSI+Stochastic Oscillator Signal+Alerts and have not gotten it. The reason was because beta-testers brought issues as regarding the buy signals and I'm revisiting that indicator and working on the issue. Should have made this known but TV doesn't allow edits after 15mins or I would make it known via comments soon.
discord.gg
BTC: 199qMzu4gvr3bUXWEpLG5uS6TEKKvw5pbe
ETH: 0xf8339952a224a228f2f8c58a5666a8ffleddebfb
BCH: qqmmds8u3f8m6ek387jtefg07525dvaxzqrshd86gz
BOLLedOverIntroduction
BOLLedOver 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. BOLLedOver uses the Bollinger Band method with various filters to insure good buying and selling opportunities. These scripts 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 statistical functions. Trade execution strategies are equally as important than getting the right signals in place. In the live BOT version, the 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.
FOR BOT RENTERS ONLY: 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). The framework has 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—BOLLedOver 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.
Parameters
Stop Loss % (default 97%) STOPs will be placed and ratchet up following stops with each 1% increase in price action.
Stop Loss Trail % (default 96%) Second STOP starts here.
Bollinger Bands Time Period (default 6) indicates 6 candles in calculation. BOLLedOver runs best at 15 minutes periods. Try your own setting with plenty of backtesting.
Average Volume (default 18) filters buy and sell signals
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 8)
Candles to Wait After Trade (default 4) set to 0 to turn off. Keeps trades from occurring consecutively in pump and dump environment.
This script logic is available on cryptotrader.org as a rentable BOT. You will need API keys for automated trading.
BOLLedOverIntroduction
BOLLedOver 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. BOLLedOver uses the Bollinger Band method with various filters to insure good buying and selling opportunities. All my scripts 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 statistical functions. In addition, I have found that trade execution strategies are far more important than getting the right signals in place. In the live BOT version, 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—BOLLedOver 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.
Parameters
Stop Loss % (default 98%) STOPs will be placed and ratchet up following stops with each 1% increase in price action.
Stop Loss Trail % (default 96%) Second STOP starts here.
Bollinger Bands Time Period (default 6) indicates 6 candles in calculation. BOLLedOver runs best at 15 minutes periods. Try your own setting with plenty of backtesting.
Average Volume (default 18) filters buy and sell signals
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 10)
MACD Slow Period (default 24)
MACD Signal Smoothing (default 10)
Candles to Wait After Trade (default 10) set to 0 to turn off. Keeps trades from occurring consecutively in pump and dump environment.
LuxSignals | Billionaire TierYou can see the Author's instructions below to get access to this indicator.
Our automated trading bot is engineered for traders who demand transparency, realistic backtesting, and disciplined risk management. The system is designed not only to deliver signals but also to operate under strict trading conditions that mimic real-world markets. Every element of the strategy has been fine‐tuned so that its performance metrics—whether measured by win rate, total profit, or profit factor—this all is controlled by LuxSignals’ algorithm. This algorithm is exactly what makes it unique from all other indicators on the market: The algorithm looks at 100 possible numbers for an input and then decided on the best one - eventually you have to enter this number into the settings, leaving you with no need to adjust the settings yourself via trial and error.
Why you need to change inputs
LuxSignals is on tradingview.com, which uses the coding language "Pine Script" for its indicators. Unfortunately, Pine Script is very limited in its capabilities and can't run too many calculations at a time or can't make multiple backtests at once. Each backtest with different settings requires an indicator to load again.
An indicator will load when it's added to the chart or if its settings have changed.
This is why you have to change LuxSignals' inputs a few times so it can collect the necessary data from backtests over time to decide on its best settings. With Pine Script it's impossible to run so many backtests at once, it would require it to load longer than a minute at once, but the limit for TradingView's free tier is 20 seconds.
How LuxSignals' algorithm works
LuxSignals actually only has two inputs: Input 1 and Input 2. The minimum input for each is 2, the maximum LuxSignals can recommend is 100. You can also use higher numbers than 100 to see its backtesting results.
At the end of each process (changing the inputs many times), you will receive the best settings for the exact chart and timeframe you are on for the starting settings you had.
In total LuxSignals has to decide on one settings pair of Input 1 and Input 2 from 10'000 possible ones (100 x 100 possible combinations). It does that by calculating the hypothetical backtesting results (the profit factor) of 100 different settings at once.
You can control for which Input these hypothetical results are with the "optimize for" setting. So if you optimize for Input 1, LuxSignals calculates 100 hypothetical results for all possible inputs of Input 1, ranging from 2 to 100.
Now Input 1 and Input 2 affect each other's backtesting results, that's why you have to switch between optimizing for one to another.
Strategy and Signal Generation
At the core of the bot is a refined indicator that blends classic technical analysis tools with a proprietary twist. The process is as follows:
* Average Price Calculation:
The system starts by computing the average price (AP) using the formula for HLC3 (the average of the high, low, and close prices). This balanced approach captures a comprehensive view of market price action.
* Exponential Smoothing:
An exponential moving average (EMA) over a period (n₁) is applied to the AP to obtain a smoothed value (ESA). This step filters out short-term noise while maintaining sensitivity to market changes.
* Volatility Measurement:
The absolute difference between the AP and its smoothed counterpart is then subjected to another EMA (using the same period n₁) to generate a dynamic volatility metric (D). This measurement adapts to market fluctuations.
* Normalization:
The difference between the AP and ESA is normalized by dividing it by (0.015 × D). This creates a channel indicator (CI) that scales according to current volatility levels.
* WaveTrend Oscillator Formation:
A second EMA (over period n₂) is applied to the normalized value (CI) to produce the final oscillator value (WT1). The WaveTrend oscillator, therefore, encapsulates both trend strength and market volatility in a single metric.
* Signal Generation:
Trading signals are derived from the oscillator’s behavior:
* A buy signal is triggered when WT1 crosses above zero.
* A sell signal is triggered when WT1 crosses below zero.
This carefully layered approach ensures that the signals are both timely and reliable, which LuxSignals takes care of.
Please note that the following guidelines have not been fully met in our current testing process: our published backtesting results might not completely avoid potential misinterpretations by traders; we have not utilized an account size reflective of the average trader’s capital; realistic commission fees and slippage may have not been incorporated into our simulations.
In summary, while we did not apply a fully comprehensive simulation of every realistic trading condition for the backtesting, our design ensures that the strategy is equipped with realistic risk management and execution parameters when actively trading. This dual approach allows traders to benefit from both efficient signal validation and robust, live market performance without compromising on safety or accuracy.
Trading is risky & most day traders lose money. All content, tools, scripts, articles, & education provided by LuxSignals are purely for informational & educational purposes only. Past performance does not guarantee future results.
Conclusion
Our automated trading bot stands out due to its transparent and its commitment to realistic, robust strategy testing. it offers traders a dependable tool for navigating the markets. Whether you prioritize win rate, total profit, or profit factor, this system is built to adapt and perform under real-world conditions while preserving your capital.
LuxSignals | Millionaire TierYou can see the Author's instructions below to get access to this indicator.
Our automated trading bot is engineered for traders who demand transparency, realistic backtesting, and disciplined risk management. The system is designed not only to deliver signals but also to operate under strict trading conditions that mimic real-world markets. Every element of the strategy has been fine‐tuned so that its performance metrics—whether measured by win rate, total profit, or profit factor—this all is controlled by LuxSignals’ algorithm. This algorithm is exactly what makes it unique from all other indicators on the market: The algorithm looks at 100 possible numbers for an input and then decided on the best one - eventually you have to enter this number into the settings, leaving you with no need to adjust the settings yourself via trial and error.
Why you need to change inputs
LuxSignals is on tradingview.com, which uses the coding language "Pine Script" for its indicators. Unfortunately, Pine Script is very limited in its capabilities and can't run too many calculations at a time or can't make multiple backtests at once. Each backtest with different settings requires an indicator to load again.
An indicator will load when it's added to the chart or if its settings have changed.
This is why you have to change LuxSignals' inputs a few times so it can collect the necessary data from backtests over time to decide on its best settings. With Pine Script it's impossible to run so many backtests at once, it would require it to load longer than a minute at once, but the limit for TradingView's free tier is 20 seconds.
How LuxSignals' algorithm works
LuxSignals actually only has two inputs: Input 1 and Input 2. The minimum input for each is 2, the maximum LuxSignals can recommend is 100. You can also use higher numbers than 100 to see its backtesting results.
At the end of each process (changing the inputs many times), you will receive the best settings for the exact chart and timeframe you are on for the starting settings you had.
In total LuxSignals has to decide on one settings pair of Input 1 and Input 2 from 10'000 possible ones (100 x 100 possible combinations). It does that by calculating the hypothetical backtesting results (the profit factor) of 100 different settings at once.
You can control for which Input these hypothetical results are with the "optimize for" setting. So if you optimize for Input 1, LuxSignals calculates 100 hypothetical results for all possible inputs of Input 1, ranging from 2 to 100.
Now Input 1 and Input 2 affect each other's backtesting results, that's why you have to switch between optimizing for one to another.
Strategy and Signal Generation
At the core of the bot is a refined indicator that blends classic technical analysis tools with a proprietary twist. The process is as follows:
* Average Price Calculation:
The system starts by computing the average price (AP) using the formula for HLC3 (the average of the high, low, and close prices). This balanced approach captures a comprehensive view of market price action.
* Exponential Smoothing:
An exponential moving average (EMA) over a period (n₁) is applied to the AP to obtain a smoothed value (ESA). This step filters out short-term noise while maintaining sensitivity to market changes.
* Volatility Measurement:
The absolute difference between the AP and its smoothed counterpart is then subjected to another EMA (using the same period n₁) to generate a dynamic volatility metric (D). This measurement adapts to market fluctuations.
* Normalization:
The difference between the AP and ESA is normalized by dividing it by (0.015 × D). This creates a channel indicator (CI) that scales according to current volatility levels.
* WaveTrend Oscillator Formation:
A second EMA (over period n₂) is applied to the normalized value (CI) to produce the final oscillator value (WT1). The WaveTrend oscillator, therefore, encapsulates both trend strength and market volatility in a single metric.
* Signal Generation:
Trading signals are derived from the oscillator’s behavior:
* A buy signal is triggered when WT1 crosses above zero.
* A sell signal is triggered when WT1 crosses below zero.
This carefully layered approach ensures that the signals are both timely and reliable, which LuxSignals takes care of.
Please note that the following guidelines have not been fully met in our current testing process: our published backtesting results might not completely avoid potential misinterpretations by traders; we have not utilized an account size reflective of the average trader’s capital; realistic commission fees and slippage may have not been incorporated into our simulations.
In summary, while we did not apply a fully comprehensive simulation of every realistic trading condition for the backtesting, our design ensures that the strategy is equipped with realistic risk management and execution parameters when actively trading. This dual approach allows traders to benefit from both efficient signal validation and robust, live market performance without compromising on safety or accuracy.
Trading is risky & most day traders lose money. All content, tools, scripts, articles, & education provided by LuxSignals are purely for informational & educational purposes only. Past performance does not guarantee future results.
Conclusion
Our automated trading bot stands out due to its transparent and its commitment to realistic, robust strategy testing. it offers traders a dependable tool for navigating the markets. Whether you prioritize win rate, total profit, or profit factor, this system is built to adapt and perform under real-world conditions while preserving your capital.
Time-based Alerts for Trading Windows🌟 Time-based Alerts for Trading Windows 🌐📈
This is a re-uploaded script as the previous one got hidden.
This Time-based Alerts for Trading Windows script is a highly customizable and reliable tool designed to assist traders in managing automated strategies or manually monitoring specific market conditions. Inspired by CrossTrade's Time-based Alert, this script is tailored for those who rely on precise time windows to trigger actions, such as sending webhook signals or managing Expert Advisors (EAs).
Whether you are a scalper, day trader, or algorithmic trader, this script empowers you to stay on top of your trades with fully customizable time-based alerts.
🛠️ Customizable Time Alerts
This indicator allows you to create up to 12 unique time windows by specifying the exact hour and minute for each alert. Each time window corresponds to an individual alert condition, making it perfect for managing trades during specific market sessions or key time periods.
For example:
Alert 1 can be set at 9:30 AM (market open).
Alert 2 can be set at 3:55 PM (just before market close).
Each alert can be toggled on or off in the indicator settings, allowing you to manage alerts without having to reconfigure your script.
You can adjust the colours to fit any colour scheme you like!
🕒 Odd and Even Time Alerts
The script comes with three built-in alert type categories:
Odd Alerts (marked with a green triangle on the chart): These correspond to odd-numbered inputs like Alert 1, Alert 3, Alert 5, and so on.
Even Alerts (marked with a red triangle on the chart): These correspond to even-numbered inputs like Alert 2, Alert 4, Alert 6, and so on.
You can also customize all 12 alerts individually to include a custom alert message
These alerts serve as a convenient way to differentiate between multiple trading strategies or market conditions. You can customize alert messages for odd and even alerts directly from TradingView’s alert panel.
🔗 Webhook Integration for Automation
This script is fully compatible with webhook-based automation. By configuring your alerts in TradingView, you can send signals to trading bots, EAs, or any third-party system. For example, you can:
Turn off an EA at a specific time (e.g., 3:55 PM EST).
Send buy/sell signals to your bot during predefined trading windows.
Simply use TradingView’s alert message editor to format webhook payloads for your automation system.
🌐 Timezone Flexibility
Trading happens across multiple time zones, and this script accounts for that. You can toggle between:
Eastern Time (New York): Ideal for most US-based markets.
Central Time (Exchange): Useful for futures and commodities traders.
This ensures your alerts are always in sync with your preferred time zone, eliminating confusion.
🎨 Visual Indicators
The script plots visual markers directly on your chart to indicate active alerts:
Up Facing Triangles: Represent odd-numbered alerts, providing a quick reference for these time windows.
Down Facing Triangles: Represent even-numbered alerts, helping you track different strategies or conditions.
These visual markers make it easy to see when alerts are triggered, even at a glance.
📈 Practical Use Case
Let’s say you’re trading the USTEC index on a 1-minute chart. You want to:
Turn off your trading bot at 16:55 EST to avoid after-market volatility.
Trigger a re-entry signal at 17:30 EST to capture moves during the Asian session.
Visually monitor these actions on your chart for easy reference.
This script makes it possible with precision alerts and webhook integration. Simply configure the time windows in the settings and set up your alerts in TradingView.
🚨 How to Set Up Alerts
Enable or Disable Alerts: Use the script’s settings to toggle specific alerts on or off as needed.
Set Custom Time Windows: Define the hour and minute for each alert in the settings panel.
Create Alerts in TradingView:
Go to the TradingView alert panel.
Select the condition (e.g., "Odd Time-based Alert (Green)" or "Even Time-based Alert (Red)").
Customize the alert message for webhook integration or personal notification.
Choose the trigger type: Once Per Bar or Once Per Bar Close to keep the alert active.
Integrate with Webhooks: Use the alert message field to format payloads for automation systems like MT4, MT5, or third-party bots.
📋 Key Notes
Alerts can trigger indefinitely if set to "Once Per Bar" or "Once Per Bar Close".
Always ensure the expiration date is set far in the future to avoid unexpected alert deactivation.
Test webhook messages and alert configurations thoroughly before using them in live trading.
This script is a powerful addition to your trading toolbox, offering precision, flexibility, and automation capabilities. Whether you’re turning off an EA, managing trades during market sessions, or automating strategies via webhooks, this script is here to support you.
Start using the Time-based Alerts for Trading Windows today and trade with confidence! 🚀✨