Back-testing of Demar TD Sequential

Viewing 8 posts - 16 through 23 (of 23 total)
  • Author
    Posts
  • #202279 quote
    jonpt88
    Participant
    New

    Thank you Grahal.

    Can I know at least what is the formula for first condition? Is not a simple AND. Right? I will take it from there (maybe I will not manage but I will try at least).

    #202288 quote
    GraHal
    Participant
    Master

    Import the Demark TD Sequential and set up as a separate Indicator on your Platform … then do as I did using GRAPH.

    #202303 quote
    GraHal
    Participant
    Master

    Here you are, I’ve done it for you … see attached.

    You know that code is read at end of a bar and position opened at open of next bar … hence the Long open at 1 bar after the UP Arrow from the TD Seq Indicator.

    See at the 3 red arrowheads on attached.

    Jon-3.jpg Jon-3.jpg
    #202628 quote
    jonpt88
    Participant
    New

    Thank you, Grahal. It looked like I needed to restart the platform… it was kind of stuck! Now, is all working. I know this might not be the topic (but to open a new topic for this would be a bit too much bothering for the forum I guess). The question is in relation to a post of JS (above in this same topic) he said that an indicator can be converted in a backtesting code by simply removing the DRAW and replacing by BUY and SELL ORDERS. I have been trying to find in the forum manual for this but I could not find. Is there any? Thank you in advance. And thank you again

    #202630 quote
    GraHal
    Participant
    Master

    JS was referring to this particular code (as you posted above) in which there is a DrawArrowUP and DrawArrowDown … both of which have a good probability of the start of a profitable Long and Short trade respectively.

    So to replace Draw**** by Buy or SellShort needs the Draw**** to be indicative of a change of direction or good probability for a Long or SellShort.

    I find it’s best to put // in front of the Draw instruction (i.e. not delete Draw****) then you can refer back to see what the original Draw instruction stated.

    jonpt88 thanked this post
    #202631 quote
    jonpt88
    Participant
    New

    Aha… I see. So,

    The way I was using before was – taking any code and adding respectively the bearish and bullish action to respectively the buy and sell back test order and it was working sometimes :D. So there is no manual or method to simplify that in the forum? I would be happy to read one in general basis the following simple skeleton:

    // Bedingungen zum Einstieg in Long-Positionen
    IF NOT LongOnMarket AND IhreBedingungen THEN
    BUY 1 CONTRACTS AT MARKET
    ENDIF
    
    // Bedingungen zum Ausstieg von Long-Positionen
    If LongOnMarket AND IhreBedingungen THEN
    SELL AT MARKET
    ENDIF
    
    // Bedingungen zum Einstieg in Short-Positionen
    IF NOT ShortOnMarket AND IhreBedingungen THEN
    SELLSHORT 1 CONTRACTS AT MARKET
    ENDIF
    
    // Bedingungen zum Ausstieg aus Short-Positionen
    IF ShortOnMarket AND IhreBedingungen THEN
    EXITSHORT AT MARKET
    ENDIF
    
    // Stops und Targets: Legen Sie hier schützende Stops und Profit Targets fest
    
    #202632 quote
    GraHal
    Participant
    Master

    What is IhreBedingungen?  Is it ‘Conditions‘?? Aha it is, I put it in google Translator! 🙂

    Yes the skeleton you show is a good basis.

    No there is no manual /pdf describing how to convert an Indicator to a Strategy.  Each instance would be slighly different, hence a prescriptive ‘manual’ would be difficult.

    Am I understanding your questions correctly?

    jonpt88 thanked this post
    #202633 quote
    jonpt88
    Participant
    New

    Yes. Thank you. Grahal. 🙂

Viewing 8 posts - 16 through 23 (of 23 total)
  • You must be logged in to reply to this topic.

Back-testing of Demar TD Sequential


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
jonpt88 @jonpt88 Participant
Summary

This topic contains 22 replies,
has 3 voices, and was last updated by jonpt88
3 years, 4 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 10/07/2022
Status: Active
Attachments: 4 files
Logo Logo
Loading...