- ago
How do I make an intraday system with building blocks that enters based on minute data intraday, but exits the next day at the open? Can I use the time of day blocks or is there another trick? thanks!
0
398
Solved
5 Replies

Reply

Bookmark

Sort
Cone8
 ( 6.32% )
- ago
#1
You could use TimeOfDay, but "N Bars to Close" where N = 0 will give you a Signal at the session close to place at the open the next day.

If Auto-Trading, make sure to leave the Order Manager running for at least 15 minutes (or for the Final Order Delay you set in the IB Configuration) so that the order is actually Placed.
1
- ago
#2
Thanks Cone but i haven't quite understood it yet. if i do it like in the screenshot, then it doesn't close the trades. but greater than 1600 is open the next day, right? how does that work exactly with the building block, please?

This is a simple 1 minute strategy for testing intraday basics...

0
Cone8
 ( 6.32% )
- ago
#3
You need to generate an order on the last bar of the day to create the signal to sell at the open. There is no bar "after" 1600 for the regular session.

You can make it greater than 1559 for a 1 -minute chart.
Or, greater than or equal to 1600 for any intraday interval.

.. but I don't know why you didn't take my previous advice.
0
Best Answer
- ago
#4
I didn't follow your advice because I didn't understand it - or only partially understood it. But with your second post it now works this way. Thank you Cone!
0
Cone8
 ( 6.32% )
- ago
#5
"N Bars to Close" where N = 0 is just another condition like the Time of Day, except that it works with number of bars to the close and is completely agnostic to the interval used.

If you set N = 0 (zero bars to the close), then the condition is true on the closing bar of the session.
N = 1 would be true on the penultimate bar of the session.
... and so on.

Anyway, if you're happy with Time of Day, stick with it!
0

Reply

Bookmark

Sort