TOS End of Bar Code - futures io
futures io futures trading



TOS End of Bar Code


Discussion in ThinkOrSwim

Updated
    1. trending_up 1,780 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 1 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
 

TOS End of Bar Code

(login for full post details)
  #1 (permalink)
New York, New York/USA
 
 
Posts: 1 since Jul 2014
Thanks: 0 given, 0 received

Hi. I have been tooling off and on with TOS for over a year and cannot figure out a couple of things. 1. how to make my strategies trigger at the end of the bar rather than the open of the next bar. 2. How to use bars to exit a position - for example, enter on X - exit one bar from X. Can anyone point me in the right direction? Thanks

Reply With Quote

Can you help answer these questions
from other members on futures io?
Incomprehensible divergence between price action and cumulative delta bars
Sierra Chart
2nd cross over
MultiCharts
Pyrapoint by Don Hall information
Traders Hideout
Financial Modeling Prep (free to use: financialmodelingprepcom) API
Trading Reviews and Vendors
S&P 500 Advance Decline
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Big Mike in Ecuador
83 thanks
How did you learn to trade?
81 thanks
2020 profit and loss results
74 thanks
NinjaTrader buys TransAct Futures (Infinity Brokers), plans its own FCM
64 thanks
Whos afraid of the big bad Glitch
51 thanks
 
(login for full post details)
  #2 (permalink)
los angeles, California, USA
 
 
Posts: 8 since Aug 2014
Thanks: 2 given, 0 received

There are a few ways to get it to use the close of the current bar, the easiest way since I don't know your code would be:
 
Code
AddOrder(OrderType.buy_to_open, condition = cond1, price =close, tradeSize = contracts, arrowcolor = Color.RED, name = "b01" );
The easiest close after your condition would probably be something like:
 
Code
def CloseCond = cond1[1]; # if buy condition happened one bar ago, true.

Reply With Quote


futures io Trading Community Platforms and Indicators ThinkOrSwim > TOS End of Bar Code


Last Updated on August 16, 2014


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Are you doing what it takes to trade right? w/FuturesTrader71

Jan 21
 

Journal Challenge!

February
 

Battlestations!

March
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, 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