50 Pips A Day Strategy - Kaspricci50 Pips A Day Strategy
This strategy is designed to work on 1 hour timeframe. It is designed to capture the early market move of major forex pairs like EURUSD or GBPUSD. It takes the high and low of the first candle (7 a.m. GMT, London Stock Exchange opens) and places to pending orders at these prices levels.
High + additional gap in pips = buy stop pending order
Low + additional gap in pips = sell stop pending order
For both orders a stop loss of 15 pips and a take profit of 50 pips is used as a default. As soon as price triggers one pending order, the remaining pending order is cancelled. At the end of the configured session time all open and pending orders are closed / cancelled.
Settings
Trading Time - start and end time of session. It is configured for Monday to Friday only. At the beginning the first candle is used to define stop prices for pending orders.
Source for Buy Stop order - Default: high. Used to calculate buy stop order. You can add additional pips as a gap.
Source for Sell Stop order - Default: low. Used to calculate sell stop order. You can add additional pips as a gap.
Stop Loss in Pips - Default: 15. Used for both pending orders.
Take Profit in Pips - Default: 50. Used for both pending orders.
This strategy is for educational purposes only! It is not meant to be a financial recommendation.
指標和策略
Wunder Keltner botWunder Keltner bot
1. Wunder Keltner bot is based on the breakout of the Keltner channel. For calculation, 2 channels are used, one for long trades, and the other for short trades. The division into 2 channels is used for more accurate entry calculations depending on trend directions.
2. The ADX indicator is used to filter signals and determine the trend strength. ADX determines the strength of the trend and confirms the entry into the strategy if the value is greater than the level indicated in the settings.
3. There are 3 ways to calculate Stop Loss and Take Profit. You can choose one of them:
Classic Stop Loss and Take Profit in a fixed percentage
ATR Stop Loss
Keltner. Stop Loss, which is set on the opposite Keltner’s Channel Band from Keltner breakout.
4. ATR and Keltner use Risk Reward (R:R) to calculate Take Profit. The script calculates Risk Reward based on the determined Stop loss level and uses the ration to calculate Take Profit.
5. A function for calculating risk on the portfolio (your deposit) has been added to the script. When this option is enabled, you get a calculation of the entry amount in dollars relative to your Stop Loss. In the settings, you can select the risk percentage on your portfolio. The loss will be calculated from the amount that will be displayed on the chart.
For example. Deposit - $1000, you set the risk to 1%. SL 5%. Entry volume will be $200. The loss at SL will be $10.10$ this is your 1% risk or 1% of the deposit.
Important! The risk per trade must be less than the Stop Loss value. If the risk is greater than SL, then you should use leverage.
The amount of funds entering the trade is calculated in dollars. This option was created if you want to send the dollar amount from Tradingview to the exchange. However, putting your volume in dollars you get the incorrect net profit and drawdown indication in the backtest results, as TradingView calculates the backtest volume in contracts.
To display the correct net profit and drawdown values in Tradingview Backtest results, use the ”Volume in contract” option.
Strategy weekly results as numbers v1This script is based on an idea of monthly statistics that have been found across tradingview community scripts. This is an improved version with weekly results with the ability to define the size of every group (number of weeks within one group).
Initial setup of the strategy
1. Set the period to calculate the results between.
2. Set the statistic precision and group size.
3. Enable "Recalculate" → "On every tick" under the strategy "Properties" section.
The logic under the hood
1. Get the period between which to calculate the strategy.
2. Calculate the first day of the first week within the period.
3. Calculate the latest day of the latest week within the period.
4. Calculate the results of the selected period.
5. Group the values by the defined number of cells.
6. Calculate the summary of every group.
7. Render the table.
Please, be careful . To use this tool you will need to enable the "Recalculate" → "On every tick" option but it means that your strategy will be executed on every tick instead of bar close. It can cause unexpected results in your strategy behaviour.
Heikin Ashi SupertrendAbout this Strategy
This supertrend strategy uses the Heikin Ashi candles to generate the supertrend but enters and exits trades using normal candle close prices. If you use the standard built in Supertrend indicator on Heikin Ashi candles, it will produce very unrealistic backtesting results because it uses the Heikin Ashi prices instead of the real prices. However, by signaling the supertrend reversals using Heikin Ashi while using standard candle close prices for the entries and exits, it corrects the backtesting errors and gives you a more realistic equity curve. You should set the chart to use standard candles and then hide them (the strategy creates the candles).
This strategy includes:
Plotting of Heikin Ashi candles
Heikin Ashi Supertrend
Long and Short Entry Signals
Move stop loss after trade is X% in profit
Profit Target
Stop Loss
Built in Alertatron automation
Alertatron Trade Automation Integration
For Alertatron integration, be sure to configure the strategy settings and "Enable Webhook Messages" before creating an alert with {{strategy.order.alert_message}} in the body of your alert message. Be sure to enable webhooks and point it to your Incoming Alertatron webhook URL.
Notes
While this strategy does pretty well during trending markets, It's worth noting that the Buy and Hold ROI is much better during peak times of the bull market
Not financial advice. Do not risk more than you can afford to lose.
Sine Wave TheoryThere are some ideas out there that the market is like a collection of quantum events and that it could all be broken down into sine waves. I created this script to put that to the test.
The idea is simple, I tested 3 different factors that could be put into sine wave form.
1.) Bar Change
2.) Volume Average Change
3.) Coin Flip
For the bar change, I simply allow the sine wave to move upwards or downwards if the bars have changed color in their sequence. For example, if there were 3 red bars and 1 green bar, it would not move the sine wave up or down until the green bar appeared.
For the average volume change, it was the same idea, except that the sine wave could only move up or down if the volume had moved up or below the average value of the length given for calculating the average volume.
Finally, the coin flip simply simulates flipping a coin, and allows the sine wave to move one direction or the other once it has a side that is different from the previous chosen side. For example, heads, heads, heads, tails (once it flipped to tails, this would allow it to move a direction).
The sine wave trading theory that I watched claimed that if you know the correct sine wave # (which is how large the peak is, and/or the sine wave count which is how many peaks and valleys occur) that you can successfully predict future trades. Their claims that the reason it does not look like a perfect sine wave for these events is because there is different amounts of trading going on, thus the timing will be slightly off.
I am posting this to disagree with their ideas. For example, if you select to turn on trading for coin flip and turn off bar change, you will see the coin flip did better on the default settings!
It just so happens that any setting will eventually be good, making all the sine wave variations just completely random if you win or not.
I posted this to demonstrate how silly trading sine waves is. The real trick is using cosine and tangent waves... lol j/k
I hope this helps someone avoid this scam concept.
Miyagi BacktesterMiyagi: The attempt at mastering something for the best results.
Miyagi indicators combine multiple trigger conditions and place them in one toolbox for traders to easily use, produce alerts, backtest, reduce risk and increase profitability.
The Miyagi Backtester is a standalone backtester which is to be applied to the chart after the Miyagi indicator to be backtested.
The backtester can only backtest one script at a time, and is meant to backtest ONCE PER BAR CLOSE entries.
It is currently not possible to backtest ONCE PER BAR entries.
The backtester will allow users to all Miyagi Indicators using DCA strategies to show returns over a selectable time period.
The backtester allows leverage, and as such users should be aware of the Maximum Amount for Bot Usage and Leverage Required Calculations.
The DCA Selector switch will allow users to backtest with, or without DCA.
Static DCA is used within the backtester and allows users to see DCA Statistics on closed trades.
How to use the Miyagi Backtester
Step 1: Apply the Miyagi Indicator of Choice to backtest (4in1/10in1/Strend).
DATE AND TIME RANGE:
-Date and time range to backtest.
TRADE:
-Entry source to backtest. Please select the "Outbound Entry Signal Sender"
-Trade Direction to backtest. This can be helpful to backtest according to your strategy (long or short).
-Take Profit % to backtest. This is the percent take profit to backtest. Slippage can be accounted for on the "Properties" tab.
-Stoploss % to backtest. This is the percent stoploss to backtest.
DCA:
DCA Checkbox: Enable the DCA Checkbox to backtest with DCA. Disable it to backtest without DCA.
Leverage: Input the Leverage you will trade with.
Base Order Size (% Equity): This is the Base order (BO) size to backtest in % of equity.
Safety Order Size (% Equity): This is the Safety order (SO) size to backtest in % of equity.
Number of DCA Orders: This is the maximum amount of DCA orders to place, or total DCA orders.
Price Deviation (% from initial order): This is the percent at which the first safety is placed.
Safety Order Step Scale: This is the scale at which is applied to the deviation for the step calculation to determine next SO placement.
Safety Order Volume Scale: This is the scale at which is applied to the safety orders for the volume calculation to determine SO Volume.
Real world DCA Example:
The process is as follows.
Base Order: This is your initial order size, $100 used for Base Order
Safety Order: This is your first safety order size, which is placed at the deviation. $100 Safety Order, it is good to keep the same size as your BO for your scaling to be effective.
Price deviation: This is the deviation at which your first Safety order is placed. 0.3-0.75% used by most of our members.
Safety Order Volume Scale: This is the scale at which is applied to the safety orders for the volume calculation. Scale of 2 used, which means that SO2 = (SO1) * 2, or $200. This scaling is typical for all following orders and as such SO3 = (SO2) *2, or $400.
Safety Order Step Scale: This is the scale at which is applied to the deviation for the step calculation. This is similar to the volume scale however the last order percentage is added.
Scale of 2 used, which means that SO2 % = ((Deviation) * 2) + (SO1%). (0.5% *2) + (0.5) = 1.5%.
This scaling is typical for all following orders except that the prior deviation is used and as such SO3 = ((Prior%) * 2) + (Deviation). (1.5% * 2) +(0.5%) or 3.5%.
Total SO Number: The calculations will continue going until the last SO. It is helpful to understand the amount of SO’s and scaling determines how efficient your DCA is.
Backtester Outputs include:
Net Profit to display net profit
Daily Net Profit to estimate
Percent Profitable which shows ratio of winning trades to losing trades.
Total Trades
Winning Trades
Losing Trades (only applicable if stoploss is used)
Buy & Hold Return (of the backtested asset) to compare if the strategy used beats buy & hold return.
Avg Trade Time is very helpful to see average trade time.
Max Trade Time is very helpful to see the maximum trade time.
Total Backtested Time will return total backtested time.
Initial Capital which is taken from the Properties tab.
Max amount for Bot Usage which can be helpful to see bot usage.
Leverage Required will show you the leverage required to sustain the DCA configuration.
Total SO Deviation will allow users to see the drop coverage their DCA provides.
Max Spent which is a % of total account spent on one trade.
Max Drawdown which displays the maximum drawdown of any trade.
Max % distance from entry shows the maximum distance price went away from entry prior to the trade closing.
Max SO Used which shows the maximum number of SO's used on a single trade
Avg SO Used which shows the average number of SO's used in all closed trades.
Deals closing with BO Only calculation will show how many trades are closed without DCA.
Deals closing with 1-7 SOs calculation will show how many trades are closed with DCA, and allow for fine-tuning.
Happy Trading!
This script will be effective to backtest and produce the best settings for each timeframe and pair across all STP Scripts.
This will take a lot of the manual work out of backtesting for our users while improving profit potential.
Happy Trading!
Power Trend v1.0Background to the tool
The tool was built out of frustration. Having traded for many years with a reasonable level of success I was always frustrated that my trading never went up a level. The world of trading is filled with people having so much more success than me and this level of FOMO really bothered me and resulted in inconsistency and countless hours sitting in front of a screen, hoping for the best. I also became a little bit of an indicator junkie - was there a holy grail indicator out there for me? I always felt that as a retail trader I was behind the curve. I started to investigate how the major market participants trade and make money and I was astounded at the level of success that they get from creating strategies and sticking to it. The market is driven largely by a "black boxes" which, for us retail traders are outside of our ability to access. I wanted to build a tool that could give me a traders edge.
Another factor that has always bothered me was when reading investing books there is a general assumption that a standard entry, say 8/13 cross over, works on all stocks. However, it is not the case and it can be frustrating for a trader using a set up and not realizing that the set up was/is the problem, not the trader. This realization alone has made a huge impact on my trading. The big boxes that control the market know this already.
Also, a lot of indicators that are available don’t take advantage of the backtesting capability provided in Tradingview. It is fairly simple to find 8-9 trades where a set up worked and then fall into the trade of assuming that it cannot fail. Knowing which set ups work and how frequently it will print will change the way that you trade.
The goal with the tool is to identify setups that have worked in the past with a high degree of profitability, high profit factor and low drawdown and using the planning tool allows you to customize the setup to find exactly what you are looking for across any tradeable asset on TradingView.
Over the past 20 years I have realized the following:
1) Not all entries and signals work the same on all stocks and knowing the historical performance of a strategy is critical
2) Not having a plan in advance lowers your probability of success
3) Developing consistency in analysis is critical
4) Developing confidence in your own plan is more important than whose trades you try to copy
5) Having 30 indicators does not help you trade better - it leads to more frustration
So here is the product of these realisations:
1) The tool looks across the most common entry strategies (RMA / EMA / SMA / HMA / WMA cross on 5 dimensions of type and 5 common crossovers) and can be used on 19 different time frames giving you guidance on what the best set up is for the stock you are analysing
2) It incorporates volatility into the strategy – when stocks are trading outside of a predetermined volatility band, a trade will not be entered. This accommodates traders who tend to get shaken out of trades too early.
3) It looks at the impact of “buying the dip” – often a common strategy employed by many traders which now can be backtested and reviewed to see if it actually helped or hindered the trade.
4) It measures your trade plan against your R – what you are willing to risk – and calculates your target profit based on your R multiple
5) It provides a non repaint signal on your base strategy and provides you with signals to trade smaller or shorter signals within the bigger strategy.
There are some additional visual tools:
• Squeeze signals - I am a big fan of the TTM squeeze however the Squeeze by itself can be hard to trade. Seeing a squeeze fire long on a chart can add to trade confidence.
• Seeing zones of support and resistance rather than single lines can also give you some leeway in terms of not getting pushed out of a trade too soon.
The backtester is always reviewed on a multi year period to get an understanding of win rate %, profit ratio and average duration of trade. As an option trader knowing that a high probability move is playing out allows me to make sure that I don’t undercut the time frame for the expiration of the option relative to the historical average duration of a trade. Backtesting on shorter times is unrealistic.
Key benefits
1) It will save you a ton of time. I don’t have to sit in front of a screen watching ticks each day. I can plan for an entry, set an alert for a trade and when the conditions are met the TradingView system sends me a message and I will go and confirm a trade, execute it, set my alerts for control and move on with my life.
2) It allows me to review trade ideas in a consistent manner using the best trade plan and set up for a stock.
3) It forces me to be patient and not panic (always a good thing). With an adjustable volatility feature I can modify the volatility band in the trade plan to accommodate choppy market conditions.
4) It looks at both sides of the market (long and short) and you can calculate the impact of being market neutral or having a directional bias.
I hope this tool helps you to achieve some degree of peace in your trading.
Polaris [Loxx]Polaris is a lower timeframe, high-leverage scalping indicator. It works by scanning for volatility spikes and then calculation the likelihood that those spikes will break market structure to the upside or downside.
Settings
Volatility Type: ATR or TRD , these types will be expanded in future releases.
Volatility Multiplier: How much volatility for market structure break
Filter and source: Proprietary moving average filter period and source type
Equity Calculation Method: Fixed or compounded. This determines trade size. If fixed, then the strategy uses the same quantity per trade, if compounded the strategy uses a percentage of cash on hand as that cash grows or shrinks
% Risk Per Trade: How much you'd like to risk per trade.
Leverage Multiple: How much leverage you'd like to use
% Maintenance Margin: You can find this value posted on the exchange you use
Enabled Forced Liquidation Stop-loss?: If enabled, the strategy will liquidate at measures of leverage automatically. 10x leverage liquidates at 10% opposite move for the trade, for example. This number will be adjusted by the % Maintenance Margin determined by the exchange.
% Minimum Take Profit Cutoff: This controls whether you wish to take trades only over XX% volatility . Since this indicator is to be used for small tight scalps, this keeps you out of trades that are too small to be useful for your desired trading style
Activate Long Pullback Rule?: This controls how the trade is entered. If activated, then the entry won't occur until a pullback happens after market structure break
Activate Short Pullback Rule?: This controls how the trade is entered. If activated, then the entry won't occur until a pullback happens after market structure break
Activate Trend Flip Exits?: Force strategy to exit when trend flips from short to long and long to short
Number of Take Profits: How many take profits levels. 1-5
Activate Trailing Take Profit?: Allows you to set a trailing stop loss after TP2 his hit
Trailing Take Profit Offset Multipler: This determines when the trailing stoploss hits. It's a multiple of volatility
Activate Moving Stop-loss?: Forces the stop loss to move up as targets are reached
Where to Move Stop-loss: At which Take Profit level do we begin to move stoplosses upward with targets
Show dip buying levels: If you have a high risk appetite, these are levels where you could increase your investment size, this has no effect on the strategy but is included for if you wish to manually add to your position size
Activate Longs?: Toggles on/off Longs
Activate Longs?: Toggles on/off Shorts
The remaining settings are multiples of volatility for Take Profits and dip buying levels
UI components
Big green and red plus signs means an entry point. PTF with green and red arrows means "prepare for trend flip". Not every PTF will actually flip the trend. These are just warning shots to make you aware that a possible trend flip is coming. Labels nest to market structure breaks with numbers are the ideal entry level. You can set limit orders at these levels so as to incur less exchange fees on Binance or Bybit for example. The data window provides useful information about the current trade and targets and stoploss of the next upcoming trade giving the current price action of the asset.
Other things to note
this is an extremely high risk strategy depending on how you tune the settings. You can tune down the settings to make it less risky at the cost of profit and hit rate, but that's up to you and your trading style. This can be used all all timeframes, but is meant for timeframes below 4 hours.
Waverider [Loxx]Waverider is a momentum strategy that probes historical data to find the optimal entries based on measures of volatility and gaussian adaptive filtering. To accomplish this, after each successful trade, XX trades will be skipped until a specific loss count is achieved after which the strategy will activate again, searching for the next trade.
Features
Select long/short profit target and stoploss by %
Skip weekends
Toggle on/off adaptive divergence detection and forced exit
MACD MTF Strategy [JoseMetal]============
ENGLISH
============
- Description:
This strategy uses my indicator MACD MTF (check my profile) to generate entries, it also has ATR to define Stop Loss and Take Profit if needed.
The strategy has several customizable options, which allows you to refine the strategy for your asset and timeframe.
You can customize settings for ALL indicator settings (MACD MTF and ATR).
- CUSTOM CONDITIONS TO ENTER A POSITION:
1. Both MACDs agree (current timeframe and higher timeframe).
2. Current timeframe MACD crossover.
3. Higher timeframe MACD crossover.
4. MACDs no longer agree with each other.
- EXIT CONDITION:
1. Predefined Stop Loss and Take Profit based on ATR (stop can be previous wick).
2. MACDs no longer agree with each other.
3. Opposite position entry.
- STOP LOSS TYPE:
1. ATR.
2. Previous wick.
- OTHER OPTIONS:
You can customize any setting for my MACD MTF and ATR.
- Visual:
ATR is shown for the Stop Loss / Take Profit.
The script prints the Take Profit as a green line, Stop Loss as a red line and entry price with a white line.
- Recommendations:
Recommended on 8H or 12H timeframe for the CURRENT timeframe, while using DAILY for the higher timeframe on the MACD MFT (by default).
Entry when BOTH MACDs agree and exit on opposite entry, this has NO TAKE PROFIT or STOP LOSS, so be careful, but gives the BEST profit overall, and being on 8H/12H + Daily lets you relax.
- Customization:
As you can see, almost everything is customizable, for colors and plotting styles check the "Style" tab.
Enjoy!
============
ESPAÑOL
============
- Descripción:
Esta estrategia utiliza mi indicador MACD MTF (revisa mi perfil) para generar entradas, también cuenta con ATR para definir Stop Loss y Take Profit si es necesario.
La estrategia tiene varias opciones personalizables, lo te le permiten refinar la estrategia para te activo y temporalidad.
Puedes personalizar la configuración de TODOS los indicadores (MACD MTF y ATR).
- CONDICIONES PERSONALIZADAS PARA ENTRAR EN UNA POSICIÓN:
1. Ambos MACDs coinciden (temporalidad actual y temporalidad superior).
2. Cruce del MACD en el marco de tiempo actual.
3. Cruce del MACD en el marco temporal superior.
4. Los MACD ya no coinciden entre sí (están en desacuerdo).
- CONDICIÓN DE SALIDA:
1. Stop Loss y Take Profit predefinidos basados en el ATR (el stop puede ser la mecha anterior).
2. Los MACDs ya no coinciden entre sí (están en desacuerdo).
3. Entrada en posición contraria.
- TIPO DE STOP LOSS:
1. ATR.
2. Mecha anterior.
- OTRAS OPCIONES:
Puede personalizar cualquier ajuste para mi MACD MTF y ATR.
- Visual:
El ATR se muestra para el Stop Loss / Take Profit.
El script imprime el Take Profit como una línea verde, el Stop Loss como una línea roja y el precio de entrada con una línea blanca.
- Recomendaciones:
Se recomienda en el marco de tiempo 8H o 12H para el marco de tiempo ACTUAL, mientras que se utiliza DIARIO para el marco de tiempo superior en el MACD MFT (por defecto).
Entrar cuando AMBOS MACDs están de acuerdo y salir en la entrada opuesta, esto no tiene TAKE PROFIT o STOP LOSS, así que tenga cuidado, pero da el MEJOR beneficio en general, y estar en 8H/12H + Diario le permite relajarse.
- Personalización:
Como puedes ver, casi todo es personalizable, para colores y estilos de trazado revisa la pestaña "Estilo".
¡Que lo disfrutes!
ATR Trend Run - Signals Alerts SL and TP by Tech Store OnThe script uses several ATR formulas for entering/exiting trades, support/resistance lines to take TP1 (take profit 1) and another ATR formula for TP2 (take profit 2). Everything is fully configurable to your preference, and you can back-test it via TradingView. You can also configure the indicator for signals during US trading sessions (with or without power hour), as well as taking profits/stop-loss session time(s), as well as to close a position at the end of the trading session no matter what. Also, you can turn all of that off, so there are no trading session/end of day limits and each trade will run until it either hits SL, TP1, TP1 > back to entry, TP2. Note: indicator is set to skip consecutive/opposite signals, while you currently have a trade open > if you hit a trend – ride it to the end!
For example: If you will be day trading SPY and you wish to close your positions no matter what right before the market closes (3:45PM ET > 15min before closes): Make sure to checkbox “Intraday – Close Position Before Market Closes” in the strategy/indicator Settings, so that you are alerted soon before the market closes, if you wish to continue holding the position – leave this checkbox unchecked.
SL: SL is set to be slightly above/below the signal candle, which is best suited for this strategy.
Strategy Take Profit Approach
While the initial position open and SL hit is always based on a closed candle bar (can’t do otherwise, as otherwise you will have 10s of fake signal alerts), there are 2 ways on trading this strategy in terms of TP1 and TP1 taken > back to Entry, which is based off Alert type.
You can switch this as you like within the indicator settings, “Checked: TP1 taken > back to Entry per Price Touch | Unchecked: per Candle Close”.
Candle Close vs Price Touch: with the Default method - Candle Close for an alert for TP1 or if price comes back to Entry after TP1 is taken will only be triggered once candle bar fully closes crossing the area, while Price Touch will alert when price touches the area before candle bar closes.
For example: your trade is running well, you grab TP1 and the price reverses and hits your trade Entry area. With Price Touch – you are immediately alerted to close your trade with no loss and with TP1 profit. With Candle Close - you will receive an alert only once candle bar fully closes on top of the Entry crossing it backwards, meaning it may lower your TP1 profit or even completely reverse the trade into loss in case it will be a huge candle bar for any reason. However, it may touch the Entry area, looking like the price is reversing, but then continue per initial trade direction, sometimes becoming a trend. So, while Price Touch seem like a more conservative approach, Candle Close can give you much bigger profits if you catch a trend, but you can always change it via the Settings.
Note: TradingView back-testing engine does not have a feature to open/close orders IMMEDIATELY via Price Touch trigger, but only when the candle closes after price touches the scripted area/line/etc., so you for the most accurate results, test your strategy out via Candle Close setting. Otherwise, decide yourself. I personally like more Candle Close since I can test it out via back-testing with the most accurate results.
TP2 is set per Candle Close as often the ATR trailing stop line will be hit and bounced off, so it’s best to wait until candle actually breaks it/closes through it.
Note: If you will be observing the strategy LIVE, during LIVE candle bar movement – it will look weird, like it’s placing an order after order during any trigger – this seem like a TradingView bug, but is only observational, once the candle bar is closed and you refresh TradingView it will all look correct.
Back-Testing
If you wish to do some back-testing, just modify the strategy/indicator Settings:
-----1) STRATEGY: This is for back-testing/experimenting with the script inputs.
----------a. You can setup a start date (date, month, year) from which it will start opening back-test trades, select a position size and select TP1 size, the idea here is to close half (or whatever you choose) portion of the trade once you hit your TP1, then to either close at small profit or to catch a trend and close the second portion of the position long way ahead from Entry, otherwise it will alert you to close the position at TP2, if price comes back to Entry, at reversal signal or at the end of US trading session if the option for it is checked. If you wish to close the whole position at TP1, just enter the same amount for TP1 to match backtest position size. Otherwise you can experiment with TP1 sizing – try it out!
-----2) Feel free to experiment with ATR settings and with S&R Left/Right bars, you may be amazed how results will differ and find some really cool combinations!
-----3) Make sure you select/de-select “Intraday – Close Position Before Market Closes” setting depending on what you are back-testing and on which conditions
-----4) Note: If you wish to do some deep back-testing (1+ years), use the “Deep Backtesting” feature within Strategy Tester on the TradingView as otherwise it may show wrong results or even fail to compute the results
Add the alerts
-----Right-click anywhere on the TradingView chart
-----Click on Add alert
-----Condition: ATR Trend Run - Signals Alerts SL and TP, by Tech Store On
----------o Right underneath the condition click on the drop-down menu and select “alert() function calls only”
-----Expiration time: Whatever you wish
-----Alert actions: Whatever notifications you wish
-----Alert name: DO NOT TOUCH THIS
-----Hit “Create”
-----Note: If you change ANY Settings within the indicator – you must DELETE the current alert and create a new one per steps above, otherwise it will continue triggering alerts per old Settings!
- Note: If you add the alert while the script is currently “In Position” it will not know that. So either wait when there will be no position open at all or close your position partially if the bot opens it twice bigger or so in case per script the bot will think it is already in position.
Note: Because of the slippage and the order processing time between TradingView, AutoView and the Broker (it’s usually about a second or so), it is suggested to not use a timeframe lower than 1min. The script is working really well with 1M/3M/5M/H1/H4 timeframes per my back-testing, but feel free to explore via Strategy Back-testing what’s best for the instrument you wish to trade.
If you wish to try this out for a week or so – please reach out and I will give you access.
AVPHOW TO USE:
This script is designed to be used on MES primarily. ES works as well but much more capital is needed.
3000 per contract is the recommended amount of initial capital. This number is a combination of the maintenance requirements to hold a contract through the settlement period and an additional amount for any drawdown. 1k maintenance + 2k drawdown buffer. This is a conservative estimate. You may need to change this to fit your individual broker requirements and risk tolerance.
Depending on the signal and how it is filtered the script will sometimes reverse a position or close it. Be mindful of which.
An important note is to not decrease the number of contracts traded once you have upped the position size if you plan to increase as the profit allows.
SIMULATION:
I've included an option to see the compounding and changes in position size according to the HOW TO section. If you have access to "Deep Backtesting" option the results will be clearer. The current limitations of the data provided by TradingView at the 5m resolution limits the deep backtest to just shy of 1 year worth of trades.
The initial number of contracts to be traded can be changed to fit your own account size you wish to trade. You may also wish to see how it builds from just a single contract and building up based off profit alone. In that case leave the initial size as 1.
The buffer size is the amount of capital required to increase the position size. You may wish to increase risk by lowering this number or have a more conservative one by increasing it.
Job's Tears - V6This strategy is based on Heikin Ashi + supertrend + DMI + RSI .
Fully functional with placing a new order, taking partial profit at the target price, taking partial profit when hit the take profit, and closing an order.
I wrote this strategy mostly in 5min timeframe.
The commission is default at 0.02% and slippage is 1.
InitCapital is 100 USD, place every new order with 20 USD, close 10 USD when hitting the target price and close 2 USD for every take profits.
No leverage is applied.
I use Heikin Ashi candle patterns to identify the buy/sell signal and supertrend to back my signal. Then I use dmi and rsi to filter out the noises.
My target is to catch a big trend, so I use a lot of take profits to maximize the potential profit.
New Short/New Long: Place a market order for a new position of 20 USD.
Target Price: Place a limited order of 10 USD at that price as soon as a new position is ordered as a basic profit in the pocket.
Take Profit: Place a market order to reduce the position by 2 USD each time.
TaoBao: Place a market order to close all remaining positions. It will only show up after hitting the target price as a way to protect our capital.
Close Short/Long: Place a market order to close all remaining positions.
Gaussian Filter ModifiedAn effort to enhance auto-trading based on Gaussian Filter with Standard Deviation Filtering, Trading True Range and Smoothed SMA was added to remove noise contributing to ranging markets and unwanted entries against established trend.
Gaussian parameters need to be adjusted for different asset pair to find its own "signature", then filter out bad entry with TTR and SMA.
*Credits to Loxx for his work on Gaussian Filter
MONEY FOR NOTHING BOT UPDATEDNow look at them yo-yos, that's the way you do it
You play the guitar on the MTV
That ain't workin', that's the way you do it
Money for nothin' and your chicks for free
Now that ain't workin', that's the way you do it
Lemme tell ya, them guys ain't dumb
Maybe get a blister on your little finger
Maybe get a blister on your thumb
We got to install microwave ovens, custom kitchen deliveries
We got to move these refrigerators, we got to move these color TVs
See the little faggot with the earring and the make up
Yeah, buddy, that's his own hair
That little faggot got his own jet airplane
That little faggot, he's a millionaire
We got to install microwave ovens, custom kitchen deliveries
We got to move these refrigerators, we gotta move these color TVs
We got to install microwave ovens, custom kitchen deliveries
We got to move these refrigerators, we got to move these color TVs
Looky here, look out
I shoulda learned to play the guitar
I shoulda learned to play them drums
Look at that mama, she got it stickin' in the camera man
We could have some
And he's up there, what's that?
Hawaiian noises?
Bangin' on the bongos like a chimpanzee
That ain't workin', that's the way you do it
Get your money for nothin', get your chicks for free
We got to install microwave ovens, custom kitchen deliveries
We got to move these refrigerators, we gotta move these color TVs
Listen here
Now that ain't workin' that's the way you do it
You play the guitar on the MTV
That ain't workin', that's the way you do it
Money for nothin' and your chicks for free
Money for nothin', chicks for free
Get your money for nothin' and your chicks for free
Ooh, money for nothin', chicks for free
Money for nothin', chicks for free (money, money, money)
Money for nothin', chicks for free
Get your money for nothin', get your chicks for free
Get your money for nothin' and the chicks for free
Get your money for nothin' and the chicks for free
Look at that, look at that
Get your money for nothin' (I want my, I want my)
Chicks for free (I want my MTV)
Money for nothin', chicks for free (I want my, I want my, I want my MTV)
Get your money for nothin' (I want my, I want my)
And the chicks for free (I want my MTV)
Get your money for nothin' (I want my, I want my)
And the chicks for free (I want my MTV)
Easy, easy money for nothin' (I want my, I want my)
Easy, easy chicks for free (I want my MTV)
Easy, easy money for nothin' (I want my, I want my)
Chicks for free (I want my MTV)
That ain't workin'
Money for nothing, chicks for free
Money for nothing, chicks for free
Anton ttt +Использовать при средней волатильности, просто наложив на график в учет взят фактор АТР а также движение относительной силы цены. Использовать внимательно не как основной инструмент торговли
3Commas Bot DCA Backtester & Signals FREEThis is a DCA Strategy backtester + signals, built to emulate the 3Commas DCA bots. It uses your choice of 4 different buy signals, 2 of which can be adjusted in the settings. Everything is customizable so you can backtest specific settings with different buy signals and find the best performing strategy for your risk tolerance and capital. It can be used to backtest strategies on stocks as well, but just make sure your base order is larger than the share price for the entire backtesting range or it will not calculate properly.
You can use this template to code your own buy signals and then backtest them as a DCA strategy if you know some basic pine script.
The indicator shows all of your backtesting orders on the chart. The red line is your take profit level, the blue line is your average price level, the white line is your first order and the green lines are your average down orders. If you enable a stop loss in the settings your stop loss will be shown as an orange line once all of your average down orders have been hit, it will not be set until price has dipped below your covered trading range.
These levels update when things change during backtesting so you can visualize your strategy and how it would perform as well as see if your percentage deviation is large enough to cover dips. When backtesting trades are taken, the chart will show where they were taken(in backtesting) along with info on those trades such as the number each order is, the size of that order and the percentage deviation that order is from the initial buy.
SENDING SIGNALS TO 3COMMAS
Tradingview cannot sync this backtester to 3Commas and with the way alerts are setup for strategies on Tradingview, the best option for you to give signals to your bot would be to use this backtester to figure out what trigger you want to use and then setup that indicator separately to send alerts to your bot. All of the indicators used for signals in this backtester are available for free and can be configured to match this backtester and send alerts to 3Commas for you. Just make sure you set your alerts to once per bar close and don’t use less than a 15 second timeframe because then you could trigger the Tradingview threshold for alerts and get your alerts shut off.
You can also use this backtester with your own buy triggers if you know a little pine script. Just make copy of the script and code in your own buy signals and see how it backtests.
INFO PANEL FOR ANALYZING YOUR STRATEGY
The right hand side of the screen will show an info panel that shows a lot of different information so you can quickly see your bot settings and how it performed right on the screen.
In the top right corner you will see in purple your bot settings. These include your stoploss % if turned on, take profit %, average down order %, average down order % multiplier, volume multiplier, max number of orders allowed and size of your base order.
The top section of the first column “Current Trade” shows these stats: the open trade’s average price, the open trade’s take profit price, the open trade’s PNL, how far price is from your open tarde’s take profit level in percentage, your open position size and number of open orders.
The bottom section of the first column “Overall Performance” shows these stats: total number of trades taken during backtesting range, the largest amount of trades that were open at one time during backtesting, the max drawdown, the average number of bars per trade, gross profit, net profit, percent profit from your initial capital, current portfolio value and your initial capital.
CUSTOMIZABLE OPTIONS TO FIND THE PERFECT STRATEGY
Stoploss On/Off
This will turn your stoploss on or off. By default it is set to off and will not affect anything unless turned on.
Stoploss Percentage
This is the percentage below your final average down order price that will be set as a stoploss to keep your account from going too far in the red on big dips.
Take Profit Percentage - This is the percentage of profit you want the trade to hit before taking profit on your entire DCA trade. This level updates everytime you average down.
Average Down Percentage - This is the percentage that price has to drop from your initial order to initiate your first safety order. If the Average Down Percent Multiplier is set to 1 then this percentage will be the same for every average down order.
Average Down Percentage Multiplier - This multiplies your Average Down Percentage so each safety order needs a larger percentage deviation than the previous one. This keeps your buys closer together at the beginning and further apart when you hit more orders so you can extend your trading range but still be aggressive when price is going sideways.
Volume Multiplier Per New Order - This multiplies the size of each trade based on your base order. If you set it to a 2x multiplier then each average down order will be 2 times the size of the last one. So for example, a $100 base order with a 2x multiplier would have these values for the first 3 average down orders: 200, 400, 800.
Size Of Base Order - This is the size of your first position entry and will be used as a starting point for the volume multiplier. If your base order is $100 then it will buy $100 worth of whatever crypto you are backtesting this on. If you are looking at stock charts, you need to make sure your base order is higher than the share price across the entire backtesting range or it will not perform correctly.
Max Number Of Orders - This is the maximum number of orders the bot can take, including your base order. Adjust this to suit the amount of capital you are willing to allocate to your bot based on how much money it will require to run according to your bot settings.
TIPS ON HOW TO USE FOR BEST RESULTS
If you don’t have a lot of capital to work with, then use longer timeframes with a reasonable take profit percentage so that you don’t need a lot of average down orders. You can also try keeping the volume multiplier close to 1.
You can use the 3Commas dca bot settings page to see how much capital you will need for your strategy if you match it to the settings you have on this indicator. You can also check to see how much of a percentage deviation your bot is covering to make sure you have a reasonable range to trade in and orders to cover big dips. You can also check your coverage by seeing how far down the chart the green lines cover, which are your average down orders.
Make sure the initial capital in the properties tab of the settings has enough to cover all of your orders otherwise you will get unrealistic backtesting results. Also, make sure you leave the order size in the properties tab on contracts so it calculates your trades correctly. The only settings you need to touch in the properties tab is the initial capital. Unless you are trading somewhere that has lower commission fees, then you can change that to match, but leave all the other settings as is for it to function properly.
Increasing the volume multiplier will make your average price and take profit target follow the price action a lot closer as price falls, but it can also lead to having very large orders very quickly once you get into the 1.5-3x multiple range. Try using a high volume multiplier with less safety orders and you will get better results, however you need to have money on the sidelines to add on major dips to keep your bot turning a profit. Be very careful with this as greed and impatience will hurt your overall performance. This bot is meant to make money with lots of small wins so don’t get greedy and make sure you have enough money to cover large dips. If you are being aggressive with your bot, then I recommend only using 25% or less of your portfolio to trade aggressively and then use the smart trade feature on 3commas to add chunks of funds to your trades when price dips below your last safety order. Or if you want it to run without any supervision, then use lower volume multipliers and have lots of safety orders that can cover entire bear markets and still keep buying lower.
It’s a good idea to have some capital on the sidelines that you can add in when price dips quickly. This will help lower your average price and allow your bot to get out in profit quicker. 3Commas bot has a smart trade feature that will allow you to track your average price when adding extra funds and it will automatically update your other orders which is very convenient. Look at the longer timeframes when price dips and only add chunks at major areas where price is very likely to bounce. Or you can be aggressive when trading and add to your position when price dips and is at a likely bounce zone to maximize profits.
Only trade coins that have a good amount of liquidity as the larger your orders get, the harder it will be to sell if there isn’t much liquidity. Also, beware of how large your first order is as it will usually be a market order and can move the market if there is not much liquidity.
Since this bot takes a lot of trades and performs best when taking small profits consistently, you will need to factor in exchange fees. The bot is set to .5% commission(you can change this) on the buy and sell orders as most exchanges charge that amount. Some exchanges offer no fee trading on certain coins so be sure to look around for those so you can keep the commissions and maximize profits.
I strongly encourage you to try out a lot of different setting combinations across multiple different coins and do it across a few months to see how it would have performed under various market conditions. This will help you get a better idea of how much of a percentage deviation you’ll need to be able to cover to keep your bot running and making constant profits. You can also use the deep backtesting feature of the strategy panel to see how it would have done, but just beware that the info panel of the indicator will not reflect deep backtesting results, only the normal backtesting range.
MARKETS
This backtester can be used on any market including crypto, stocks, forex & futures. You just need to make sure your base order is larger than the share price when using this on things besides crypto.
TIMEFRAMES
This backtester can be used on all timeframes.
rt maax EMA cross strategythis just sample of our strategies we published with open source, to learning our investor the way of trading and analysis, this strategy just for study and learning
in this strategy we use expontial moving avarage 20 , 50 , 200 and the we build this strategy when the price move up ema 200 and ema 20,50 cross up the 200 ema in this conditions the strargey will open long postion
and the oppisit it is true for short postion in this sitation the price should be under ema 200 and the ema 20 , 50 should cross under 200 ema then the strategy will open the short postion
we try this strategy on forex ,crypto and futures and it give us very good result ,, also we try this postion on multi time frame we find the stragey give us good result on 1 hour time frame .
in the end our advice for you before you use any stratgy you should have the knowledg of the indecators how it is work and also you should have information about the market you trade and the last news for this market beacuse it effect so much on the price moving .
so we hope this strategy give you brefing of the way we work and build our strategy
SPX Fair Value Strategy UltimateThis is a strategy using the SPX Fair Value derived from Net Liquidity.
Net Liquidity function is simply: Fed Balance Sheet - Treasury General Account - Reverse Repo Balance
Formula for calculating the fair value of SPX using Net Liquidity looks like this: net_liquidity/1000000000/1.1 -1625
The SPX Fair Value is then subtracted from the SPX value which creates an oscillating diff value.
When diff is greater than 350, SPX is considered overbought and we go short/sell.
When diff is less than -150, SPX is considered oversold and we cover/buy.
The net liquidity values I calculate outside of TradingView. If you'd like the strategy to work for future dates, you'll need to update them.
Paremeters:
Strategy: Short Only, Long Only, Long/Short
Inverse (bool): check if using an inverse ETF to go long instead of short.
Start After Date: When the strategy should start trading
Close Date: Day to close open trades. I just like it to get complete results rather than the strategy ending with open trades.
Multi Trend Cross Strategy TemplateToday I am sharing with the community trend cross strategy template that incorporates any combination of over 20 built in indicators. Some of these indicators are in the Pine library, and some have been custom coded and contributed over time by the beloved Pine Coder community. Identifying a trend cross is a common trend following strategy and a common custom-code request from the community. Using this template, users can now select from over 400 different potential trend combinations and setup alerts without any custom coding required. This Multi-Trend cross template has a very inclusive library of trend calculations/indicators built-in, and will plot any of the 20+ indicators/trends that you can select in the settings.
How it works : Simple trend cross strategies go long when the fast trend crosses over the slow trend, and/or go short when the fast trend crosses under the slow trend. Options for either trend direction are built-in to this strategy template. The script is also coded in a way that allows you to enable/modify pyramid settings and scale into a position over time after a trend has crossed.
Use cases : These types of strategies can reduce the volatility of returns and can help avoid large market downswings. For instance, those running a longer term trend-cross strategy may have not realized half the down swing of the bear markets or crashes in 02', 08', 20', etc. However, in other years, they may have exited the market from time to time at unfavorable points that didn't end up being a down turn, or at times the market was ranging sideways. Some also use them to reduce volatility and then add leverage to attempt to beat buy/hold of the underlying asset within an acceptable drawdown threshold.
Special thanks to @Duyck, @everget, @KivancOzbilgic and @LazyBear for coding and contributing earlier versions of some of these custom indicators in Pine.
This script incorporates all of the following indicators. Each of them can be selected and modified from within the indicator settings:
ALMA - Arnaud Legoux Moving Average
DEMA - Double Exponential Moving Average
DSMA - Deviation Scaled Moving Average - Contributed by Everget
EMA - Exponential Moving Average
HMA - Hull Moving Average
JMA - Jurik Moving Average - Contributed by Everget
KAMA - Kaufman's Adaptive Moving Average - Contributed by Everget
LSMA - Linear Regression , Least Squares Moving Average
RMA - Relative Moving Average
SMA - Simple Moving Average
SMMA - Smoothed Moving Average
Price Source - Plotted based on source selection
TEMA - Triple Exponential Moving Average
TMA - Triangular Moving Average
VAMA - Volume Adjusted Moving Average - Contributed by Duyck
VIDYA - Variable Index Dynamic Average - Contributed by KivancOzbilgic
VMA - Variable Moving Average - Contributed by LazyBear
VWMA - Volume Weighted Moving Average
WMA - Weighted Moving Average
WWMA - Welles Wilder's Moving Average
ZLEMA - Zero Lag Exponential Moving Average - Contributed by KivancOzbilgic
Disclaimer : This is not financial advice. Open-source scripts I publish in the community are largely meant to spark ideas that can be used as building blocks for part of a more robust trade management strategy. If you would like to implement a version of any script, I would recommend making significant additions/modifications to the strategy & risk management functions. If you don’t know how to program in Pine, then hire a Pine-coder. We can help!
BOLLY BandsThis is a strategy using Bollinger Bands. The strategy is predicated around having low volatility in price action and then looking to capture a move when price starts to trend outside of the Bollinger bands. This strategy has only been backtested for 1 month but it has promising results so I will be sharing it looking for feedback. I run this strategy on the ERUSD 1 min chart.