Prepare for automatic trading error

Forums ProRealTime English forum ProOrder support Prepare for automatic trading error

Viewing 15 posts - 1 through 15 (of 16 total)
  • #18528

    Hi guys,

    I’ve a problem with testing MGC Trend Chaser in demo. This is the code I am using:

    I’m getting the following error (see yellow triangle in pdf).

    I do not understand what to change in the code. Could someone help me?

    Thanks,

    Alco

     

    #18531
    1 user thanked author for this post.
    #18532

    @arcane,

    I think I need probuilder for that, or I don’t understand how to define them. I can not change the code for some reason.
    Is it maybe possible to give me the code where you define st?

    Kind regards,

    Alco

    #18533

    Thanks, I fixed it.

    #18534

    Good work! How is the code going inProOrder?

    #18537

    Hi Mike,

    I tested in backtest the PRT code written in my first post. I got great results each day. I only tested it day by day. I had the best results in 10 min charts. So I wanted to test it in demo and got the error. I noticed that I used the wrong code. The code without MM. So I replaced it with this code

    But with the latest code, I don’t get the results like the old code in the backtests. I will try again tomorrow.

    #18539

    Hi Mike,

    I’m testing mgc-trend-chaser-160914.itf again, I get great results in backtests for each day. But I know, before I can try it in demo, I need to optimize the supertrend variable a,b. But when I optimize the variable, like 1,4 or 2,8. Whatever I do, the results are not as good as before the optimizing. What configuration do I need, to get the same results if I optimize the supertrend for demo?

    #18543

    I think the program uses the default setting before defining variable a,b. Please correct me if im wrong.

    #18548

    I see an optimize report to define a,b. minimal and maximal value for a = 1-5  and 1-40 for b. So it is never possible to replicate the backtests because you only could choose 1 minimal and 1 maximal value?

    #18556

    Sorry but I don’t understand your problem 🙂

    Once you have found the optimised parameters that suit your needs (best results, low drawdown, etc.), you’ll have to write it directly into the code and delete the optimisation variables of the probacktest window.

    In any case, the variables values that are set into the code are priority to the ones of the optimisation variables window.

    #18557

    Ok I try to explain it again Nicolas,

    The first thing I did was testing this code

    Results where great in 5min and 10min time frames. But to use it in demo I got an error, because I didnt define:   ST= supertrend [a,b]

    After defining a and b, the results are bad. So I want to create the same results before the optimization.

     

    #24079

    Hi @Alco,

    Sorry I have been off the air since early December.

    The a and b variable are for optimising.  I suggest you set ‘a’ at 1 to 10 with 2 step and ‘b’ at 5 to 40 with 5 step for faster optimisation.  If the final results are close to either beginning or end, then adjust the variables until the result is somewhere in the middle of your beginning and end variables.

    The next problem is that you have to have the MGC-Coppock defined in your platform so it can be called from your code.  Better to substitute this for it “COI= WEIGHTEDAVERAGE[14](ROC[11] +ROC[10])”.

    Now a word of warning, both codes with and without money management are quite complex with lots of variables.  If you get a spectacular result in back-testing, it does not mean that you will get the same result in ProOrder.  You need to forward test in ProOrder in demo mode for some time to be sure the code will produce a satisfactory result when run live.

    If you read @cfta posts, you will find a good strategy for running ProOrder live.

    #24105

    Hi Alco

    I note you say … I get great results in backtests for each day … and then you say you  … results are not as good as before the optimizing? Also you provide a screen shot with good results for 1 day.

    I’m confused, but would like to help, I hope I learn something while helping. I’m sure you know … if you optimise for 1 day then those optimised values will give highest profit that day or another day exactly the same (maybe never happen.).

    Anyway, I couldn’t resist so attached is 100000 x 15M @ spread 2 on DAX with values ST = supertrend[6,25]. I’m setting it going on  Demo Forward test right now.

    Cheers
    GraHal

    Edit: Attached MGC 2 with better curve / more profit using code with the following amendments

    (Apologies Mods, Insert PRT Code  button not visible)

    IF Close CROSSES UNDER ST or RSI[14](close) < 22 THEN
    SELL AT MARKET
    ENDIF

    IF close CROSSES OVER ST or RSI[14](close) > 74 THEN
    EXITSHORT AT MARKET
    ENDIF

    #24118

    @GraHal, what is your computer screen resolution please? the button is not available below a certain proportion to avoid problem with mobile/tablet…

    1 user thanked author for this post.
    #24149

    Hi Nicolas

    Due to not wanting to wear glasses and to give large font / text size … my screen resolution is  1024 x 768.

    I can see the insert PRT button if I clear everything out as attached, but if I have loads of tabs open on other tasks then I not want to ‘clear all’ at that point.

    I just deleted ‘all cookies  associated with this PRC site’ (only) and I then had to log back in, but still the Inser PRT Code is not visible.

    Cheers
    GraHal

Viewing 15 posts - 1 through 15 (of 16 total)

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