Letztes Dhigh/ Dlow

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #115682 quote
    phoentzs
    Participant
    Master

    Hallo,

    folgendes Problem… ich benutze unter anderem ein System wo ich Tageshoch und Tagestief des Vortages verwende. Also zum Bespiel verwende ich Dienstags Tageshoch und Tagestief vom Montag. Nun habe ich das Problem dass das System Montags Tageshoch und Tagestief vom Sonntagshandel verwendet. Was natürlich Quatsch ist. Das System soll immer vom Vortag die Werte verwenden, aber Montags sollen eben Tageshoch und Tagestief vom vorhergehenden Freitag verwendet werden.
    dhigh(1) scheint also nicht zu funktionieren. Das
    Wie kann ich das am besten programmieren?

    #115684 quote
    robertogozzi
    Moderator
    Master

    Lesen Sie Dhigh (LookBack) und richten Sie LookBack zu Beginn wie folgt ein:

    If OpenDayOfWeek = 1 then
       LookBack = 2
    Else
       LookBack = 1
    Endif
    #115694 quote
    phoentzs
    Participant
    Master

    Das funktioniert.

    Super. Danke.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Letztes Dhigh/ Dlow


ProOrder: Automatischer Handel & Backtesting

New Reply
Author
author-avatar
phoentzs @phoentzs Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by phoentzs
6 years, 1 month ago.

Topic Details
Forum: ProOrder: Automatischer Handel & Backtesting
Language: German
Started: 01/01/2020
Status: Active
Attachments: No files
Logo Logo
Loading...