Buy within a number of bars after entry signal (EL)? - futures io
futures io



Buy within a number of bars after entry signal (EL)?


Discussion in EasyLanguage Programming

Updated
    1. trending_up 2,690 views
    2. thumb_up 3 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 150,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Buy within a number of bars after entry signal (EL)?

(login for full post details)
  #1 (permalink)
LeonTaiwan
Taichung Taiwan
 
 
Posts: 3 since Mar 2021
Thanks: 1 given, 1 received

Howdy

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

Reply With Quote

Can you help answer these questions
from other members on futures io?
Multi Time Frame High/Low/Median levels
NinjaTrader
Multiple brokerage accounts within one or more brokers
Traders Hideout
Market on Close data within IB
Platforms and Indicators
Big Mo Indicator for NT8
NinjaTrader
Dissect open interest data
Crypto Futures
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Is anyone actually making money?
123 thanks
ApexTraderFunding.com experience and review
11 thanks
Artificial Intelligence (AI) and Chat GPT
7 thanks
Dax market profile (FDAX, TPO)
7 thanks
Want your NinjaTrader indicator created, free?
7 thanks
 
(login for full post details)
  #2 (permalink)
 bobwest 
Site Moderator
Sarasota FL
 
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
 
bobwest's Avatar
 
Posts: 7,676 since Jan 2013
Thanks: 55,181 given, 25,259 received


LeonTaiwan View Post
Howdy

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

This sounds like a straightforward job of EL programming, if anyone is willing to give @LeonTaiwan a hand with it.

The question was transferred here from the "ask any question" thread, to give it more visibility.

Bob.

When one door closes, another opens.
-- Cervantes, Don Quixote
Reply With Quote
 
(login for full post details)
  #3 (permalink)
 ABCTG   is a Vendor
 
 
Posts: 2,360 since Apr 2013
Thanks: 426 given, 1,578 received


LeonTaiwan,

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



LeonTaiwan View Post
Howdy

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


Follow me on Twitter Reply With Quote
The following 2 users say Thank You to ABCTG for this post:
 
(login for full post details)
  #4 (permalink)
LeonTaiwan
Taichung Taiwan
 
 
Posts: 3 since Mar 2021
Thanks: 1 given, 1 received

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

Reply With Quote
 
(login for full post details)
  #5 (permalink)
 ABCTG   is a Vendor
 
 
Posts: 2,360 since Apr 2013
Thanks: 426 given, 1,578 received

LeonTaiwan,

you might benefit from going over at least some of the basics (like declaring variables etc.). The following links should get you going:




Regards,

ABCTG



LeonTaiwan View 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


Follow me on Twitter Reply With Quote
The following user says Thank You to ABCTG for this post:


futures io Trading Community Platforms and Indicators EasyLanguage Programming > Buy within a number of bars after entry signal (EL)?


Last Updated on July 4, 2022


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
     



Copyright © 2023 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts