I have searched the forum and couldn't find an answer. I would like to know if it is possible to buy within a certain number of bars after your entry signal? For example...I would like to buy after my signal within the next 4 bars after the signal, if not cancel the order. This is for Easylanguage on Tradestation.
Thanks you in advance
Can you help answer these questions from other members on futures io?
welcome to futures.io. If I understand your request correctly this sounds like storing the value of CurrentBar within a variable when your signal is detected might be what you are looking for. Then you can use this variable in checking how many bars ago your signal was present when you issue the order.
Orders will get cancelled automatically if you do not issue them again upon the next code calculation, which is exactly what you would be using your new variable for i.e. conditionally issuing the order when the signal is not too old only.
Regards,
ABCTG
The following 2 users say Thank You to ABCTG for this post:
Thank you for the reply. Is there anywhere you can direct me regarding the code to store the value of Currentbar in a variable? I am not all that familiar with coding, although trying to learn
It is my pleasure to welcome Chris @ ABC Trading Group for our 373rd webinar event, at a Special Time on Thursday, December 12th @ 12:00 PM Eastern US.
The title for the event is "Next Steps In Mastering TradeStation Programming", …
Regards,
ABCTG
The following user says Thank You to ABCTG for this post: