Discussing the strategy VECTORIAL DAX (M5)

Forums ProRealTime English forum ProOrder support Discussing the strategy VECTORIAL DAX (M5)

Viewing 15 posts - 601 through 615 (of 1,239 total)
  • #117112

    Ciao Francesco, I was looking through your version to see what had changed and there seems to be 2 sets of stop loss/profit code, one that you’ve added in lines 246 247, plus another system starting at line 278 based on the sl and pt variables at lines 33 34

    How does that work? Don’t they contradict each other?

    #117113

    Yes, i know.
    At the begin it was an error, the lines of sl/tp at 278 should not be there.

    But removing one of the two pair of sl/tp mess up all the system, and don’t ask me why 😀

    #117115

    Yes, I also tried taking each of them out but it only works with both, so they are definitely interacting in some beneficial way! Chi sa ???

    #117127

    I don’t have the coding skills to understand why 🙁

    Maybe i accidentally discovered a profitable secret, o forse no 😀

    #117136

    Ok, I figured it out: at line 51 you have enablept = o, so the pt variable is disabled. Target profit is controlled at line 247. But because line 50 enablesl = 1, your stop loss at line 246 is doing nothing. That’s why it seemed that both were necessary, one was doing the stoploss and the other was doing the profit.

    I changed enablept =1 and deleted lines 246, 247. Stoploss and profit are controlled by the sl and pt values at lines 33, 34 (%)

    I ran a WF test which looks healthy (positionsize = 3). Also added optional money management: select 0, 1 or 2 at line 9

    3 users thanked author for this post.
    #117351

    Hi,

     

    Trying to test the DAX v5.0 but i get the following error, can someone please guide me in the right direction?

    // EDIT

     

    Forget about this, I solved it.

     

    #117664

    Guys, talking about my version, i noticed that yesterday it opened a position, and this morning almost hit the take profit without triggering the break even function. Anyone knows why?

    #117736

    hi Francesco yes, multiple reasons. Have a look at the modifications made to the version you posted.

     

    1 user thanked author for this post.
    #117760

    You are the best Paul! Now the code looks so clean!

    1 user thanked author for this post.
    #117764

    Nice Paul

    200k

    #117785

    @Francesco btw you asked why the breakeven wasn’t triggered.

    That was because the startbreakeven was set at 90, while profittarget in points was set at 80. So it took profit before the breakeven could be triggered.

    Besides that, a stoploss of 30 points was added, but later on in the code there’s a stoploss of 2.5%. The trade could lose about 6-7 times as much points. Results with a 30 points stoploss are poor.

    1 user thanked author for this post.
    #117798

    So the code was a mess…thanks for the clarification 🙂

    #118371

    Hello,
    Result since December 10 for a contract on a demo account

    3 users thanked author for this post.
    #118389

    Is that v8 version posted on here fifi? I’ve been back to page 37 looking for it 🙁

    Wouldn’t it be great if we had a central repository with version control esp for the big Threads like this one and Pathfinder and others?

    I did have a quick 10 mins look at GitLab last night. It is possible to have free unlimited (private) repositories and unlimited collaborators.

    Maybe I’ll look some more.

    #118391

    I’ve been back to page 37 looking for it

    Why not just click on ‘View All Attachments’ at the top of the page? Obviously this won’t help if it is just posted as inserted code rather than an ITF attachment.

    1 user thanked author for this post.
Viewing 15 posts - 601 through 615 (of 1,239 total)

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