Letztes Dhigh/ Dlow

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #115682 quote
    phoentzsphoentzs
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    phoentzsphoentzs
    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 phoentzsphoentzs
6 years, 9 months ago.

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