dowjones kaufen wenn h0 0,2% >h1

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #240199 quote
    sstef3sstef3
    Participant
    Junior

    Hallo ich habe ein Programm geschrieben das auf drei Stunden Basis beim Dowjones funktioniert und um 220000 schließen soll.

    Ich will aber das ganze auf Tagesbasis und da geht es nicht.Weiß jemand wo der Fehler liegt?

    DEFPARAM CumulateOrders = False
    DefParam FlatAfter =220000

    h0=high[0]
    h1=high[1]
    c1=close[1]
    c2=close[2]

    IF h0/h1>1.0019 and c1>c2 then
    buy 0.2CONTRACTS AT MARKet
    endif

    #240200 quote
    GraHalGraHal
    Participant
    Master

    DefParam FlatAfter =220000

    Das Obige funktioniert nur, wenn der Zeitrahmen, in dem der Code ausgeführt wird, am oder vor 220.000 beendet werden kann.

    Ich würde also meinen, Sie erhalten für den 3-Stunden-Zeitraum FlatAfter 210000? 

    Hoffe, das oben Gesagte ergibt Sinn?  

    robertogozzi and Iván González thanked this post
    #240204 quote
    sstef3sstef3
    Participant
    Junior

    also in der Orderliste beträgt der exit 220000 Uhr

    danke für die Info

    #240240 quote
    sstef3sstef3
    Participant
    Junior

    weiß jemand wie man das auf Tagesbasis programmieren muss?

    also kaufen beim gestrigen Hoch+0,2% und schließen um 22:00  (exit mit Gewinn oder Verlust)

    #240251 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Hier ist es (ich habe es nicht ausprobiert):

    DEFPARAM FlatAfter = 220000
    IF Not OnMarket THEN
       Entry = high[1] * 1.02
       IF close > Entry THEN
          BUY 1 Contract at Entry LIMIT
       ELSIF close < Entry THEN
          BUY 1 Contract at Entry STOP
       ENDIF
    ENDIF
    #240264 quote
    sstef3sstef3
    Participant
    Junior

    Hallo Robert,

    danke für das Programm.Es funktioniert bei Zeiteinheiten < 1 Tag

    das heisst auf Tagesbasis geht es nicht.Vielleicht hast Du ja noch eine Idee?

    #240265 quote
    sstef3sstef3
    Participant
    Junior

    @ GraHal

    GraHal wrote:

    Try …
    Timeframe (1mn, updateonclose)

    If LongonMarket and Time = 220000 Then
    Sell at Market
    Endif

    Danke GraHal

    Es kauft einmal und  verkauft aber nicht

    #240276 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Hallo. Mit einem Zeitrahmen von 1 Tag wird es für Sie nicht funktionieren. Sie können die Position nicht um 22:00 Uhr schließen. Sie können sie nur mit TF für weniger als 1 Tag betreiben.

    robertogozzi thanked this post
    #240298 quote
    sstef3sstef3
    Participant
    Junior

    okay vielen Dank für die Info

Viewing 9 posts - 1 through 9 (of 9 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

dowjones kaufen wenn h0 0,2% >h1


ProOrder: Automatischer Handel & Backtesting

New Reply
Author
author-avatar
sstef3 @sstef3 Participant
Summary

This topic contains 8 replies,
has 4 voices, and was last updated by sstef3sstef3
1 year, 10 months ago.

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