Selling on the close
Forums › ProRealTime English forum › ProOrder support › Selling on the close
- This topic has 10 replies, 3 voices, and was last updated 7 years ago by
Despair.
-
-
07/23/2017 at 10:27 AM #41395
Is it somehow possible to sell at the close of a bar? I have a strategy running on daily bars and I want that it sells an open position (if it has one) friday att the close so it is flat over weekends. I am unsure how to accomplish that since PRT always evaluates your code at the end of a bar.
If I put a market order on friday it will not be executed until the open on monday i assume. If I already put it thursday it will be executed friday at the open. So is there a possibility to sell on fridays close for a strategy running on daily bars?
07/23/2017 at 11:37 AM #4139707/23/2017 at 12:05 PM #41398That would close any open trade daily, not just at/before friday’s closure.
I’m afraid he (and all of us) will have to wait for the multitimeframe feature when available.
07/23/2017 at 1:42 PM #4140907/23/2017 at 2:00 PM #41411It would do in a 1-min TF, but for the daily TF the strategy is run only AFTER the end of each bar, just before the next one opens (which is on monday in this case)!
07/23/2017 at 3:34 PM #41427ah gotcha, because the condition included a Time I thought as soon as that Time occurs then Trade is exited. Yeah now I think on, I recall it being as you say Roberto, thank you! 🙂
So it can only be a price level / stoploss or targetprofit that exits a Trade intrabar!? Roll on MultiTimeframe! 🙂
07/23/2017 at 11:27 PM #41437Roberto is absolutely correct, that is the problem. During a bar only pending orders are executed. A market order is executed at the open of the following bar. Your condition Grahal with time=235900 will never come true on a daily timeframe.
We would need some more new order types implemented in PRT like LimitOnClose/LimitOnOpen/MarketOnOpen/MarketOnClose (LOC/LOO/MOC/MOO).
07/24/2017 at 9:55 AM #41457Despair … put it forward direct to PRT on the Suggestions Form below … you will even get an acknowledgement (wow! :)) using this Form
https://www.prorealtime.com/en/contact?suggestion=1
1 user thanked author for this post.
07/26/2017 at 10:37 AM #4164107/26/2017 at 2:59 PM #41687I do both generally, on here for benefit of members and on the PRT Contact Form cos – if I’m spending (wasting?) my time writing – then I want to at least know that PRT see it and send me an acknowledgement email!?
Also I always only send in just ‘one topic one Contact Form’?
07/26/2017 at 5:46 PM #41710 -
AuthorPosts
Find exclusive trading pro-tools on