Discussing the strategy VECTORIAL DAX (M5)

Viewing 15 posts - 1,201 through 1,215 (of 1,264 total)
  • Author
    Posts
  • #170961 quote
    murre87
    Participant
    Senior

    I never got DJ 3 min Vectorial V11.1 going:

    Maybe there is something wrong withe timezone? Help pls

    DJ3.jpg DJ3.jpg
    #170973 quote
    nonetheless
    Participant
    Master

    what do you mean that you can’t get it going? it doesn’t open any trades? or you get an error message?

    time setting should be correct for Sverige.

    murre87 thanked this post
    #170976 quote
    murre87
    Participant
    Senior

    what do you mean that you can’t get it going? it doesn’t open any trades? or you get an error message?

    time setting should be correct for Sverige.

    No trades since start 25/5

    Gubben thanked this post
    DJ31.jpg DJ31.jpg DJ32.jpg DJ32.jpg
    #170980 quote
    nonetheless
    Participant
    Master

    that’s only 1 week so the conditions probably haven’t occurred yet. do any trades show in backtest for that period?

    murre87 thanked this post
    #170992 quote
    murre87
    Participant
    Senior

    yes backtrade says trades.
    what does the relationship between these 2 pictures look?

    1.jpg 1.jpg 2.jpg 2.jpg
    #170998 quote
    nonetheless
    Participant
    Master

    In the Max Positions box (2nd pic) you can put anything you want, it’s up to you.

    The maxpositionsize in the Money Management refers to the IG tier2 margin limit, after which the margin requirement is much higher. But you’d be a millionaire by the time it got that high so you probably wouldn’t worry too much.

    The settings you have there are actually all mixed up; tier1 / tier2 max for the DJ should be 55 / 550 (not that it matters).

    The minimum positionsize for the DJ is supposedly 0.2 but recently (in Demo) I got error messages saying the minimum was 1 – not sure if that has changed or just a glitch.

    #171785 quote
    palettofix
    Participant
    Junior

    There is an error in the V11.1.

    Line 158

    startBreakeven = tradeprice(1)*(breakevenpercent/100)

    should be changed to

    startBreakeven = close * (breakevenpercent/100)

     

    The problem is that the last trade is used  to calculate the value of startBreakeven. If there is no previous trade at the start of the program the value is 0.

    close should be a good replacement for calculation of the stop parameters.

    VinzentVega thanked this post
    #171819 quote
    nonetheless
    Participant
    Master

    I’ve used that Breakeven code in lots of algos, never had a problem with it. It’s a variation on a code by Nicolas, this is the original:

    https://www.prorealcode.com/blog/learning/breakeven-code-automated-trading-strategy/

    Have you tested it with

    startBreakeven = close * (breakevenpercent/100)  ?

    Seems to me that you could only reach startBreakeven if it happened in 1 candle – otherwise it will start a new measurement from each new close.

    #171821 quote
    palettofix
    Participant
    Junior
     

    The original code uses a fixed value and does not calculate the value from any price.

    After looking closer at the code I agree that the code is correct, the value is only used when tradeprice(1) is not 0 and the startBreakeven value is calculated for every candle. I tested the code and it did work. startBreakeven is used as the minimum difference between close and tradeprice(1), in v11.1 0.26% is used. (88 points for dow 34000)  
    //test if the price have moved favourably of "startBreakeven" points already
    IF LONGONMARKET AND close-tradeprice(1)>=startBreakeven THEN
    //calculate the breakevenLevel
    breakevenLevel = tradeprice(1)+PointsToKeep
    ENDIF
    In a different program a similar stop parameter calculation was inside an IF NOT ONMARKET, and the first trade was wrong. That is why I check all programs for that problem.
    #172954 quote
    LaurentBZH35
    Participant
    Average
    Hello everybody,   I would like to know if every body tried a vectorial strategy on NAS ?
    #172964 quote
    robertogozzi
    Moderator
    Master
    @LaurentBZH35 Do not double post. Ask your question only once and only in one forum. All double posts will be deleted anyway so posting the same question multiple times will just be wasting your own time and will not get you an answer any quicker. Double posting just creates confusion in the forums. Thank you 🙂 You are already in a discussion about VECTORIAL strategy, there’s no need to open a new one to scatter info and making it more difficult to retrieve. See pic to know how you can find attachments concerning NASDAQ.
    x-1.jpg x-1.jpg
    #172982 quote
    VinzentVega
    Participant
    Veteran
    It is better not to backtest the entire period, but to not include at least 3 to 4 of the last months in the backtest. Otherwise, it is impossible to determine whether the system works in real life. All vector systems run very poorly in real life in the last few months.
    #173021 quote
    phoentzs
    Participant
    Master
      @Vinzentvega The markets, especially the DAX, have been in a sideways range since the end of May. Which is not ideal for trend following strategies. The trick is to lose as little as possible in such phases without a clear direction.
    #173043 quote
    phoentzs
    Participant
    Master
    For consideration: Since I have just run a test where my base system is running in 10 different versions with different trend filters in demo … I have found that as long as there is a trend, the differences between the systems are not particularly great live when there is a sideways phase gives my basic system without a filter performs best. Some trend systems even go into a large drawdown. Even if the back test curve looks so nice. I already got this food for thought with my KISS-EMA-RSI system (see topic). The more you filter on trades, the more unstable it runs live. Because you also filter out a lot of good trades. Let’s take this DAX Vectorial … let’s say it has 2000 unfiltered trades in 200000bars … if we filter the best trades, we might get 500-1000 trades that are doing really well. But then we still have 1000 trades that are unpredictable. Partly good, partly bad. But due to this high uncertainty factor, we run the risk of having a great backtest but live … a drawdown. So let’s take about 1500 trades unfiltered, only with a flat angle and TP / SL in a ratio of 1: 1.5 … we have a stable system that should run live. I sat down and did some rough calculations last night. I get about 45% hit rate and about 1.3 … not great, but I think stable. Unfortunately, I don’t have time for the weekend, but I think I’ll be able to finish it here next week.
    GraHal and LaurentBZH35 thanked this post
    #173044 quote
    phoentzs
    Participant
    Master
    Unfortunately, my translator spun the last sentences. I think you know what I mean. Does anyone share my view? Mediocre trades that happen often should be the target, not the huge moves that seem unpredictable.
Viewing 15 posts - 1,201 through 1,215 (of 1,264 total)
  • You must be logged in to reply to this topic.

Discussing the strategy VECTORIAL DAX (M5)


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Balmora74 @balmora74 Participant
Summary

This topic contains 1,263 replies,
has 125 voices, and was last updated by VinzentVega
1 year ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 02/24/2019
Status: Active
Attachments: 470 files
Logo Logo
Loading...