Oil 15 minutes meanreverting strategy

Forums ProRealTime English forum ProOrder support Oil 15 minutes meanreverting strategy

Viewing 15 posts - 16 through 30 (of 49 total)
  • #48394

    I have had alot of issues when running this code. The system have stoped several times, and because of that I missed winning trades.  When I have restarted the system again the system have taken a different direction than the system is actually in. Have anyone other than me experiancede the same?

    #48811

    Tried to optimize this one for AU. Would say average results. Will not use it myself, since it requires abit to much to run for me (min 10 contracts on Swedish IG).

    1 user thanked author for this post.
    #48819

    @ozz87 It´s possible to buy 1 contract Avista Gold mini 10 oz with Swedish IG

    #48821

    Andyswede: Hm. When I check contract information it says minimum 10.

    #48824

    @andyswede: Ah, I saw now there is another contract. Cool 🙂

    #48828

    A little bit longer backtest.

    1 user thanked author for this post.
    #48832
    Abz

    Despair,  is crude oil also available for 200000 candles in premium? 

    #48833

    No it isn’t. There is infuriating little history on oil. That’s all we get for 15min.

    #48847

    I have been running the alog for a about a month now and the results are not good. The algo stops alot and I miss winning trades because of it.

    Las time it stoped I got the following message

    “This trading system was stopped due to a division by zero during the evaluation of the last candlestick. Please add protection to your code to prevent division by zero”

    I have not been able to resolve the issue yet, but I will keep looking. Let me know if any of you gus have any suggestions to how to fix it.

    #48854

    @Yngve, I’m getting the same error, and yes, the past month has not showed great results. It might ofc be from overfitting or it might just be a random slope in the algos profits. Guess we gotta keep this bad boy on demo until errors go down and profits go up 🙂

    #48869

    There’s a division by zero error which I’ve solved by using the following code:

     

    if abs(Dhigh(0)-Dlow(0)) = 0 then
    fullness = (Dclose(0)-Dopen(0))/0.000001
    else
    fullness = (Dclose(0)-Dopen(0))/abs(Dhigh(0)-Dlow(0))
    endif

     

    You could also probably just skip the evaluation when you’ve got zero division. I think the above works as well.

    #48883

    As I posted many times, this is the solution

    fullness = abs((Dclose(0)-Dopen(0))/(Dhigh(0)-Dlow(0)+0.00001)

    #49006

    @Francesco78 Thank you for the reply. I tried to change the line of code your referring to but got even worse results. So I changed it to

    fullness = (Dclose(0)-Dopen(0))/abs(Dhigh(0)-Dlow(0)+0.00001)

    What do you think about that?


    @jebus89
    Yes I’ll be running it Demo from now on for awhile

     

     

    #49060

    As I posted many times, this is the solution fullness = abs((Dclose(0)-Dopen(0))/(Dhigh(0)-Dlow(0)+0.00001)

    It’s solution, I prefer something which can’t yield division by zero. I don’t think it’s likely to create any weird results either.

    I bet your solution works too with the underlying primitives, altough without the exact knowledge of how they work it still looks like possibly erroneous code.

    #49061

    As I posted many times, this is the solution fullness = abs((Dclose(0)-Dopen(0))/(Dhigh(0)-Dlow(0)+0.00001)

    It’s a solution, I prefer something which can’t yield division by zero. I don’t think it’s likely to create any weird results either. I bet your solution works too with the underlying primitives, altough without the exact knowledge of how they work it still looks like possibly erroneous code.

    abs((Dclose(0)-Dopen(0))/(Dhigh(0)-Dlow(0)+0.00001) cant yield to a division by zero as High -Low is bounded to zero, so high +low + 0,0000001 is strictly positive

    2 users thanked author for this post.
Viewing 15 posts - 16 through 30 (of 49 total)

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