Alert(), alertcondition() or strategy alerts?Variety of possibilities offered by PineScript, especially thanks to recent additions, created some confusion. Especially one question repeats quite often - which method to use to trigger alerts?
I'm posting this to clarify and give some syntax examples. I'll discuss these 3 methods in chronological order, meaning - in the order they were introduced to PineScript.
ALERTCONDITION() - it is a function call, which can be used only in study-type script. Since years ago, you could create 2 types of a script: strategy and study. First one enables creating a backtest of a strategy. Second was to develop scripts which didn't require backtesting and could trigger alerts. alertcondition() calls in strategy-type scripts were rejected by Pine compiler. On the other hand compiling study-type scripts rejected all strategy...() calls. That created difficulties, because once you had a nice and backtested strategy, you had to rip it off from all strategy...() function calls to convert your script to study-type so you could produce alerts. Maintenance of two versions of each script was necessary and it was painful.
"STRATEGY ALERTS" were introduced because of alertcondition() pains. To create strategy alert, you need to click "Add alert" button inside Strategy Tester (backtester) and only there. Alerts set-up this way are bound with the backtester - whenever backtester triggers an order, which is visible on the chart, alert is also fired. And you can customize alert message using some placeholders like {{strategy.order.contracts}} or {{ticker}}.
ALERT() was added last. This is an alerts-triggering function call, which can be run from strategy-type script. Finally it is doable! You can connect it to any event coded in PineScript and generate any alert message you want, thanks to concatenation of strings and wrapping variables into tostring() function.
Out of these three alertcondition() is obviously archaic and probably will be discontinued. There is a chance this makes strategy/study distinction not making sense anymore, so I wouldn't be surprised if "studies" are deprecated at some point.
But what are the differences between "Strategy alerts" and alert()? "Strategy alerts" seem easier to set-up with just a few clicks and probably easier to understand and verify, because they go in sync with the backtester and on-chart trade markers. It is especially important to understand how they work if you're building strategy based on pending orders (stop and limit) - events in your code might trigger placing pending order, but alert will be triggered only (and when) such order is executed.
But "Strategy Alerts" have some limitations - not every variable you'd like to include in alert message is available from PineScript. And maybe you don't need the alert fired when the trade hit a stop-loss or take-profit, because you have already forwarded info about closing conditions in entry alert to your broker/exchange.
Alert() was added to PineScript to fill all these gaps. Is allows concatenating any alert message you want, with any variable you want inside it and you can attach alert() function at any event in your PineScript code. For example - when placing orders, crossing variables, exiting trades, but not explicitly at pending orders execution.
The Verdict
"Strategy Alerts" might seem a better fit - easier to set-up and verify, flexible and they fire only when a trade really happens, not producing unnecessary mess when each pending order is placed. But these advantages are illusionary, because they don't give you the full-control which is needed when trading with real money. Especially when using pending orders. If an alert is fired when price actually hit a stop-order or limit-order level, and even if you are executing such alert within 1 second thanks to a tool like TradingConnector, you might already be late and you are making entry at a market price. Slippage will play a great role here. You need to send ordering alert when logical conditions are met - then it will be executed at the price you want. Even if you need to cancel all the pending orders which were not executed. Because of that I strongly recommend sticking to ALERT() when building your alerts system.
Below is an example strategy, showing syntax to manage placing the orders and cancelling them. Yes, this is another spin-off from my TradingView Alerts to MT4 MT5 . As usual, please don't pay attention to backtest results, as this is educational script only.
P.S. For the last time - farewell alertcondition(). You served us well.
Alerts
SuperTrend - Custom Screener and Dynamic AlertsTrading View today published a desktop Bad Internet connection indicator ?! which set me thinking…
Despite recently introduced Dynamic Alerts many scripts do not leverage the information available for active traders and traders on the GO!
So decided to share this script totally ALERT focused on one of the most popular DAY trading indicators.
Of course no more BAD internet problem as long your TV APP is configured , you will have enough data for a mental picture of the chart..
The Alerts give you the BAR Close , %percent gain or loss over previous day CLOSE ++ Previous Day High and Low to effectively plan your trade without a chart!(just in case)
2 additions in the way Alerts are delivered over the last script :
1. You get SUMMARY alerts or concatenated alerts by default , however if you uncomment or activate code lines 48 and 55 you will get individual Stock alerts Too!
2. Summary Alerts will come only if there is some Buy or Sell signal NO more empty Alerts!
Few useful EXTRAS in the code :
1. Flexible code can convert any indicator to screener or Alert function.
2. You will NOT get Mutable Variable error while converting any indicator to screener as long as the function is in "GLOBAL" scope..
3. Many Custom Screeners are available but few give OHLC data in output so easily…and very difficult for traders to MODIFY hundreds of lines of code..
4. For UP or DOWN on SCREEN Stock monitoring copy /paste functions in line 41 and 42 in lieu of CROSS functions in 44 and 51 respectively..
5. You can also uncomment/activate lines 66 and 67 for labels in monitoring.
6. The default mode of the scripts is set to Alerts!
Max Stocks only 20!
Finally idea is to help traders to use the great features that TV works so hard to create and constantly improvise.
Enjoy Profitable Trading on the Fly !!
EMA+RSI Pump & Drop Swing Sniper (SL+TP) - StrategyThis is the strategy version of the 'EMA-RSI-Pump-Drop-Swing-Sniper-With-Alerts':
Some additions with this strategy:
~Added Stop loss & Take profit control. In Settings > Inputs if the Stop Loss is at .051 that means it's 5.1% and the Take Profit at .096 is 9.6%. If you wish to remove the TP and SL just change the value to 1.00 and it would be the same as it being 100% TP and SL which is likely to never be hit.
~Added Backtesting by changing the month/date/year in Settings > Inputs
~Added a 2nd EMA line to assist with the long entry signals. I only use this for long entry & exits, though you could use the long exits as Short entries too. I just personally don't do short trading on Bitcoin.
This is using an EMA and RSI with slightly modified settings to give good entry and exit points while looking at Bitcoin. I use this on a 1-hour and 4-hour chart and with other indicators to find good positions to enter a trade or exit if things are turning red.
It's important to know this strategy was made as a request by another user that was using the indicator version. I don't use this as a trading strategy by itself, I use the visuals it gives as a confirmation with other indicators to find the best possible entry and exit positions.
If you click on the EMA line it will color the bars of the chart based on if they are above or below the EMA - This is just visually helpful for me to see the active trend.
Make sure you hover over or click on the EMA line to see the colors of the candles change - it's not visible by default or without doing this.
Trend Surfers - Premium Breakout + AlertsTrend Surfers - Premium Breakout Strategy with Alerts
I am happy today to release the first free Trend Surfers complete Breakout Strategy!
The strategy includes:
Entry for Long and Short
Stoploss
Position Size
Exit Signal
Risk Management Feature
How the strategy works
This is a Trend Following strategy. The strategy will have drawdowns, but they will be way smaller than what you would go through with buy and old.
As a Trend Following strategy, we will buy on strength, when a breakout occurs. And sell on weakness.
The strategy includes a FIX Stoploss determined by an ATR multiple and a trailing Stoploss/Takeprofit also determined by an ATR multiple.
You can also manage your risk by entering the maximum % you are willing to risk on every trade. Additionally, there is an option to enter how many pairs you will be trading with the strategy. This will change your position size in order to make sure that you have enough funds to trade all your favorite pairs.
Use the strategy with alerts
This strategy is alert-ready. All you have to do is:
Go on a pair you would like to trade
Create an alert
Select the strategy as a Trigger
Wait for new orders to be sent to you
Every Entry (Long/Short) will include:
Market Entry (Enter position NOW!)
Stoploss price
Position Size
Leverage
* If you do not wish to use leverage, you can multiply the Position Size by the Leverage. But doing that, you might end up with a position greater than your equity. Trading on Futures is better in order to have accurate risk management.
Exit signals:
When you receive an exit signal, you need to close the position ASAP. If you want to keep your results as close as possible to the backtest results, you need to execute quickly and follow what the strategy is telling you.
Do not try to outsmart the strategy
Leave your emotion out of trading! If you trust the strategy, you will have way better returns than if you try to outsmart it. Follow each signal you receive even if it doesn't seem logical at the moment.
Become a machine that executes. Don't look at fundamentals. Follow the trend! Trust the strategy!
I hope you enjoy it!
BitcoinNinjas NINJASIGNALS V4 (Strategy)BitcoinNinjas NINJASIGNALS V4 (Strategy)
(for Cryptocurrencies, Forex, GunBot, ProfitTrailer, Autoview, CryptoHopper, manual or automated trading, and more)
This is version 4 of our Ninja Signals trading script, with accompanying backtesting strategy.
BitcoinNinjas NINJASIGNALS V4 (Script)
•Allows users to easily set automated buy/long and sell/short alerts on TradingView for use with automatic and manual trading of cryptocurrencies, Forex securities, and more (alerts are compatible with automatic trading software such as GunBot, ProfitTrailer, Autoview, CryptoHopper, and more).
•Synthesizes many powerful indicators [e.g., Relative Strength Index (RSI), Stochastic RSI, Money Flow Index (MFI), Moving Average Convergence Divergence (MACD), etc.) into one powerful script to generate very precise buy and sell signals in virtually all market conditions.
•Features user-defined adjustable calibration settings, allowing traders to customize the script to fit any currency / security on any exchange available through TradingView.com, simply by adjusting settings.
•Buy/Long arrows, Sell/Short arrows, & EMA trendline can be customized or hidden, if desired.
•Complete with backtesting strategy version of script which allows users to test various trading strategies based on the alerts the script generates (see information and screenshots below).
•Backtesting strategy features a user-defined adjustable date range, so traders can estimate performance of the script over specific periods of time, such as the last week, month, or year.
•Script and backtesting strategy feature many user-adjustable settings including stop loss and take profit alerts, an ‘only sell for profit’ option (Gunbot-specific), many different buy and sell filters, and more. Simply adjust the script settings and the backtesting results will automatically refresh.
•Backtesting strategy allows for pyramid buying to test various average down / dollar cost average trading strategies. Simply adjust the number of pyramid buys and the quantity of each buy.
•Fully compatible with margin and futures trading for any currency / security on TradingView.com.
DISCLAIMER: By using our BitcoinNinjas ‘Ninja Signals’ planning script, you agree to the BitcoinNinjas 'Terms of Use'. No sharing, copying, reselling, modifying, or any other forms of use are authorized for our documents, script / strategy, and the information published with them. This informational planning script / strategy is strictly for individual use and educational purposes only. This is not financial or investment advice. Investments are always made at your own risk and are based on your personal judgement. BitcoinNinjas is not responsible for any losses you may incur. Please invest wisely.
RSI-VWAP Indicator %█ OVERALL
Simple and effective script that, as you already know, uses vwap as source of the rsi, and with good results as long as the market has no long-term downtrend.
RsiVwap = rsi (vwap (close), Length)
The default settings are for BTC in a 30 minute time frame. For other pairs and time frames you just have to play with the settings.
█ FEATURES
• The option to start trading from a certain date has been added.
• To make the profit more progressive, a percentage of your equity is used for entries and a percentage of your position is used for closings.
• The option to trade in Spot mode has been added, since, for the TradingView backtest, the money is infinite and if you do not limit it somehow,
it would offer you much better profits than the live trading.
QuantityOnLong = Spot ? (EquityPercent / 100) * ((strategy.equity / close) - strategy.position_size) : (EquityPercent / 100) * (strategy.equity / close)
• The option to stop the system when the drawdown exceeds the fixed limit has been added.
Drawdown, as you already know, is a very important measure of risk in trading systems.
The maximum drawdown will tell us what the maximum loss of a trading system has been during a period. This maximum loss is determined by:
strategy.risk.max_drawdown(Risk, strategy.percent_of_equity)
• Leverage plotted on labels added.
█ ALERTS
To enjoy the benefits of automatic trading, TradingView alerts can be used as direct buy-sell orders on spot, or long-close orders with leverage.
Currently there are Chrome extensions that act as a bridge between TradingView and your Exchange or Broker.
This is an example of syntax for this type of extensions. Copy and paste a message like this into the alert window:
{{strategy.order.action}} @ {{strategy.order.price}} | e = {{exchange}} a = account s = {{ticker}} b = {{strategy.order.action}} {{strategy.order.alert_message}}
█ NOTE
Certain Risks of Live Algorithmic Trading You Should Know:
• Backtesting cannot assure actual results.
• The relevant market might fail or behave unexpectedly.
• Your broker may experience failures in its infrastructure, fail to execute your orders in a correct or timely fashion or reject your orders.
• The system you use for generating trading orders, communicating those orders to your broker, and receiving queries and trading results from your broker may fail.
• Time lag at various point in live trading might cause unexpected behavior.
• The systems of third parties in addition to those of the provider from which we obtain various services, your broker, and the applicable securities market may fail or malfunction.
█ THANKS
Thanks to TradingView, its Pine code, its community and especially those Pine wizards who post their ideas that helps us to learn.
If the world is heading toward a equitable new world economic order, let's get rich first ...
Happy trading!
[NLX] Trading Engine (Backtest+Alerts) [Beta]This is a different version of my backtest module, which will be a fully featured alert and backtest tool.
The new strategy alerts will be integrated so we don't require 2 different scripts anymore. All in one.
There are no stop mechanism in this version. The entry and exit signal has to come from your indicator (you can set the signal values yourself).
It also integrates a ProfitView Alert Builder. This is an early beta and the alerts are not working yet!
Stay tuned for more updates!
TradingView Alerts to MT4 MT5 - Forex, indices, commoditiesHowdy Algo-Traders! This example script has been created for educational purposes - to present how to use and automatically execute TradingView Alerts on real markets.
I'm posting this script today for a reason. TradingView has just released a new feature of the PineScript language - ALERT() function. Why is it important? It is finally possible to set alerts inside PineScript strategy-type script, without the need to convert the script into study-type. You may say triggering alerts straight from strategies was possible in PineScript before (since June 2020), but it had its limitations. Starting today you can attach alert to any custom event you might want to include in your PineScript code.
With the new feature, it is easier not only to execute strategies, but to maintain codebase - having to update 2 versions of the code with each single modification was... ahem... inconvenient. Moreover, the need to convert strategy into study also meant it was required to rip the code from all strategy...() calls, which carried a lot of useful information, like entry price, position size, and more, definitely influencing results calculated by strategy backtest. So the strategy without these features very likely produced different results than with them. While it was possible to convert these features into study with some advanced "coding gymnastics", it was also quite difficult to test whether those gymnastics didn't introduce serious, bankrupting bugs.
//////
How does this new feature work? It is really simple. On your custom events in the code like "GoLong" or "GoShort", create a string variable containing all the values you need inside your alert and this string variable will be your alert's message. Then, invoke brand new alert() function and that's it (see lines 67 onwards in the script). Set it up in CreateAlert popup and enjoy. Alerts will trigger on candle close as freq= parameter specifies. Detailed specification of the new alert() function can be found in TradingView's PineScript Reference (www.tradingview.com), but there's nothing more than message= and freq= parameters. Nothing else is needed, it is very simple. Yet powerful :)
//////
Alert syntax in this script is prepared to work with TradingConnector. Strategy here is not too complex, but also not the most basic one: it includes full exits, partial exits, stop-losses and it also utilizes dynamic variables calculated by the code (such as stop-loss price). This is only an example use case, because you could handle variety of other functionalities as well: conditional entries, pending entries, pyramiding, hedging, moving stop-loss to break-even, delivering alerts to multiple brokers and more.
//////
This script is a spin-off from my previous work, posted over a year ago here: Some comments on strategy parameters have been discussed there, but let me copy-paste most important points:
* Commission is taken into consideration.
* Slippage is intentionally left at 0. Due to shorter than 1 second delivery time of TradingConnector, slippage is practically non-existing.
* This strategy is NON-REPAINTING and uses NO TRAILING-STOP or any other feature known to be causing problems.
* The strategy was backtested on EURUSD 6h timeframe, will perform differently on other markets and timeframes.
Despite the fact this strategy seems to be still profitable, it is not guaranteed it will continue to perform well in the future. Remember the no.1 rule of backtesting - no matter how profitable and good looking a script is, it only tells about the past. There is zero guarantee the same strategy will get similar results in the future.
Full specs of TradingView alerts and how to set them up can be found here: www.tradingview.com
HFT Scalper BacktesterThis strategy is a scalper strategy developed by HFT Research. Scalper is highly customizable and provides endless opportunities to find profitable setups in the market.
Use Bollinger Bands
This piece of the settings will turn and off Bollinger band’s input in the decision making. BB Length will determine the Moving average you are using to take the standard deviation off of which is named as BB Multiplier. Default settings will use 20 moving average and take standard deviation of 2 to create lower and upper bands. Increasing the Multiplier will give you fewer but safer entries.
Use Bollinger Bands %
This setting will allow the user to determine at what Bollinger band width %, he wants to take start looking to take trades. It is known that when prices are stable and moving sideways, Bollinger bands contract and it becomes more reactive to small moves in the market. Using this setting, you can ignore the signals that would be generated while Bollinger bands are contracted. This setting will allow the user to weed out the noise in the market and really allow them to make the most out of Bollinger bands .
Use RSI
You can also turn on and off the RSI as well. Alternatively, there is an option to use RSI on a different time frame than you are currently on. For example, if you are looking at the 5min chart to use Bollinger bands but you would like to look at the RSI value on the 15min chart. You can do so by selecting the custom RSI timeframe as well as adjusting the Oversold and Overbought value.
Use STOCH
For those who want extra protection on their entry can throw STOCH into their decision making. STOCH acts like RSI but it is more prone to small moves. It will help the users to get a better entry if used correctly. Stoch may not be in the buy zone when RSI is at say 35, however, if price dips a little more and STOCH might be in the buy zone when RSI is at say 20. This way it will help you have better entries than just using RSI . In a way, you can use STOCH to scalp RSI .
Use VWAP
VWAP stands for volume weighted average price . It is an extremely useful indicator when trading intra-day. It does reset every trading session which is at 00:00 UTC . Instead of looking at x number of candles and providing an average price, it will take into consideration volume that’s traded at a certain price and weigh it accordingly.
Use ADX
ADX stands for average directional index . It is an indicator that measures volatility in the market. Unfortunately, the worst market condition for this strategy is sideways market. ADX becomes a useful tool since it can detect trend. If the volatility is low and there is no real price movement, ADX will pick that up and will not let you get in trades during a sideways market. It will allow you to enter trades only when the market is trending.
Use MA Filters
Lookback: It is an option to look back x number of candles to validate the price crossing. If the market is choppy and the price keeps crossing up and down the moving average you have chosen, it will generate a lot of “noisy” signals. This option allows you to confirm the cross by selecting how many candles the price needs to stay above or below the moving average. Setting it 0 will turn it off.
MA Filter Type: There is a selection of moving averages that is available on TradingView currently. You can choose from 14 different moving average types to detect the trend as accurate as possible.
Filter Length: You can select the length of your moving average. Most commonly used length being 50,100 and 200.
Filter Type: This is our propriety smoothing method in order to make the moving averages lag less and influence the way they are calculated slightly. Type 1 being the normal calculation and type 2 being the secret sauce .
Reverse MA Filter: This option allows you to use the moving average in reverse. For example, the strategy will go long when the price is above the moving average. However, if you use the reserve MA Filter, you will go short when the price is above the moving average. This method works best in sideways market where price usually retraces back to the moving average. So in an anticipation of price reverting back to the moving average, it is a useful piece of option to use during sideway markets which is the worst market condition for scalper.
Please visit our website for more information
Fancy strategy alerts example [QuantNomad]Alerts on strategies were introduced just recently in TradingView.
These alerts have an alert_message placeholder which allows you to compose in PineScript very complex alerts and insert quite a lot of information in them.
This is just very simple example of how they can look like.
GOAT Signals Custom No Repaint Buy Sell Arrow Strategy Tester
WELCOME to GOAT Signals Custom No Repaint Buy Sell Moving Average (MA) Strategy Tester!
This indicator can quickly and easily identify the past trading success of signals based on moving averages.
What is a Moving Average?
According to investopedia.com a moving average (MA) is a widely used indicator in technical analysis that helps smooth out price action by filtering out the “noise” from random short-term price fluctuations.
Keeping this in mind let me give an example how this indicator could be useful in identifying trends.
Many Bitcoin traders use the 21 moving average on the weekly chart to make trading decisions.
Some of this has to do with 21 being a Fibonacci sequence number, and also because of how Bitcoin price action has reacted to it's trend line in the past.
When applying this script to the Bitcoin(BLX) weekly chart with a 21 moving average the strategy tester gives us 33.33 % Percent Profitable results with 6.31 % Net Profit.
If we test another moving average, let's try 29, and change our step input to 1, we get 85.71 % Percent Profitable with 9.22 % Net Profit.
With a bit of tweaking we may be able to find charts and settings with even better performance.
Keep in mind the strategy tester does not calculate trading fees, therefore in most cases will work better on longer time frames.
The Step input gives price action some breathing space if desired. Steps can be added or subtracted.
Personally, I use the Daily and Weekly charts except during high volatility, and use a one or two bar trail depending on price action.
Past performance does NOT guarantee future gains but keep in mind Bitcoin, Litecoin and a few others are on deflationary cycles.
For full invite only access please contact DogeyBlaze.
Alert Script And Limited Time Free Trial Available.
Not Certified Financial Advice.
Slow Heiken Ashi and Exponential Moving average Strategy 2.2Strategy using Slow Heiken Ashi by Glaz and Exponential moving averages. Looking for someone to help me turn the strategy into non-reoccuring alerts as I am having trouble doing so.
Ichimoku Kinko Hyo Cloud - no offset - no repaint - strategyIchimoku Kinko Hyo Cloud - no offset - no repaint - RSI filter - strategy
The indicator contains both the standard Ichimoku Cloud , as well as the one without the visual offset.
The Strategy Tester indicates good backtest results when the Ichimoku Cloud is paired with the RSI .
However, it seems it likes to work more as a standalone system.
The indicator can be easily converted to the study() mode by commenting/uncommenting a few lines,
then the alarms can be configured.
There are entry and exit signals ready to be used by the alert system.
The coloring of the cloud without offset contains all 3 conditions: Uptrend , Downtrend , Transition .
Impulse Scalper [NXT2017] - with included market scannerPrivate Indicator.
HI BIG PLAYERS,
with this indicator it is possible to analyze small rebound effects in the trading market and to scalp the movement into the trend again.
HOW IT WORKS
Hereby the indicator use a candleformation with a huge wick inside of a band, based on a Simple Moving Average on the 50 highs and 50 lows.
A signal is shown with vertical red/green background around the bar for selling/buying. Furthermore, the high/low of the signal serves as StopLoss line and makes a horizontal red line inside the active trading time. The trade is to closing if the second candle after the signal is finished.
For example:
1. candle => signal
2. candle => entry on open price with the SL
3. candle => nothing to do
4. candle => close your trade after candle 3 is finished
For the analysis I have set the following settings:
Initial Capital: 100 000 (the default setting)
Base Currency: USD
OrderSize: 3% of equity
Pyramiding: 1 orders
Commission 0%
Verify Price For Limit Orders: 0 ticks
Slippage 0 ticks
Recalculate:
After Order is Filled (deactived)
On Every Tick (deactived)
A market scanner is also integrated in this indicator. Since good signals rarely occur in a market, the market scanner allows up to 10 markets to browse for the signals simultaneously. My favorite markets are currently selected as default.
The 10 default markets are:
AUDJPY
BTCEUR
BTCUSD
ETHBTC
ETHUSD
EURJPY
GBPNZD
NZDUSD
USDCAD
USDJPY
Market Scanner in action (in the settings you can also hide the labels):
Of course, alerts are also possible with the TradingView Alerts system. For example it's possible to get a message per signal to your e-mail, that you use on TradingView.
Access to the indicator: use the link below, thanks for your attention!
Kind regards
NXT2017
Binary Strategy by Emiliano Mesa V3The Binary Strategy Indicator is a powerful strategy in which can be set up for all Forex Binary Pairs in any set of time. The strategy profitable percentage will depend in its settings which are fully customizable. Its use is simple and its completly realtime, it depends on three states.
1) Pre-Setup (Blue), a possible ideal MTF Trading setup is being build, a trade might appear be ready.
2) Trade (Purple), a trade has now appeared be ready to take it as soon as the purple bar closes. Always take the trade at the next bar open.
3) Time prediction (Yellow), at what time will the trade close, and what are your odds in winning. 30 minutes? An hour? You know your time before hand, in order to set up your call.
This Binary Strategy has shown huge returns, and works next to "Emiliano Mesa Binary Indicator ALERTS V3", which is also sold with the Binary Strategy.
See the results for yourself... 70% Profitable.
TMA Strategy v2.2This is a backtest of the TMA Indicator v2.2 using default parameters.
Backtest window: Jan 1, 2015 - Jul 21, 2019 (today)
For more information on the indicator and strategy seen here please take a look at this backtest:
For paper trading only. Do not use on real markets. Never make investment decisions based on this indicator alone.
MADMEX ETHUSDBitmex BITMEX:ETHUSD Trading Setup for Madmex.io
Features:
- Entries based on several MTF MACDs, RSI and CCI Indicators
- Multiple ATR-based Take-Profit Stops
- Trend Detection
- Position Sizing / Risk Management
MADMEX XBTUSDBitmex BITMEX:XBTUSD Trading System with multiple ATR/Volatility-based Take-Profit Exits
Easy Profits with TSI protect V-1This is a simple script, giving open and close position signals.
I've added a trend strength protection which can be tuned to suit your preferences with regards to buys you would rather want to avoid.
There are two companion scripts so you can visually see straight forward entries without the "TSI".
The second companion is simply to visualize where the "TSI" confirms the trend strength according to your settings.
Tsi companion filled green will confirm a buy signal and the bot will receive a buy signal.
Tsi companion filled red will void the buy signal and the bot will not receive the buy signal.
The purpose for the "TSI" protection is to make it possible to filter out more negative trades in a bearish trend . (However note that being more aggressive with the "TSI" can result in blocking good trades).
I found with most scripts that it's inevitable that there will be negative trades when the chart is noisy and doesn't really have a direction.
Ultimately the goal is to minimize these trades and their percentages.
The reason I created the script was, because I found some scripts extremely complicated and not suited for beginners and someone who can't spend a lot of time on setups.
It's important to have protection settings off in your bot settings as this script is designed to get you out of negative positions as quickly as possible, eliminate big bags and rather find new entries when the trend changes bullish .
How effective this strategy will be is completely in your settings and time frames.
Very important to keep the following in mind:
1) The longer the time frame, the more accurate the back testing will be as spread and volume plays a big role in the back testing. Longer time frames finds less impact from these two factors.
2) Don't get nervous if you see lower prices during the trades this will happen as the defaults are more swing trade settings and could take a couple of days to close the trade.
3) When creating alerts make sure to use. "BUY" and "SELL" with "Shapes".
4) Use close off candle as repainting is greatly inevitable.
5) In current market conditions (April 2019) i find it most effective with 30min and Higher time frames. (I will update this statement when we pick up more confidence and movement in the market).
6) EXTREMELY IMPORTANT: ALWAYS CHECK THAT WHEN BACK TESTING THAT THE PERFORMANCE SUMMARY IS SET TO ("Easy Profits with TSI V-1").
Included scripts.
1) Easy profits with TSI protect V-1.
2) Easy profits with TSI ALERTS.
3) Easy profits cross companion.
4) Easy profits TSI companion.
Setup.
You can change your currency properties. Settings: Order size = Trading limit setting in your bot
Commission = Trading fees from your exchange
Currency = (BTC-pairs = Default)
Date range is straight forward with the option to highlight the back test period background.
Date range is adjustable in all four scripts.
Updates in progress.
Adding switches to the main script.
Any requests are welcome.
Fees for access will be 0.005 BTC .
All users with access will have access to all future updates regardless of price increases.
I would love to hand this script out for free but it does take a lot of time creating and testing these scripts.
However I will grant 2 Days access for requests. Once you would like to purchase, I will grant access to the alerts script.
I will be implementing a referral program...
Telegram group= Easy profits script.
21 Trader BacktestHello Fellow Traders!
-------------------------------------------
This is the newest addition to Gnome Alerts PRO!
Trade Moving Average Breakouts with Minimal Drawdon.
This Bot Script works on all Crypto, Leverage, Forex, & Traditional Exchanges.
FEATURES
------------------------
*Autoview Ready*
- Easy to Use
- Backtesting Included
-Take Profit
- Stop Loss
Dragon Bot - Default ScriptDragon Script is a framework to make it as easy as possible to test your own strategies and set alerts for external execution bots.
The script has many features build in, like:
1) A ping/pong mechanism between longs and shorts
2) A stop-loss
3) Trailing Stops with several ways to calculate them.
4) 2 different ways to flip from long to short.
The script is divided into several parts.
The first part of the script is used to set all the variables. You should normally never change the first part except for the comments at the top.
The second part of the script is the part where you initialise all your indicators. Several indicators can be found on Tradingview and on other sites. Please keep in mind that all the variable names used in the indicator should be unique. (all the … = … parts)
The third part of the script, is the most important part of the script. Here you can create the entry and exit points.
Let’s look at the OPENLONG function to explain this part: The first variables are all the possible entries; These are longentry1 till longentry5. You can add many more if you like.
The variables are all initialised as being false. This way the script can set a value to true if an entry happens.
The if function is the actual logic: You could say “if this is true” then (the line below the if function) longentry1 := (becomes) true.
In this case we have said: “if this is true” then (the line below the if function) longentry1 := (becomes) true when the current close is larger than the close that is 1 back.
The last part is the makelong_funct. This part says that if any of the entries are true, the whole function is true.
The last part of the script is the actual execution. Here the alerts are plotted and the back test strategies are opened and closed.
We hope you guys like it and all feedback is welcome!
MTF Scalper for XBTUSDI've combined Stochastic CCI, MACD-DEMA and RSI on multiple timeframes to create this scalper for Bitmex XBTUSD
For personal use and friends only.