Same Bar Execution
Forums › ProRealTime English forum › ProOrder support › Same Bar Execution
- This topic has 9 replies, 4 voices, and was last updated 5 years ago by dburgh.
-
-
08/30/2018 at 11:33 PM #79434
Hello,
If I have a strategy that enters on the open and have this logic beneath the entry… will it execute on the same bar if the condition is met?
ATR trailing123if longonmarket thensell at close[0] - averagetrueRange[20](Close) * 2 stopendifThanks,
David
08/31/2018 at 12:15 AM #79435Same as
123if longonmarket thensell at close - averagetrueRange[20](Close) * 2 stopendifwill sell at that price whenever it’s hit.
This is a pending order expiring after one bar and needs to be placed again at each new bar, if still needed.
Orders AT MARKET will be placed and executed when a candle CLOSES, while PENDING orders will be placed when a candle CLOSES but will be executed anytime, if desired price is reached, while the new candle is being formed and once the candle is formed and closed the order expires and needs to be placed again, eventually.
08/31/2018 at 12:23 AM #79436Yes, I am hoping the price updates every bar. Will the code re-send the order every bar it is unfilled and still in a long position?
also, you said “will sell at the price whenever it is hit”
I guess my question is.. if I enter on Monday’s open and then later in the day the price is hit will it trigger a sell on the same day (Monday)?
Is longonmarket updated immediately or at the bar’s close?
Thanks
08/31/2018 at 12:35 AM #79437Yes, I am hoping the price updates every bar. Will the code re-send the order every bar it is unfilled and still in a long position?
Yes, your code will re-send the order as long as your strategy is LONGONMARKET
also, you said “will sell at the price whenever it is hit”
I guess my question is.. if I enter on Monday’s open and then later in the day the price is hit will it trigger a sell on the same day (Monday)?
Strategies are ALWAYS executed when a bar closes, so to be able to trade on monday (on a Daily chart) your conditions need to be met the prior bar. As I said, once the order is placed at the CLOSURE of a bar, if it’s a pending order it will be executed BEFORE the new bar closes or it will be cancelled automatically.
Is longonmarket updated immediately or at the bar’s close? NO, it takes a whole bar to ProOrder to detect any status update. But you can work it around using the new MTF engine which allows you to use a lower TF which will enable your strategy to detect a new status earlier than the biggest one (but still at the end of a bar).
Thanks
08/31/2018 at 12:39 AM #79438Is longonmarket updated immediately or at the bar’s close? NO, it takes a whole bar to ProOrder to detect any status update. But you can work it around using the new MTF engine which allows you to use a lower TF which will enable your strategy to detect a new status earlier than the biggest one (but still at the end of a bar).
Do you see how confusing this is? If I enter a position on Monday’s open (because signal was True as of Friday’s close) then the sell order will not trigger until Monday’s close because LongOnMarket is not set until Monday’s close. So if my level is hit on Monday it will not exit based on what you’re saying.
08/31/2018 at 7:29 AM #7944808/31/2018 at 8:23 AM #79452Surely if conditions for Long entry at Market are met on Friday Close and the Long entry is executed on Monday open then (from Monday Open / Long entry executed) PRT knows it is LongonMarket (because PRT will update status at the point of Long entry conditions being met (at Market) which is Friday Close??)?
Even as I write above (and I’m glad I did) I guess there is always the possibility that the at Market Long is not met on Monday Open and so Long Status can only be updated after the next complete bar so at Monday Close … is this correct??
08/31/2018 at 11:26 AM #79458Yes, I do not want to use multiple time frames and asked a simple YES or NO question. Every time I use this thread I can never get a clear response without obfuscation. I will ask a final time…
if trading signal is true on Friday’s close and I enter on Monday’s open.
will this logic
123if longonmarket thensell at close[0] - averageTrueRange[20](close) * 2 stopendifexecute an order on that same Monday if the price is hit?
YES or NO?
08/31/2018 at 11:31 AM #7945908/31/2018 at 11:33 AM #79460 -
AuthorPosts
Find exclusive trading pro-tools on