Bitcoin Tripple MA Miner 1Min

Bitcoin Tripple MA Miner 1Min

Good Day

So a about a week ago I got the idea to code a strategy to exclusively trade XBTUSD (Bitcoin). The idea was to write an algorithm that will keep up with the tremendous bullish momentum of the price while reducing drawdown compared to a buy and hold strategy, but at the same time to be ready to short the hell out of it when things start going south! So yesterday I finally got to see it in action as we saw a minor crash and the result was simply glorious!

The strategy is actually quite simple as it is primarily based around 3 moving averages (5 minutes apart) along with a ADX check for volatility.

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

  1. Maz • 05/27/2017 #

    …and where are you getting a 20 point spread?

    • Nicolas • 05/27/2017 #

      Just realize there is an huge spread on Bitcoin: https://www.ig.com/en/markets/bitcoin/costs-and-details
      Let’s see what juanj will answer to the question! 🙂

  2. Francesco78 • 05/27/2017 #

    Looks like his quotes are  in thousands instead then hundredsthousands.. so spread of 20 might make sense

  3. Maz • 05/27/2017 #

    At this time trading BTC/crosses via leveraged spread betting or CFD derivatives is very expensive to the directional trader. This is due to the huge counter-party risk that is posed to risk-averse brokers. They offset this risk (and the huge volatility) by offering massive spreads. On the other hand they are giving you leveraged liquidity (100x and more) on BTC, 24 hours a day – so its their privilege to quote you whatever spread they like.  With the offer of 7 figure accounts I found it hard to convince certain brokerages otherwise – plus they were unwilling to provide us with the liquidity we were asking for. The CFD and SB offerings are really just for buy and holders. The way we trade bitcoin is directly with the exchanges around the world – you get tiny spreads now – but market depth can be an issue at certain times of day. The system needs more market makers, more liquidity. If investment banks jump on board and if we see ETFs, spreads may come down in retail shops. 

  4. juanj • 05/27/2017 #

    Interestingly I noticed that the spread usually quotes as 10 and lately sometimes as 20, probably due to the reasons Maz so eloquently explained. Funny thing is I just ran the code this morning and my result now looks different compared to when I posted the strategy. It is still equally as profitable and even made a bucket load of money in the last trading session but it didn’t open any trades during the first correction as can be seen in the screenshot I made. It did open trades during the latest ones which is good. Overall I find this strategy quite enjoyable seeing it is literally raking in money in every session (albeit I have to admit I am not trading it Live). The pure size of the XBTUSD contracts makes it rather dangerous to a mere mortal account size such as my own. Price jumps amounting to around $1000 in a matter of minutes is a bit too exuberant for me.  Although It still brings me joy to watch it trade my paper account of $100k

  5. Francesco78 • 05/27/2017 #

     Ah I thought you meant 20 is too small as a spread for Bitcoin, I traded them since last agoust, I can confirm the spread is most of the time 10, but in the recent explosion of cryptocurrency prices it was very often 20 ans sometime even 40. IG uk decided that from next week the price quotes will be divided by a factor 100 as the pricese increases by 100% in a couple of weeks.

  6. juanj • 05/27/2017 #

    That is exciting news. If they offer smaller contracts I will most likely start trading the strategy live. See that it again performed very well in the latest trading sessions!

  7. Francesco78 • 05/27/2017 #

    that is the message from IG

    Due to the rise in bitcoin’s price over the past year, we are changing the way we quote the price for this market to make it easier to trade.From Saturday 3 June, we’ll be quoting bitcoin in a larger currency domination. So if you deal in USD, instead of quoting bitcoin in cents (ie a six-digit number) we will be quoting in dollars (a four-digit number).So for example, instead of seeing 267038, you’ll see 2670.38.

    What does this mean for bitcoin positions?

    If you have any open spread bets or working orders on bitcoin at close of business on Friday 2 June, the next time you log in you’ll see the following changes: • The market price will have been downscaled by a factor of 100• Your position size will have been upscaled by a factor of 100. So £1.50/point of bitcoin at 267038, will change to £150/point of bitcoin at 2670.38. Your overall exposure will remain exactly the same as it is now. The market will reopen for trading at 8am on Sunday as normal.

  8. juanj • 05/27/2017 #

    That is unfortunate. As exposure wise even the ‘mini’ contract aren’t really so mini.
    So if  I understand correctly the only difference for us would be that the spread would now technically be 0.2 instead of 20?

  9. Francesco78 • 05/27/2017 #

    if the bitcoins are quoted in hundreds of thousand, asthey are now in ig uk,  the spread is 2000, if they are quoted in thousands like in your code the spread is 20.

  10. Jesús • 05/27/2017 #

    Good Morning,The strategy seems very interesting, thanks Juanj for sharing it. But unless I’m wrong, I think the results of the backtest do not correspond to reality. This morning I put it to work demo account and there is a very big difference in the results with the backtest.Regards

  11. juanj • 05/27/2017 #

    Hi Jesus, I suspect your time periods could possibly be wrong. What is your timezone and what parameters did you use?
    I have very good positive results for the last 7 sessions (including today). See screenshot below:

  12. juanj • 05/27/2017 #

    Hmmm… okay so since they changed the quoted price of bitcoin (previous price x 0.01) my strategy no longer seem to open any new trades. Strange thing is that backtesting still opens the same trades up until yesterday. Does anybody know why this would be?

  13. Jesús • 05/27/2017 #

    Hi juanj, thanks for your answer. My demo parameters are 1 minute timeframe and the current time zone in PRT is UCT + 2 Europe / Madrid, which I think corresponds to GMT + 2.

  14. juanj • 05/27/2017 #

    Can you provide a screenshot maybe?

  15. Jesús • 05/27/2017 #

    Yes, of course, but I do not know why when I try to upload an image it gives me an error and the web tells me that I am not allowed to add images to this post.

  16. juanj • 05/27/2017 #

    Hello All, so out of curiosity I opened my strategy again today and it appears to have started working again. And on top of that it has not had a loosing day since I posted it here.@Nicolas could we possibly open a thread on the forum where we can discuss this further?

    • Andyswede • 05/27/2017 #

      Hi, do you use the 100$*possize stoploss as in the itf file? I tried it and it triggered stop loss immediately at buy or sale due to the high spread, with more stoploss I couldn´t get it profitable.
      Best, Andy

    • Nicolas • 05/27/2017 #

      You can open it yourself and share the link here of course. Thanks.

  17. juanj • 05/27/2017 #

    For further discussion please add your comments here: https://www.prorealcode.com/topic/bitcoin-tripple-ma-miner-1min-stategy/

  18. juanj • 05/27/2017 #

    @Andy yes I use it exactly as found in the itf file. Note that my possize is 1 contract of the bitcoin XBTUSD Mini. Maybe try increasing your starting capital, these contracts are huge.

  19. juanj • 05/27/2017 #

    Okay so today the strategy again immediately stops out. Since IG changed the bitcoin quote prices it messed up everything.

  20. IGOSNELL • 05/27/2017 #

     Hi
    I cannot get it to work on IG every position taken is a loss and only longs. Any ideas?
     

    • juanj • 05/27/2017 #

      @OGOSNELL, IG recently changed their quote prices for Bitcoin and this caused the strategy to stop working. I used to use a spread of 10 or 20 pips that worked fine before. However now only a spread of 1 or 2 works. 

  21. juanj • 05/27/2017 #

    Okay, so I revisited this strategy today and it appears to have started working again on the Bitcoin USD (1) instrument.
    I literally haven’t touched the code in more than 6 months and the result I am getting on the 1Hr Timeframe with a spread of 10 is very interesting especially from December.

  22. Bobbi • 05/27/2017 #

    Bonjour et merci pour votre partage !

    J’ai constaté qu’en 1 seconde, on avait quelque chose de très bon ! Mais pas dans le bon sens du marché… est-il possible de retourner les achats/ventes pour rendre les ordres positifs ?

    Merci d’avance

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
emism12 Looks great, personally I don't use automated trading for single stocks, but is definitely o...
adconsulting Ciao, I look that the strategy (backtest 50 k), works very good wiht US 500 CASH 1 EURO in...
Kev Monaghan The equity curve looks to follow the stock price almost perfectly, Have you tested on stock ...
cdc.andersson Hello, I´m trying to paste the code and start testing but can´t get it to work in PRT. Shoul...
Lupo32 Thank You Aaron
superfalcio I'm having no more issue on the new Prorealtime release 11.1
Jigsaw20000 Bonjour, Je voudrais mettre le liens du code en format .itf mais je n'y arrive pas , quelqu'...
Corto78 Il faut aller dans la liste des ProBacktest & Trading Automatique (là ou tu as créer ton...
Malloc Bonjour, Votre système a l'air intéressant et prometteur mais en l'état il est inutilisable...
juanj
3 years ago
herke036 For the question how to fill the variables a,b,c,d,e,f,g, x and y? a,b,c,d,e,f,g is selecti...
herke036 In your code I see If onmarket = 0 and Type22 = 1 and hora1 and hora2 Then If InsideBar[1]...
UkDownUnder How do we apply this to a strategy we have made, Thanks
superfalcio Hello, on the 2h timeframe I got a better performance in terms of win% and profit factor. I ...
Jiankyr82 Juan thanks for sharing, I had played with it few days, as also try to catch up on my pro-re...
Lespa212 Hi Samsampop, are you using this strategy? did you add a SL and an exit in case of a trend ...
imonix Have been trying this on demo since Monday before deciding whether to go live with it. Using...
Roberto Blázquez I'm sorry, I've tried it since November 2012 and it's bad results.
Doctrading
4 years ago
Stanko Ciao doctrading, grazie per il tuo contributo. Volevo chiederti se hai tenuto in osservazion...
Stanko Buongiorno doctradinge buongiorno a tutti. Vorrei riportare all'attenzione questo sistema p...
Meta Signals Pro Hi, Yes I am monitoring all the strategies posted on this site and I confirm that the strat...
Pierreco1991 Hello Can you confirm this configuration for FRANCE ? //Time in UTC+8 Rest0Minutes =...
Godo Bonjour Souhait Sam, Après de nombreux essais pour le mettre en format afin d'utiliser ce c...
Nicolas Il faut supprimer celles qui existent dans la fenêtre d'optimisation et les créer en dur dan...
crusoe76 hi there, anyone can help making this strategy work, i have a message saying replace variabl...
frenqle Hi There.. It seems the TSL stop loss is not working.. it does not respond is that correct?
Ciccarelli Franco Per lasciare che la strategia venga eseguita (dopo aver importato il file): Basta eliminare...
JADINVEST Hello Jan, hello everyone, Thanks Jan for this strategy! Since 2020, have any of you found a...
FXmike hey my friends, thank you for this great code. my problem is he make no trade open. backtest...
FXmike Can i put a Action that my start contract is smaller than 1 ? 0.3 or 0.5 ? In wich Position...
phoentzs I wrote the code for M15 back then and also variants in H1 and M1. Everything works so far....
Jan Wind Thanks for sharing ! The Gain/Loss ratio is a bit low, 1,16, hardly offset the risks take...
drive whats the period ?
Lucas0000 Hola. estoy buscando un programador en proorder, para hacer un programa basado en el Q-trend...
Ludwig Bonjour Merci pour le code, je souhaite intégrer un break even et mette en place un réinves...
superfalcio hello, this strategy is pretty interesting, anyway on index after diferent suggestion and im...
Fralex Hello everyone I optimized the original “LongOnly-DAX-4H-TMA-Channel” algorithm over a pe...
YvesRobert @robertogozzi. It's done. Thank you
YvesRobert Hello Roberto, some questions about your strategy. 1 - Do the 2 lines SET TARGET pPROFIT T...
robertogozzi 1. The 2 lines SET TARGET pPROFIT TP and SET STOP pLOSS SL are always executed, each bar. Bu...
avatar
Anonymous Hi robertogozzi - thank you very much for sharing this strategy. I have performed various ...
robertogozzi Thank you samsampop.
Dotan Hello guys I really appreciate this coding effort but can I use this code for Mt5 Forex Trad...
Gubben So far so good. After a long drawdown it was winning four times in five weeks. Since 24 jul...
pat95162 Salut Pourquoi je n'ai pas les même résultats que vous
UkCoopDownUnder Any hints for us, on which variables we should be optimising ? As of November 2020, the cu...
murre87 No Stoploss?
bousalahane Hi Rajesh Deshpande, Thank you for this code, I see that the code is perfect, but the posit...
Bibi83 Bonsoir à tous Je viens de backtest la stategie sur EUR/USD en graphique 1H sur 1 mois et ...
Peter I recognized a possible problem with the timeframe / Defparam variables. As far as I know, t...
superfalcio Hello Peter, it is long time i have been watching this strategy, very good and interesting ...
Peter I indeed do have different modified strategies in the market. In the past my variants perfor...
JJ Tec Hola. Me gustaría contactar contigo para ver la estrategia..
nilsla1981 Has someone already tested in real ?
Lucas0000 Hola. estoy buscando un programador en proorder, para hacer un programa basado en el Q-trend...
Alberto Aguilera Hi! Thanks for your strategy Anyone can check it with 200 bars?
TempusFugit Hi, this simple system for DOW and only shorts has worked quite well, maybe because of its q...
phoentzs Unfortunately, I never pursued this strategy further. Maybe I should take a look with what ...

Top