Bester Long Tag

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14157 quote
    Tomax
    Participant
    New

    Hallo,

    ich möchte den besten Wochentag finden um Long zu gehen.

    habe aber Problem mit der Formel. FEHLERMELDUNG!

    // Bedingungen zum Einstieg in Long-Positionen
    IF CurrentDayOfWeek4 and Time = 080000 THEN
    BUY 1 CONTRACTS AT MARKET
    ENDIF

    // Bedingungen zum Ausstieg von Long-Positionen
    If CurrentDayOfWeek4 and Time = 220000 THEN
    SELL AT MARKET
    ENDIF

    // Stops und Targets: Legen Sie hier schützende Stops und Profit Targets fest

    #14204 quote
    Percy Aus Gladbeck
    Participant
    New

    Hallo,

    ich denke mal, da fehlt nur ein Gleichheitszeichen, also

    IF CurrentDayOfWeek = 4 and Time = 080000 THEN

    Das Programm soll also jeden Donnerstag um 8 Uhr kaufen und die Position um 22 Uhr schließen.

    Um zu testen, welcher Wochentag sich am besten eignet, müsste man die “4” durch eine Variable z.B. “x” ersetzen und im Backtest eine Optimierung für diese Variable machen für die Werte “1” (Montag) bis “5” (Freitag). Danach weiß man, welcher Wochentag der beste ist.

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

Bester Long Tag


ProOrder: Automatischer Handel & Backtesting

New Reply
Author
author-avatar
Tomax @tomax Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Percy Aus Gladbeck
9 years, 5 months ago.

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