No Entries after this time
Forums › ProRealTime English forum › ProOrder support › No Entries after this time
- This topic has 10 replies, 3 voices, and was last updated 5 years ago by Globalmarkets79.
-
-
09/12/2018 at 10:53 AM #80245
Hello,
I want to put an order to my system about time. I want no entries after 18.30. Is there any code about this?
Thank you for your time.
09/12/2018 at 11:12 AM #8025109/12/2018 at 11:21 AM #80253You can take a look at this post of mine https://www.prorealcode.com/topic/swing-hi-lo-dax-weekly-mtf/.
Line 27 determines when trading should be banned (line 26 is for forbidden days) and lines 30 and 37 use that condition to (or not) enter a trade.
Sorry Nicolas, you were faster!
09/12/2018 at 12:04 PM #80257My code open position at 16:30 and close this position at 22:00.
I would like, if there is not any position until 18:30 don´t open other position.
I found this ¨LimitEntryTime = 184000 //No Entries after this time¨ in this code
But doesn΄t work. Please help me if you can.
Thank you for your time
09/12/2018 at 1:57 PM #80267The example you linked works perfectly, just change the time.
09/12/2018 at 2:36 PM #80270I change the time but doesn’t work. I have a syntax error message.
09/12/2018 at 3:19 PM #80274There is no syntax error, just use that variable.
09/12/2018 at 4:31 PM #80294You should post the whole code for me to analyze it.
09/12/2018 at 4:54 PM #80300My code starts with
DEFPARAM FlatAfter=220000
DEFPARAM FlatBefore=164500This is the time that i want to work my program. If the program open a position until 18:30 will close the position at 22:30.
If the program doesn’t open a position until 18:30 i don’t want to open a position after 18:30. Is there any about this?
09/12/2018 at 5:16 PM #80303Yes, just mimick or copy what the code in the above links does!
09/12/2018 at 7:13 PM #80310robertogozzi thank you for your help. I solved the problem
Have a nice day.
-
AuthorPosts
Find exclusive trading pro-tools on