Machine Learning in ProOrder ProRealTime

Forums ProRealTime English forum ProOrder support Machine Learning in ProOrder ProRealTime

Viewing 15 posts - 286 through 300 (of 455 total)
  • #128113

    When I, (if I), get the Robustness Tester to be able to switch on an off

    Just a suggestion … I’ve never bothered with the on/off. I do the optimisation, add the vrt code, do the test, then strip it out again and forget about it – no longer needed. Personally, I don’t like having stuff cluttering up the code for no purpose, just in case it throws up some unintended side effect.

    #128123

    For example having used the larger Trailing Stop at 200 to max 300 and had no trouble backtesting Dow Daily 2015 to present, when I went back the smaller previous ranges (10 to 150 for both the Stop and the BoxSize) I immediately got a tbt warning.

    It’s due to below …

     

    So if – due  to settings / values for TP and SL – there are more than 2,500 instances of TP and SL being hit in the same bar then we get the warning message that tbt has reached it’s limit.

     

    #128172

    Hi Paul, cheers, not sure why I added them, probably something wasn’t working, it was during a process of trying different things, like your new rules, without While and Wend. They were originally derived from the DocTrading rules from his Pure Renko strategy. Not being a coder I wasn’t sure that the Buy / Sell Stop would be activated unless the condition had been stated first.

    Good tip for the tbt issues, thanks.

    Yes that might be a good idea because Renko ML2 didn’t perform as well as I expected, not like Ehlers Universal Oscillator ML2 that I’ve posted on this thread and which had ValueX for the Longs and ValueY for the Shorts, nor the Renko ML1 ValueX Trailing Stop. So many combinations and new discoveries to be uncovered… 😀

    #128177

    @Bard Hi, Nice job btw on the ML engine! I’ve started work on it with trying various combinations.

    Setup is a.t.m. focused on opening a trade in the lower spread timezone.

    I included the reentry when in loss on a new same signal to create more trades.

    Going nowhere a.t.m. regardless timeframe but anyway have a look 🙂

     

    edit parameter MaxIncrement2 is wrongly setup.

    edit2; removing the once or the complete line

    and still does calculations?

    #128180

    Thanks Nonetheless,

     I don’t like having stuff cluttering up the code for no purpose, just in case it throws up some unintended side effect.

    Like 5 x the profits, which is what happened when I thought it was turned off but wasn’t. Would be nice to get Vonasi’s additional on/off switch code working or otherwise I’ll probably end up settling for  VRT and non VRT versions to save time from having to delete VRT and re-add his code to just one system.

    #128182

    due  to settings / values for TP and SL – there are more than 2,500 instances of TP and SL being hit in the same bar then we get the warning message that tbt has reached it’s limit.

    Do you think that it’s possible that there are 2,500 instances of the (ML1, ValueX) Stop Loss being triggered in the same daily candle?  Btw TP in all “my” systems TP have always been set at 500, just thought.. that in itself could do with an ML code… Where does it end? 😬 Lol.

    #128189

    Do you think that it’s possible that there are 2,500 instances of the (ML1, ValueX) Stop Loss being triggered in the same daily candle?

    Only if ML1 and ValueX are variables for TP and SL as that is all the tbt is concerned with.

    PS

    Btw if you select text and then click the ‘Quote’ button then the person who you are Quotng will show up in blue (as above) as a link … then if anybody wants to go back to the post all they have to do is click on the blue link.

    Luckily (in your post above) I remembered my own comments else I would not know who you are talking to! 🙂 🙂

    #128191

    Would be nice to get Vonasi’s additional on/off switch code working

    Are you following @Vonasi 2 x instructions below??

    Maybe you are getting problems because you are following just one of the 2 x instructions??
    Just an idea anyway, as you seem to have tried everything.

    Also your strategy code may be using a variable in Vonasi VRT code and that is why you get 5 x profits with the VRT code but not without??

     

    You need to click on the blue Vonasi below and read his original post as the code (which I tried to copy for you) has come out garbled and I have to go now, sorry.

    Alternatively add something like this to your code and then you can simply turn the robustness tester on and off via one variable at the top of the code without the need to search through the code to find the right line to add or remove // from. 1 2 3 4 5 6 7 8 9 RobustnessTest = 0   (robustness test code here)   if not RobustnessTest then tradeon = 1 endif   (strategy code here)

    #128193

    Should your heuristic code work on strategies that switch position from Long to Short with no bars not onmarket ?

    Yip that is the problem. Solution;

    Replace this:

    With This:

     

    #128194

    important piece above.. Thanks to GraHal for spotting that back then!

    I have valuey at 0 at the beginning for a couple of trades which is not good.

    1 user thanked author for this post.
    #128195

    this seems a fix

     

    and change below

    same valuey

    #128196

    <p class=”p1″><span class=”s1″>Cheers, I couldn’t have done it without GraHal’s tip to use a text comparison website (to compare Juanj’s code with my often non working “exact copy” code that turned out more often than not, not to be so exact or a copy). </span></p>
    Short and Long Boxsizes: That would certainly make logical sense, have larger range boxes for strong uptrends to capture larger chunks of profit and then a smaller shorter range box for the minor corrections. Be interesting to test.

    I figured out why 1M ML2 CycLimRes v2 didn’t trade, and excuse the brutal editing of your sophisticated code, but I just had to go back step by set to first principles to see what was stopping it from trading. First cut was the stop loss – made no difference, as still no trades. Then I took out the “flat before,” still no difference, but when I took out “ctime” it took trades but not profitably and also GraphY was flat whereas Value X was being optimised. More alterations to the settings fixed it and although it’s still taking plenty of trades despite going back to some similar settings, it’s not that profitable. Putting back the stop loss code cut the nos of trades from 233 to just 14. As I said it’d be really interesting to test it more to see if the Long/Short boxsize logic works. Altering setting definitely caused some tbt warnings. Some instruments even this attached version would not trade on like Wheat or Gold.

    1 user thanked author for this post.
    #128201

    you have the same problem with valuey Bard,

    you could try this layout with both fixes

     

    #128202

    Would be nice to get Vonasi’s additional on/off switch code working

    Did you read below (click on blue link below) … Vonasi got logical results with and without his VRT code?

    returned one result that was identical to with the VRT code in the strategy but turned off.

    #128205

    I’m not sure ValueY is “broken” when it flatlines, I think it’s more to do with the settings that the code. Let me take a look at the code above.

    Meanwhile can you please check the logic of your Long/Short BoxSize idea with my very simple entry conditions in Renko ML2 v3 below because the results are good not just on the Dow and £/$ but also on other instruments. I like to think a system is robust if it’s simple and can be applied to other markets particularly when you don’t have to alter settings to adjust for volatility. Great job.

     

    Edit: What does adding once ValueX = StartingValue etc, do that it wasn’t doing before that code was added? Cheers.

     

Viewing 15 posts - 286 through 300 (of 455 total)

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