Buy at open sell at close
Forums › ProRealTime English forum › ProOrder support › Buy at open sell at close
- This topic has 11 replies, 5 voices, and was last updated 4 years ago by Vonasi.
-
-
01/30/2018 at 9:53 PM #61026
Hello everyone,
I’m new to probuilde and would like to understand the very basic concepts of the language.
I’d like to try two very simple strategies:
1. buy at open and sell at close the same day
2. buy at open of today and sell at the open of tomorrow
In both cases, the buy i think can be something like:
123IF NOT LongOnMarket THENBUY 1 CONTRACTS AT MARKETENDIFHowever for closing the position i’m not really sure how to make it. Can someone please help me with this?
Thanks in advance
01/30/2018 at 10:55 PM #61028IF LongOnMarket THEN
Sell AT MARKET
ENDIFThat’s all you need to close a trade the next bar after opening.
01/30/2018 at 11:54 PM #6103101/31/2018 at 12:23 PM #61086Thank you!
Any idea on how to sell the same day at close (of course this should be before close as after close the market is supposed to be closed also)?
01/31/2018 at 12:35 PM #61088Strategies, until the new version is released (hopefully by the end of this year), are executed when a candle closes. No way to work it around!
1 user thanked author for this post.
07/20/2019 at 3:36 PM #10301407/20/2019 at 5:35 PM #103018You ALWAYS have been able to enter when a candle closes.
No need for v11.
07/20/2019 at 6:48 PM #103023You ALWAYS have been able to enter when a candle closes.
Not strictly true Roberto. You have always been able to decide to enter a trade at the close of a candle but the actual opening always takes place at the open of the next candle.
Now with MTF we can now decide to enter a trade 1 second before the close of a higher time frame candle.
07/20/2019 at 7:00 PM #103024Yes, but it can already be done. MTF is not tied to v11.
07/20/2019 at 7:07 PM #103027An example of MTF being used to open 1 second before the close of the 1 hour candle. This can be used to avoid gaps between close and open.
1234567timeframe(1 hour)c1 = (your entry conditions)timeframe(1 second)if minute = 59 and currentsecond = 59 and c1 thenbuy 1 contract at marketendif07/20/2019 at 7:44 PM #103029ck2016 was asking to enter when a daily candle closes, not 1 second earlier!
07/20/2019 at 8:44 PM #103030MTF is not tied to v11.
Sorry Roberto – I missed the important point that you were commenting about v11!
-
AuthorPosts
Find exclusive trading pro-tools on