Bitcoin Tripple MA Miner 1Min Stategy

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #37484 quote
    juanj
    Participant
    Master

    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

    #37543 quote
    juanj
    Participant
    Master

    If anyone can figure out how to get this strategy running again after the change in price quotes it would be greatly appreciated.

    #37743 quote
    kg6450
    Participant
    Average

    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
    
    #37873 quote
    dotdot
    Participant
    Veteran

    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

    #37875 quote
    kg6450
    Participant
    Average

    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?

    #37880 quote
    dotdot
    Participant
    Veteran

    @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.

    #37894 quote
    David
    Participant
    Veteran
    1. 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.
    #53239 quote
    mrripley99
    Participant
    Average

    Hi I don’t think that this will ever work with the spread, which is generally 20 in IG – it will just constantly lose.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.

Bitcoin Tripple MA Miner 1Min Stategy


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
juanj @juanj Participant
Summary

This topic contains 7 replies,
has 5 voices, and was last updated by mrripley99
8 years, 3 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 06/05/2017
Status: Active
Attachments: No files
Logo Logo
Loading...