Target zu einer bestimmten Zeit

Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #128128 quote
    axmichiaxmichi
    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
    axmichiaxmichi
    Participant
    Senior

    Noch eine Anmerkung

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

    #128320 quote
    axmichiaxmichi
    Participant
    Senior

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

    Target.png Target.png
    #128330 quote
    NicolasNicolas
    Keymaster
    Legend

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

    #128341 quote
    axmichiaxmichi
    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
    axmichiaxmichi
    Participant
    Senior

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

    #128537 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    axmichiaxmichi
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    Schreiben;

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

    Vielen Dank! es funktioniert wunderbar.

    robertogozzi thanked this post
    #128801 quote
    bertrandpinoybertrandpinoy
    Participant
    Veteran

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

    #128914 quote
    axmichiaxmichi
    Participant
    Senior

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

    bertrandpinoy thanked this post
    #128917 quote
    bertrandpinoybertrandpinoy
    Participant
    Veteran

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

    #128920 quote
    axmichiaxmichi
    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.
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

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 robertogozzirobertogozzi
6 years, 4 months ago.

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