Exit on close of Bar - futures io
futures io



Exit on close of Bar


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one koganam with 1 posts (2 thanks)
    2. looks_two Skistr with 1 posts (1 thanks)
    3. looks_3 DavidBodhi with 1 posts (2 thanks)
    4. looks_4 Abusamjad91 with 1 posts (0 thanks)
    1. trending_up 758 views
    2. thumb_up 5 thanks given
    3. group 4 followers
    1. forum 3 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,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
 

Exit on close of Bar

(login for full post details)
  #1 (permalink)
 Abusamjad91 
San Francisco California
 
Experience: None
Platform: NinjaTrader
Trading: futures
 
Posts: 36 since Oct 2020
Thanks: 35 given, 49 received

Hello everyone,

I am working on some strategies and wanted to try exiting on the close of the same bar I'm entering on. Can someone show me how to achieve this on strategy builder? I searched on NT forums but couldn't accomplish it. I also lack the skills needed to do it on my own. Will appreciate all help.

Thank you
Abdus

Started this thread Reply With Quote

Can you help answer these questions
from other members on futures io?
Take Profit/ Tpx during crypto futures trading
Crypto Futures
Emini Trading Levels
Emini and Emicro Index
Tick counter that works with directions?
NinjaTrader
 
 
(login for full post details)
  #2 (permalink)
 DavidBodhi 
Milwaukee, WI, USA
 
Experience: Intermediate
Platform: NinjaTrader
Trading: Equities
 
DavidBodhi's Avatar
 
Posts: 188 since Oct 2014
Thanks: 20 given, 195 received

If your strategies are set to Calculate On Bar Close, the quickest exit you can make is on the open of the next bar.

If they are Calculate On Each Tick and if you're using time-based bars, you could add a 1-tick data series, count seconds or fractions thereof, and exit on the last one but, if there happens to not be a transaction on that tick, it still won't calculate till the next tick. If your bars are not time-based, I don't see a way, off the top of my head, to predict when the bar will close.

Probably easiest to exit at the open of the next bar. ES would likely not change significantly between Close[1] and Open[0], but some wilder markets might, in which case adding a 1-tick data series would be as close as you could get.

Might be possible with the Strategy Builder. Depends what, exactly, you decide to do.

At least, so I think at the moment.




Abusamjad91 View Post
Hello everyone,

I am working on some strategies and wanted to try exiting on the close of the same bar I'm entering on. Can someone show me how to achieve this on strategy builder? I searched on NT forums but couldn't accomplish it. I also lack the skills needed to do it on my own. Will appreciate all help.

Thank you
Abdus


Follow me on Twitter Reply With Quote
The following 2 users say Thank You to DavidBodhi for this post:
 
(login for full post details)
  #3 (permalink)
koganam
Garner, NC/USA
 
 
Posts: 34 since Dec 2009
Thanks: 16 given, 41 received



Abusamjad91 View Post
Hello everyone,

I am working on some strategies and wanted to try exiting on the close of the same bar I'm entering on. Can someone show me how to achieve this on strategy builder? I searched on NT forums but couldn't accomplish it. I also lack the skills needed to do it on my own. Will appreciate all help.

Thank you
Abdus

As with all code-generators, the Strategy Builder can only do that which has been already programmed into it. You cannot do what you want in the Strategy Builder.

In NT, the close of the bar is considered to be coincident with the open of the new bar. If that is not satisfactory, you will have to manually code something different. Specifically you will have to act on the putative closing time of the bar. That would most likely mean that you will need to use a timer, which would trigger the action that you want, when the timer expires at the time that you want.

Reply With Quote
The following 2 users say Thank You to koganam for this post:
 
(login for full post details)
  #4 (permalink)
 Skistr 
New Orleans LA
 
Experience: Intermediate
Platform: Sierra NT TOS
Trading: Currency Futures
 
Posts: 5 since Sep 2019
Thanks: 1 given, 1 received


Abusamjad91 View Post
Hello everyone,

I am working on some strategies and wanted to try exiting on the close of the same bar I'm entering on. Can someone show me how to achieve this on strategy builder? I searched on NT forums but couldn't accomplish it. I also lack the skills needed to do it on my own. Will appreciate all help.

Thank you
Abdus

I had this thought... to add something a little more hmmm, concrete to get it done in Strategy Builder.

in Strategy Builder create a group with 2 conditions that will close if either of these occur. You don't have to use groups, of course.

1. price is > close of the last bar [1]
2. price is < close of the last bar [1]

You could say if price is = to the close of the last bar [1], but then it may never be equal and if you want to make sure you get out... well the above may work.

Hope this helps you find the solution to what you have in mind.

Reply With Quote
The following user says Thank You to Skistr for this post:


futures io Trading Community Platforms and Indicators NinjaTrader > Exit on close of Bar


Last Updated on December 5, 2021


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
     



Copyright © 2022 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