Cari dalam skrip untuk "bot"
Dompeet Pompeet (Breakout bot)Dompeet Pompeet is my first attempt at a viable swingtrading algo.
It uses volatility and some trend analysis to enter trade when the market is about to breakout or break down. Having a trailing stop locks in profits and prevents runaway losses for low drawdown and 2:1 profit factor.
Settings to use:
BTCUSD or XBTUSD
4hr Timeframe or 2hr or 1hr (not shorter)
Bars window: 13, 16 or 20 bars
Moving average settings: 100/10 EMA to confirm trend
Trade the Trend - check on to only take trades long in a confirmed uptrend (vice versa short), otherwise it will attempt to buy and sell counter trend, which increases profits but also increases loss rate.
Trailing stop, values from 2-5% give the best results.
Take with a pinch of salt, there are some bugs in pine script which are difficult to track down but overall I'm pleased with the idea.
ONLY LONG V4 v1this is based on
I just change the way to find lows as the strategy based on exit by % and pyramiding
if you will play with % you will see that higher % exit like in this example of 20% make it to gain more profit (mainly due to pyramiding in the strategy )
in realistic strategy you will exit by much lower % out unless you are bot:)
to convert it to study with alerts just remove the strategy part (like in the original study of XAVI)
ck - CryptoSniper (Strategy) v2.1This strategy is radically different to the v1 script previously released.
It has ***NO REPAINTING*** - as such the algorithm had to change to remove it’s reliance on HMAs from future timeframes to establish trend, this is now accomplished with EMAs.
It is completely written in Pinescript v4.
It has integrated Stoploss and you can plot this & with the recommended Entry on the chart.
WARNING - This strategy has to be “tuned” to the instrument you are trading, for example, Bitcoin. The default settings work well for BTC/USD, XBT/USD on 15m chart timeframe but not for ETH/USD - it is possible the default settings will work with other crypto’s but I haven’t had time to test - if you find good settings PLEASE share them!
How to use:
1) Load up your favourite chart/instrument and select your favourite timeframe
2) Adjust the “signal” EMA and “baseline” EMA settings until you get the majority of uptrending moves highlighted with a green background and the majority of downtrending moves with a red background. The signal has to be faster (that is a lower number) than the baseline.
3) Adjust the “Sensitivity” - this will plot more green & orange Trigger points on the chart.
The strategy waits until in a trend, for example, a Long (green background) then waits for first green cross before opening a deal. It will Trigger a sell if the background turns red (downtrend) and a orange cross is printed.
4) Fine tuning:
A) Increase your profits by changing the Stoploss value - getting this right protects you from bad trades but also resets the indicator to provide another alert faster
B) You can increase the delay positions are opened or closed with the “Bar(s) offset to open position” and “Bar(s) offset to close position” settings. When you adjust these, 0 will buy/sell immediately when a Trigger cross is printed, 2 will wait until 2 bars/candles AFTER the Trigger cross prints to strat/close a position.
TIP: When adjusting indicator settings, load your chart and timeframe first.
Add the indicator/strategy (if you haven’t already).
Click the Strategy Tester tab at the bottom of the chart window so it is visible.
Open the strategy/indicator settings so you can see this wind AND the Strategy Tester display
Change a setting and click into a different setting input box, this will update the test results WITHOUT closing the settings window! This will save you a lot of time!
Write down any OK settings you find, you can come back later to fine tune them!
Please provide any feedback & let’s share the best settings for different crypto’s!
NOT-ONLY-LONG V4 [Backtest]Este Script es la segunda parte del anterior. Es para Longs y también para Shorts, es un poco conservador, y es para un trading tipo swing trading y se puede utilizar en modo manual también. No necesitas conectarlo a un bot para trading automático, o sí, como quieras. Pero, solo con crear las alertas que te avisen al móvil, tú mismo podrás poner la orden. Quizá es un poco aburrido. Pero alguien dijo: “La Bolsa está diseñada para transferir el dinero de los impacientes a los pacientes”. -Warren Buffett.
Utiliza RMI+ADX+RSI, y para la tendencia principal el famoso Ichimoku que yo mismo pensaba que no servía para nada, pero míralo que bien funciona con ETH.
Le he tenido que poner la función security() solo para Ichimoku. Se puede utilizar, pero hay que saber tomar algunas medidas para que no repinte o para que el backtest sea real, como por ejemplo:
indexHighTF = barstate.isrealtime ? 1 : 0
indexCurrTF = barstate.isrealtime ? 0 : 1
a0 = security(tickerid, 'D', close , lookahead=barmerge.lookahead_off)
a = a0
www.tradingview.com
Este script es como el mundo al revés, cuando sube el precio y ve la oportunidad empieza a crear shorts y lo mismo creando longs cuando baja el precio. Puede ser muy efectivo ya que recordando a Warren Buffett otra vez: “La razón más tonta del mundo para comprar una acción es que esté subiendo.”
Sale de la posición solo con Take Profit.
No tiene Stop Loss, en su lugar, cuando llega a un % de pérdida establecida, hace una re-entrada.
Pienso que los Stops Loss solo sirven para que te liquiden la posición los propios Exchanges con sus movimientos de 5-20% a la contra así que fuera el puto SL!! 😉.
Este mundo está inventado para que pierdas dinero, no es fácil hacerse rico y menos con un script, pero tampoco es imposible, quien sabe, a lo mejor sí o por lo menos un extra.
Está más o menos ajustado para mi cripto favorita: ETH en BITMEX y seguro que hay un ajuste mucho mejor.
Timeframes que parece que va bien: ETH 1 H
Tenía ganas de desahogarme aquí un poco en mi idioma, el inglés lo tengo un poco verde. 😊
Saludos desde Barcelona…
Gracias...
BTC: 3LEUP3WjQctdbFjBavcmRGUVRBje8bptCd
BCH: qrv6j7mpxjzzs9dudfag3glu278suchdhg7c44pa37
ETH: 0x518AAD4746912ae506c82B747488306186c4d546
ETC: 0xa2498D7AcB9303aa10F14ff27C54AAc4cE5d5705
ZRX: 0x29aC9BaC10818C30055b25A8E90dd11488Ae6df8
BAT: 0x115f3F9D1c3fC248e73644a72d77A062D3CB28Ba
ck - CryptoSniper Longs Only (Strategy) v1Hey all,
This is a new script I have been working on and is in Beta testing stage.
It is best used for scalping 1/3/5/10/15 minutes.
Default settings are great for scalping, changing the “Period” will allow you to tweak for swing trades.
To use manually, you will get a Green triangle to alert you to be prepared to place an order.
This will happen 1 candle before the strategy paints an “open long” label on the chart.
3PDivLong
Test 2 : 27 June - 11 July 2019
- 5 m chart (best profit)
- 0.075% commission (Bitmex)
- leverage 1x
kiska clouds backtest editionkiska clouds: crypto twitter's next cloud meme
Crypto is a fast-paced, highly-volatile asset, therefore, many traditional strategies are thrown out of the window when applied to cryptocurrency markets. In trading, there are only two things known for sure: price and volume . Price and volume data is then manipulated using various math equations in an effort to discover patterns and/or make predictions. kiska clouds are no different.
The kiska clouds are a simple crossover strategy. The clouds are different because of the unique averages being used and the embedded momentum indicator .
To use the clouds is simple:
When the green line crosses above the pink line, you buy/long.
When the green line crosses below the pink line, you sell/short.
The clouds are indicative of the trend's momentum. Using the power of math, the larger the cloud indicates a higher amount of buying/selling pressure. As the cloud thins, momentum is slowing, and the trend may be reversing.
At the time of testing, the strategy had a profitability of 54.55% accuracy with 1133.41% net profit. While I think this could be automated into a bot, adding a human element with stop losses and further analysis will significantly improve the accuracy/profitability.
This indicator is the backtest version of the kiska clouds (). For a trial or to purchase this indicator, send me a message on Twitter @moonkiska or here on TradingView. You will be granted a 2-3 day trial period to the backtesting strategy.
1 MIN BTC EXPERIMENTAL V1 - PhilMEXThis script is intented to work only on 1 minute chart.
It gives very clear signals for buy or sell and has no repainting.
Unfortunatelly I can only test it with the 7 last day due to limit for backtesting.
Do you know guys how can I extend this backtesting time period?
Please use it very carrefully. I'm not responsible for your loss.
If you want updates or more indicators like this one please give me a thumbs up ;)
Super Simple Martingale BuyingA bot that buys below the configured averages and then averages down every few %. The position size is calculated automatically by the maximum open orders you set.
MH1) There is no "security (tickerid, 'D', close)", which has "Blue Sky day 90%", "Vdub" and etc
2) The tested values which you can see below were without "Pyramiding"
Rock1) There is no "security (tickerid, 'D', close)", which has "Blue Sky day 90%", "Vdub" and etc
2) The tested values which you can see below were without "Pyramiding"
E21) There is no "security (tickerid, 'D', close)", which has "Blue Sky day 90%", "Vdub" and etc
2) The tested values which you can see below were without "Pyramiding"
TrendMaster Gold, v. 6.2xTrendMaster Gold
The ultimate refinement of last year’s TrendMaster system, TrendMaster Gold takes deep pattern recognition to a new level tracking over 20 indicators triggering seven decision gates to trade in a Renko-smoothed charting environment. Optimized for higher returns over a wider range of instruments (see returns below), you are invited to trial this market-mirroring engine. Subscribers receive full breakdown for fine-tuning results to their market favorites while avoiding bot traps. Reach out by message to get your free trial. We are always available for questions, comments, and suggestions. There’s always room for improvement.
Results Chart
The backtests below show 1-year returns against a Buy and Hold (B+H) approach for 40 of the world’s top traded instruments (as measured by price volume or similar indicator). The TrendMaster system was run on the top 10 instruments in each of four major markets: Equities, ETFs, Cryptocurrencies, and Forex. All tests were on a 30min chart, set to Renko “Traditional” blocks (because TradingView does not support realtime alerts from ATR-based charts). Block size was set proportionately to price to give the instrument positive results, but there was no “cherry-picking”. (In fact, changing time frames would have produced even better returns in some cases, but it seemed best to use a consistent measure.) Subscribers to the system receive a full, step-by-step breakdown on how to customize the parameters to get the best from their favorite markets.
(For each instrument, you see listed its Symbol (name), Profit % (annual return using TrendMaster Gold), Winning Trade % (being “right”), ProfitFactor (Ratio of money won to money lost), Max Draw Down % (point of worst % loss during the year), and B+H (how much the asset would have returned with no trades, via "buy-and-hold" )...)
TrendMaster Gold
Settings: 30 min, Traditional Renko box, over 1 year (June 1, 2018 - June 1, 2019)
EQUITIES
Symbol Profit % Trade % PF Max DrDn B + H
AMZN 2,212 62 6.6 3 7
AAPL 158 49 3.7 5 5
TSLA 8,263 57 5 6 -38
FB 179 47 3 8 -7
BABA 247 56 3.4 9 -23
BYND 348 67 17.9 6 140
MSFT 224 58 6.8 3 28
AMD 171 50 2.6 13 0
NFLX 2,132 55 5.2 11 -5
BA 560 54 4.9 3 97
ETFs
Symbol Profit % Trade % PF Max DrDn B + H
SPY 275 64 5.5 3 4
QQQ 865 62 6.1 3 5
EEM 278 60 5.3 2 0
IWM 783 61 6.1 2 -3
HYG 21 51 2.7 1 0.5
EWZ 798 58 5.6 5 26
LQD 12 54 2 1 6
EFA 121 61 4.5 2 -7
FXI 391 63 5.4 3 -15
XLF 200 58 3.4 5 -3
CRYPTOCURRENCIES
Symbol Profit % Trade % PF Max DrDn B + H
BTC/USD 3 million 55 4.7 8 -8
ETH/USD 2 million 52 4.9 21 -54
XRP/USD 6 million 52 4 13 -16.6
LTC/USD 222,000 54 3 13 13
BCH/USD 380,000 54 4.6 28 -5
EOS/USD 147,000 55 2.7 20 13
BNB/USDT 2 million 54 4.4 14 143
BSV/USD 334,000 65 18 5 -8
XLM/USD 34 million 51 2.8 12 34
ADA/USD 48,000 64 7 6 3
FOREX PAIRS
Symbol Profit % Trade % PF Max DrDn B + H
EUR/USD 13 41 1.3 5 -4
USD/JPY 3 37 1.1 4 -1
AUD/USD 24 43 1.4 4 10
USD/CAD 20 43 1.7 4 3
GBP/USD 36 46 1.8 2 -5
NZD/USD 21 47 1.6 2 -6
GBP/JPY 40 42 1.6 2 -6
EUR/JPY 18 54 3.2 2 -5
AUD/JPY 47 44 1.8 5 -10
EUR/GBP 17 46 1.7 4 0.1
3PDivLong
Test 2 : 31 May - 14 June 2019
- 5 m chart (best profit)
- 0.075% commission (Bitmex)
- max intraday loss = 5%
- leverage 1x
3PDivLong
Test: 15-30 May 2019
- 5 m chart (best profit)
- 0.075% commission (Bitmex)
- max intraday loss = 5%
Cyatophilum PSAR Bot Trader V2 [BACKTEST]A strategy built upon Parabolic Stop And Reverse.
This new version includes my whole Trend Detector / Stop Loss / Takeprofit / Trailing System.
APEX - Swing Aura StrategyA backtester of my new strat, it's a hybrid swing/scalp strat that really looks for quick low profits. Will keep it hidden as it's a bit of a work in progress right now. Working on it to perform well enough with the Apex Trading bot, ran it for a day now and it ended the day on a 1.78% portfolio profit, so I'm really pleased with that.
As for details it's based on Keltner Channels, Bolingers Bands and a Ichimoku cloud. To spice it up there's even a Wave trend in there as well!
All the settings for the bits and parts are changeable so feel free to mess around with them, but will keep my sell triggers fixed for now, so no editing of those from within the script unfortunately.
Enjoy!