I created this forum topic for further discussion and ideas related to the Bitcoin Tripple MA Miner 1Min Stategy I posted on the Library.
Bitcoin Tripple MA Miner 1Min
If anyone can figure out how to get this strategy running again after the change in price quotes it would be greatly appreciated.
Hi 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!
DEFPARAM CumulateOrders = False // Cumulating orders not available with %stop loss
DEFPARAM FLATBEFORE = 080000 //Currently set to GMT
DEFPARAM FLATAFTER = 210000 //Currently set to GMT
FMA = Average[12,4](close) //Fast Moving Average
MMA = Average[17,4](close) //Medium Moving Average
SMA = Average[22,4](close) //Slow Moving Average
stp = 2 //Points away to place stop orders
If hour < 8 or hour > 21 then //Adjust to match Flat Before/After
possize = 0
If longonmarket then
SELL AT MARKET
ElsIf shortonmarket then
EXITSHORT AT MARKET
EndIf
Else
If ADXR[14] > 18 Then //Check for enough volatility
possize = 1
Else
possize = 0
EndIf
EndIf
If countofposition = 0 or shortonmarket and FMA > MMA and MMA > SMA Then
If shortonmarket then
If close > close[3] and close > close[5] Then
Exitshort at market
Buy possize contract at open - stp stop
EndIf
Else
Buy possize contract at open - stp stop
EndIf
ElsIf countofposition = 0 or Longonmarket and FMA < MMA and FMA < SMA Then
If longonmarket then
If close < close[3] and close < close[5] Then
Sell AT MARKET
Sellshort possize contract at open + stp stop
EndIf
Else
Sellshort possize contract at open + stp stop
EndIf
EndIf
SET STOP pLOSS 10*possiz //Stop loss set to pLOSS and multiple reduced by factor 10
SET TARGET pPROFIT 150*possize //Target set to pLOSS and multiple reduced by factor 10
Since yesterday this strategy only makes loosing profits until 0 Euro is left.
Maybe anyone find the problem in strategy or in IG´s Bitcoin.
by the way: it worked very well also in 10sec timeframe
Thanks
I have been running it for 2 days on demo and it only sees to make small losses constantly, its this the same as the results you had?
@kg6450: yes thats right.
If i change spread to 0 and positionsize from 1 to 10 i get very small profits.
Then you see the equity curve is smiliar to working one.
Hi I don’t think that this will ever work with the spread, which is generally 20 in IG – it will just constantly lose.