Bedingung auf Tagesbasis

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #242384 quote
    axmichi
    Participant
    Senior

    Hallo,

    stimmt meine Bedingung?

    Ich möchte das im Stundenchart ein Trade eröffnet wird, wenn der Schlusskurs gestern auf Tagesbasis größer war als der EMA 200 im Tageschart.

    Ist der Code dafür richtig?? Ich bekomme andere Einstiege???….

     

    SMA200 = dclose(1)> ExponentialAverage[200](close)

    If not longonmarket and SMA200 and Time >= 090000 then

    buy 1 contract at market
    endif

     

    Vielen Dank

    #242387 quote
    Iván González
    Moderator
    Master

    Guten Morgen. Sie müssen den gleitenden Durchschnitt auf einem täglichen Zeitrahmen berechnen. Hierzu können Sie folgenden Code verwenden:

    timeframe(daily,updateonclose)
    sma200=average[200,1](close)
    
    timeframe(1h)
    if not longonmarket and dclose(1)>sma200 and opentime>=090000 then
    buy 1 contract at market
    endif
    
    graphonprice sma200 coloured("blue")
    graphonprice dclose(1) coloured("fuchsia")

    Mit dem Befehl graphonprice sehen Sie den Wert der Variablen im Preisdiagramm. Auf diese Weise können Sie steuern, wonach Sie suchen.

    robertogozzi thanked this post
    #242389 quote
    axmichi
    Participant
    Senior

    hallo und Danke !!!!

    #242489 quote
    axmichi
    Participant
    Senior

    Hallo, das system sieht mit diesem aus versehen geschriebenen Code besser aus.

    das system läuft im chart Timeframe 1h

    Können sie mir bitte sagen was hier berechnet wird??

    SMA200 = dclose(1)> ExponentialAverage[200](close)

    #242497 quote
    robertogozzi
    Moderator
    Master

    Überprüfen Sie, ob der Schlusskurs des Vortages über dem exponentiellen 200-Perioden-Durchschnitt liegt, der im täglichen Zeitrahmen berechnet wurde.

    Iván González thanked this post
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Bedingung auf Tagesbasis


ProOrder: Automatischer Handel & Backtesting

New Reply
Author
author-avatar
axmichi @axmichi Participant
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by robertogozzi
1 year, 1 month ago.

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