wie kann ich im Code schreiben

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

    Hallo ich möchte ein system im 5 Minuten Timeframe haben

    die Bedingungen sollen erst gelten wenn der letzte Kurs (Close[1]) höher liegt als das Höchste High der Range zwischen 08 und 09 Uhr. handel dann in Longrichtung. Das signal kann also von 09 – 17 Uhr entstehen.

     

    Vielen Dank

    #217614 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Los geht’s (Es tut mir leid, dass ich es nicht testen konnte, aber meine Plattform hängt jetzt fest):

    DEFPARAM CumulateOrders = False
    ONCE MaxPrice = 0
    IF Time >= 080000 AND Time <= 090000 THEN
       IF Time = 090000 THEN
          MaxPrice = high
       ENDIF
       MaxPrice = max(high,MaxPrice)
    ENDIF
    IF Time > 170000 THEN
       MaxPrice = 0
    ENDIF
    Cond = (close[1] > MaxPrice) AND (MaxPrice > 0) AND (Time >= 090000) AND Not OnMarket
    IF Cond THEN
       BUY 1 CONTRACT AT MARKET
    ENDIF
    SET TARGET pPROFIT 200
    SET STOP   pLOSS   200
    #217636 quote
    axmichiaxmichi
    Participant
    Senior

    Vielen Dank ich denke es wird funktionieren.

     

    Danke

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

wie kann ich im Code schreiben


ProOrder: Automatischer Handel & Backtesting

New Reply
Author
author-avatar
axmichi @axmichi Participant
Summary

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

Topic Details
Forum: ProOrder: Automatischer Handel & Backtesting
Language: German
Started: 07/13/2023
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...