Verkauf bei Low [3]

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #188520 quote
    MatzeDue
    Participant
    Junior

    Hallo,

    ich bräuchte bitte den folgenden Code angepasst, dass der Sell at low [3] erfolgt. (siehe Bild)

    Und dann wäre es super, wenn mir jemand erklären kann, was die Funktion “Barindex” bedeutet. Ich verstehe sie nicht.

    Hier der aktuelle Code. Ich weiß nicht ob dieser überhaupt funktioniert hat.

    Bullish = close > open

    IF Bullish THEN
    HIbar = BarIndex
    ELSE
    IF high > high[BarIndex-HIbar] THEN
    HIbar = BarIndex
    ENDIF
    ENDIF

    If longonMarket And (close > low[barindex-hibar]) then
    sell at low[Barindex-hibar] stop
    endif

    #188522 quote
    robertogozzi
    Moderator
    Master

    Ist es das Tief der Einstiegskerze?

    #188525 quote
    MatzeDue
    Participant
    Junior

    nein, das soll der Long-Exit sein

    #188529 quote
    robertogozzi
    Moderator
    Master

    Ja, die Linie auf dem Foto ist die des Ausgangs, die mindestens an der Eingangskerze liegen muss, oder?

    #188563 quote
    MatzeDue
    Participant
    Junior

    Genau, die Linie stellt den Exit dar. Aber es muss nicht zwingend die Eingangskerze sein, sondern lediglich das Low der Kerze (3).

    #188610 quote
    robertogozzi
    Moderator
    Master

    Warum haben Sie an dieser Stelle die Linie gezogen, wenn es nicht unbedingt das Tief der Einstiegskerze sein muss? Welches Minimum muss es sein?

    #188624 quote
    MatzeDue
    Participant
    Junior

    Es muss das Minimum der dritt vorangegangenen Kerze (low[3]) sein.

    #188699 quote
    robertogozzi
    Moderator
    Master

    Geben Sie einfach den Ausgang mit LOW [3] an:

    sell at low[3] stop

    anstelle des von Ihnen verwendeten Ausdrucks.

    #189170 quote
    MatzeDue
    Participant
    Junior

    Hi,

    wie würde der folgende Code für Long lauten, mit short exit at high[2]:

     

    Bullish = close > open
    IF Bullish THEN
    HIbar = BarIndex
    ELSE
    IF high > high[BarIndex-HIbar] THEN
    HIbar = BarIndex
    ENDIF
    ENDIF
    If longonMarket And (close > low[barindex-hibar]) then
    sell at low[3] stop
    endif

     

    Danke

    #189172 quote
    robertogozzi
    Moderator
    Master

    Um High [2] zu verlassen, müssen Sie SELL AT High [2] schreiben, nicht Low [3].

    #189664 quote
    MatzeDue
    Participant
    Junior

    Ok.

    Ich möchte aber eine Short-Position bei High[2] schließen.

    Dafür muss der Code doch umgestellt werden oder?

    #189696 quote
    robertogozzi
    Moderator
    Master

    Ja, das ist in Ordnung, aber Sie müssen EXITSHORT anstelle von SELL verwenden.

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

Verkauf bei Low [3]


ProOrder: Automatischer Handel & Backtesting

New Reply
Author
author-avatar
MatzeDue @matzedue Participant
Summary

This topic contains 11 replies,
has 2 voices, and was last updated by robertogozzi
3 years, 11 months ago.

Topic Details
Forum: ProOrder: Automatischer Handel & Backtesting
Language: German
Started: 02/19/2022
Status: Active
Attachments: 1 files
Logo Logo
Loading...