schliessen am nächsten Tag
Forums › ProRealTime Deutsch forum › ProOrder Support › schliessen am nächsten Tag
- This topic has 4 replies, 2 voices, and was last updated 3 days ago by
sstef3.
Viewing 5 posts - 1 through 5 (of 5 total)
-
-
09/02/2025 at 7:34 AM #25025909/02/2025 at 8:59 AM #250265
Hier ist ein Beispiel. Das Kreuzen der gleitenden Durchschnitte ist das Ausstiegssignal, aber dieses erfolgt erst am nächsten Tag um 11:00 Uhr.
123456789101112131415161718192021222324252627282930timetoExit=110000avg1=average[200](close)avg2=average[50](close)if not onmarket and avg2 crosses over avg1 thenbuy 1 contract at marketendifif onmarket thenif avg2 crosses under avg1 thencheckTimeToExit=1signalday=1endifif intradaybarindex=0 and checkTimeToExit=1 and signalday=1 thensignalday=0endifif checkTimeToExit and signalday=0 and opentime>=timeToExit and opentime[1]<timeToExit thensell at marketendifelsecheckTimeToExit=0endifgraphonprice avg1 coloured("blue")graphonprice avg2 coloured("red")graph signalday coloured("blue")1 user thanked author for this post.
09/02/2025 at 10:33 AM #250266Danke.Das Programm funktioniert.
Leider bekomme ich es mit meinen Einstiegsbedingungen nich hin.
Wie müsste es mit meinen Einstiegsbedingungen aussehen?
IF time = 192800 and c0>o0 and c1>o1 and NOT LongOnMarket THEN
buy 5 CONTRACTS AT MARKET
endifund jetzt am nächsten Tag um 192800 schließen?
09/02/2025 at 12:05 PM #250271Ich weiß nicht, was c0, c1, o0 und o1 sind. Sie müssen in dem Code, den ich Ihnen sende, nur die genannten Variablen ersetzen.
1234567891011121314151617181920212223242526272829303132timeToEnter = 192800timeToExit = 192800// Benutzerdefinierte Variablenc0 = closeo0 = openc1 = close[1]o1 = open[1]if not onmarket and opentime>= timeToEnter and opentime[1]<timeToEnter AND c0 > o0 AND c1 > o1 thenbuy 5 contract at marketendifif onmarket thenif checkTimeToExit=0 thencheckTimeToExit=1signalday=1endifif intradaybarindex=0 and checkTimeToExit=1 and signalday=1 thensignalday=0endifif checkTimeToExit and signalday=0 and opentime>=timeToExit and opentime[1]<timeToExit thensell at marketendifelsecheckTimeToExit=0endifgraph signalday coloured("blue")1 user thanked author for this post.
09/03/2025 at 7:14 AM #250295 -
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)