ausstieg wenn kein neues Hoch

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

    Hi,

     

    ich wollte aus einem Trade aussteigen, wenn es in den letzten 4 Tagen kein neues Hoch gegeben hat.

     

    ch habe dies hier genommen, aber es funktioniert nicht.

    close < highest[4](high)

    ich wollte es nicht umständlich so schreiben wie hier

    Close < high [1]

    Close < high [2]

    Close < high [3]

    Close < high [4]

     

    Danke

    #253227 quote
    JSJS
    Participant
    Master

    Probieren Sie diese aus:

    If Summation[4](High>High[4])=0 then

    Sell at market

    EndIf

    #253232 quote
    axmichiaxmichi
    Participant
    Senior

    Hallo,

     

    nein das ist es leider nicht.

    Siehe Foto. Wenn 4 kerzen kein neues Hoch, dann aussteigen??

    exit-.png exit-.png
    #253241 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Der JS-Code funktioniert gut. Ich gebe Ihnen ein einfaches Beispiel.
    Ich habe eine Variable „bars” eingefügt, um zu sehen, wie viele Kerzen der Preis unter high[4] liegt.

    if high>high[4] then
    bars=0
    else
    bars=bars+1
    endif
    
    IF NOT LongOnMarket AND high>high[1] THEN
    BUY 1 CONTRACTS AT MARKET
    ENDIF
    
    if summation[4](high>high[4])=0 then
    sell at market
    endif
    
    graphonprice high[4]
    graph bars
    #253250 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Diese Zeile sollte korrekt sein. Überprüfen Sie, ob der HIGH der vorherigen vierten Kerze der höchste Wert unter den letzten fünf ist:

    high[4] = highest[5](high)
Viewing 5 posts - 1 through 5 (of 5 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

ausstieg wenn kein neues Hoch


ProOrder: Automatischer Handel & Backtesting

New Reply
Author
author-avatar
axmichi @axmichi Participant
Summary

This topic contains 4 replies,
has 4 voices, and was last updated by robertogozzirobertogozzi
10 months, 4 weeks ago.

Topic Details
Forum: ProOrder: Automatischer Handel & Backtesting
Language: German
Started: 11/03/2025
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...