Drake Delay Stochastic

Forums ProRealTime English forum ProBuilder support Drake Delay Stochastic

Viewing 10 posts - 1 through 10 (of 10 total)
  • #66732

    Hi guys,
    I know this indicator does repaint, but I need it in PRT to apply a very proficient strategy I already use in FX with MT4.
    It is a stochastic used to trace tops and bottom.
    I will discuss this strategy in a new post as soon I can try it.

    #66734

    here is the mq4

    #66739

    I moved your thread to the English Probuilder support, since you wrote your posts in English.

    For conversions, please follows these rules https://www.prorealcode.com/topic/free-conversion-mt4-indicators-mql4/

    Thank you.

    #66763

    You already asked for this conversion in another topic: https://www.prorealcode.com/topic/drake-delayed-stocastic-da-mq4-a-prt/

    I told you that it is not possible, you’ll never get the same curves on your chart. This is what you’ll get when non repainting:

    drake-stochastic-non-repaiting

    this is the code:

     

    #66816

    Thank you very much Nicolas, I will compare the result with the MT4 version and see if results are what I am looking for.

     

    Anyway, I found another version without repainting  (words of author), would you mind to give it a look?

     

    Thanks again

    #137445

    Hello,

    I am new to coding with PRT. I used the above code as an indicator on my chart and all was good. I then created an automated strategy what didnt do what I thought. The explanation I think maybe that the above code is delayed, or repaints. Although I thought this is unlikely on the PRT platform. I am at a bit of a loss as to what is happening. Not really sure how to go about debugging it. For instance, in the above code that returns mavalue and mavalue3. Lets say we want to code a simple crossover strategy. In the backtest I believe the two values mavalue and mavalue3 are always zero, and so no trades happen.

    On a totally different track. I still have not got my head around having my code automatically saved. I have lost my code about 20 times in last two weeks. I now always copy to a notepad. I have also exported and when I name it to save I added a “-1”. For instance, “My Strategy v1.itf” becomes “My Strategy v1-1.itf”. It exports fine, but when I go to import the “-1” suffixed version it says “My Strategy v1.itf” already exists. It is like it just does not register the “-1” as part of the name. Very confusing to me.

    Other than that I am enjoying the speed at which I can test ideas but a major limitation is only having 10000 bars at my disposal. If my strategy is on small timeframes such as 1 or 2 minutes then this equates to only about a couple of weeks of testing, if that. Ideally I would love to be able to test my strategy over at least one or two years of M1 or M2 data. Guessing this is not possible.

    Regards,

    Roy

    #137457

    The above code does not repaint. You should be able to get correctly the 2 curves data in order to trigger orders with them.

    FYI, PRT v11 allow backtesting with up to 1 million bars.

    #137611

    Thanks Nicholas.  I will have to take another look at what is going on. Unfortunately my broker, IG, is still on version 10.3 of PRT. Hoping within the next 18 months they will offer version 11.

    #137837

    Hi Nicholas,
    I have used the code above and just added a simple buy if mavalue above mavalue2, and sell if opposite. This is just to test whether the value is doing anything. No trades are taken which would indicate to me that the values are always equal, and in this case, zero. If that is the case, then the code is repainting….unless I am making some “newbie” mistake.

    #137838
Viewing 10 posts - 1 through 10 (of 10 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login