Schießen einer Position nach einer bestimmten Zeit

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #265142 quote
    sstef3
    Participant
    Junior

    Hallo,

    weiß jemand wie ich eine Position nach einer bestimmten Zeit schließen kann?

    Mein Programm ist auf 8 Sekunden Basis.

    Was muss ich programmieren das es z.B nach 3600 Sekunden die Position schliesst?

    #265146 quote
    JS
    Participant
    Master

    Hi sstef3,

    Probier diese …

    if not onmarket then
    buy at market
    endif
    
    
    gtf=gettimeframe
    
    
    if longtriggered or shorttriggered then
    triggerbar=intradaybarindex
    endif
    
    
    if onmarket and (intradaybarindex-triggerbar)>3600/gtf then
    sell at market
    exitshort at market
    endif
    
    
    graph gtf
    graph triggerbar
    
    robertogozzi and Iván González thanked this post
    Scherm­afbeelding-2026-09-16-om-15.07.58-scaled.png Scherm­afbeelding-2026-09-16-om-15.07.58-scaled.png
Viewing 2 posts - 1 through 2 (of 2 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

Schießen einer Position nach einer bestimmten Zeit


ProOrder: Automatischer Handel & Backtesting

New Reply
Author
author-avatar
sstef3 @sstef3 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by JS
20 hours, 6 minutes ago.

Topic Details
Forum: ProOrder: Automatischer Handel & Backtesting
Language: German
Started: 09/16/2026
Status: Active
Attachments: 1 files
Logo Logo
Loading...