I want to wait for a condition to be met, then wait for another condition to be met and then place and order which would reset both conditions.
I know I can use the once true block, but there seems to be no way of resetting that.
How can I set a boolean based on a condition once being true and only reset it once an order is placed?
Thanks so much in advance!
Answer by Kyle Benton · Jun 26, 2020 at 02:56 AM
Use the extractor as below.
Set the value of the extractor formula to just TRUE.
By default the extractor block will be false until it's hit with a message. Once hit with a message it becomes true. After which you can reset the true (to false) by sending a message to the reset port
Ask questions and share ideas about the TT® and X_TRADER® platforms.
First time here? See our Getting Started Guide and FAQs.
© 2017 Trading Technologies International, Inc. All rights reserved.
Powered by AnswerHub