Target zu einer bestimmten Zeit

Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #128128 quote
    axmichi
    Participant
    Senior

    Hallo,

    angenommen mein Trade im 5 Minuten Chart läuft seid 10 Uhr.

    Jetzt soll das Target (TP) am Open des 08:10 Candels liegen.

     

    Mein Code funktioniert nicht??

    set target profit open (08:05)

     

    was ist falsch

    LG Michel

    #128129 quote
    axmichi
    Participant
    Senior

    Noch eine Anmerkung

    es soll das Open des selben Tages sein!! Also das Open des Candels vor dem Einstieg!!

    #128320 quote
    axmichi
    Participant
    Senior

    Hier ein Foto von dem was ich gern wissen möchte!

    Target.png Target.png
    #128330 quote
    Nicolas
    Keymaster
    Master

    Entschuldigung, ich verstehe es nicht !! Was ist dein Code?

    #128341 quote
    axmichi
    Participant
    Senior

    Hallo Nikolas,

    das target TG soll auf dem preis des Open der 08:05 Kerze glatt gestellt werden!!

    das ist mein Code:

    defparam flatbefore=080500
    defparam flatafter=213000
    
    if intradaybarindex=0 then
    trading=1
    elsif barindex=tradeindex then
    trading=0
    endif
    
    if time = 080500 then
    myprice=close-AverageTrueRange[14](close)*3
    elsif time> 080500 and time[1] < 080500 then
    myprice=close[1]
    endif
    
    if not longonmarket and trading=1 then
    buy 1 share at myprice limit
    endif
    
    //if not shortonmarket and trading=1 then
    //sellshort 1 share at myprice+a*pointsize limit
    //endif
    
    set stop ploss 20
    
    set target profit

    Danke Dir für die Hilfe!!

    LG Michel

    #128501 quote
    axmichi
    Participant
    Senior

    the price (open) of the candle 08:05
    should be my Target!!!

    #128537 quote
    robertogozzi
    Moderator
    Master

    Verwenden Sie immer die Schaltfläche “Insert PRT Code” , wenn Sie Code in Ihre Nachrichten einfügen, um das Lesen für andere zu erleichtern.

    #128542 quote
    robertogozzi
    Moderator
    Master

    Ersetzen Sie die Zeilen 10-14 durch folgende:

    if time = 080500 then
    myprice=close-AverageTrueRange[14](close)*3
    Tp = close-myprice
    endif

    Fügen Sie dann Tp am Ende der Zeile 26 hinzu.

    #128555 quote
    axmichi
    Participant
    Senior

    Danke Ihnen!!!!!! 🙂

    Der SL soll nun die selbe Entfernung haben wie der Entry zum Candle um 08:05 Uhr.

    Ich habe das geschrieben, es funktioniert es aber nicht!

    SL = close-myprice*2
    

    Wie muss es richtig heißen, theoretisch muss es doch richtig sein??

    LG Michel

    #128564 quote
    robertogozzi
    Moderator
    Master

    Schreiben;

    SL = (close-myprice)*2
    // or SL = Tp * 2
    #128717 quote
    axmichi
    Participant
    Senior

    Vielen Dank! es funktioniert wunderbar.

    robertogozzi thanked this post
    #128801 quote
    bertrandpinoy
    Participant
    Veteran

    Guten Tag können Sie Ihren angepassten Code (ITF) retournieren, da ich den Code nicht bedienen kann danke

    #128914 quote
    axmichi
    Participant
    Senior

    Oh tut mir leid ich weiß gar nicht wie das geht?!

    bertrandpinoy thanked this post
    #128917 quote
    bertrandpinoy
    Participant
    Veteran

    Ihren Funktions-Code kopieren bitte ich persönlich ausprobieren danke

    #128920 quote
    axmichi
    Participant
    Senior
    defparam flatbefore=080100
    defparam flatafter=213000
    
    if intradaybarindex=0 then
    trading=1
    elsif barindex=tradeindex then
    trading=0
    endif
    
    
    
    if time = 080100 then
    myprice=close+AverageTrueRange[14](close)*3
    Tp = close+myprice
    SL = (close+myprice)
    endif
    
    
    if not shortonmarket and trading=1 then
    sellshort 1 share at myprice limit
    endif
    
    set stop ploss SL
    
    set target profit TP
    

    Kann mir jemand helfen das der SL auf Breakeven nachgezogen wird wenn der Kurs 70 % im Gewinn ist?

    Danke

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

Target zu einer bestimmten Zeit


ProOrder: Automatischer Handel & Backtesting

New Reply
Author
author-avatar
axmichi @axmichi Participant
Summary

This topic contains 18 replies,
has 4 voices, and was last updated by robertogozzi
5 years, 11 months ago.

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