Bitcoin Tripple MA Miner 1Min Stategy
Forums › ProRealTime English forum › ProOrder support › Bitcoin Tripple MA Miner 1Min Stategy
- This topic has 7 replies, 5 voices, and was last updated 6 years ago by mrripley99.
-
-
06/05/2017 at 2:02 PM #37484
I created this forum topic for further discussion and ideas related to the Bitcoin Tripple MA Miner 1Min Stategy I posted on the Library.
https://www.prorealcode.com/prorealtime-trading-strategies/bitcoin-tripple-ma-miner-1min/
06/06/2017 at 8:49 AM #3754306/07/2017 at 12:29 PM #37743Hi Juan, I’ve been playing around with the code a bit and I’ve got it enter without exiting straight away, whether it has the same results or not we’ll have to run it and see…
The problem was that since IG reduced everything by 10 times, the previous stops and limits were way too far away and the order was rejected, also it was set to accumulate orders which I don’t think you can have with a % stop loss?
The changes I made are commented in (just the cumulate part and the stop and targets), let me know if this helps!
EDIT: Also I forgot to add I changed the times to GMT!
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647DEFPARAM CumulateOrders = False // Cumulating orders not available with %stop lossDEFPARAM FLATBEFORE = 080000 //Currently set to GMTDEFPARAM FLATAFTER = 210000 //Currently set to GMTFMA = Average[12,4](close) //Fast Moving AverageMMA = Average[17,4](close) //Medium Moving AverageSMA = Average[22,4](close) //Slow Moving Averagestp = 2 //Points away to place stop ordersIf hour < 8 or hour > 21 then //Adjust to match Flat Before/Afterpossize = 0If longonmarket thenSELL AT MARKETElsIf shortonmarket thenEXITSHORT AT MARKETEndIfElseIf ADXR[14] > 18 Then //Check for enough volatilitypossize = 1Elsepossize = 0EndIfEndIfIf countofposition = 0 or shortonmarket and FMA > MMA and MMA > SMA ThenIf shortonmarket thenIf close > close[3] and close > close[5] ThenExitshort at marketBuy possize contract at open - stp stopEndIfElseBuy possize contract at open - stp stopEndIfElsIf countofposition = 0 or Longonmarket and FMA < MMA and FMA < SMA ThenIf longonmarket thenIf close < close[3] and close < close[5] ThenSell AT MARKETSellshort possize contract at open + stp stopEndIfElseSellshort possize contract at open + stp stopEndIfEndIfSET STOP pLOSS 10*possiz //Stop loss set to pLOSS and multiple reduced by factor 10SET TARGET pPROFIT 150*possize //Target set to pLOSS and multiple reduced by factor 1006/09/2017 at 9:10 AM #3787306/09/2017 at 10:11 AM #3787506/09/2017 at 10:56 AM #3788006/09/2017 at 1:49 PM #37894- I don’t want to deter you from trying to make something work for Bitcoin. But be aware that you’re playing with an exotic instrument that has little history and a high speculative long bias. Make sure you have stops and even then don’t be surprised if you get filled at a worse than expected level. When I compare back test with live results the fills don’t always match and not as favourable. Trade safe.
11/19/2017 at 4:44 PM #53239Hi I don’t think that this will ever work with the spread, which is generally 20 in IG – it will just constantly lose.
-
AuthorPosts
Find exclusive trading pro-tools on