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



TOS End of Bar Code


Discussion in ThinkOrSwim

Updated by emanon
    1. trending_up 1,627 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 1 replies
    2. attach_file 0 attachments




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

 
Thread Tools Search this Thread
 

TOS End of Bar Code

  #1 (permalink)
New York, New York/USA
 
 
Posts: 1 since Jul 2014
Thanks: 0 given, 0 received

TOS End of Bar Code

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?
Convert NinjaTrader NT7 indicator to Tradestation EasyLanguage and RADARSCREEN
Platforms and Indicators
Issue meeting order entry conditions
Elite Automated NinjaTrader Trading
Last 5 minutes Label
ThinkOrSwim
Moving average with Lag reduction
NinjaTrader
Linux?
ThinkOrSwim
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Spoo-nalysis ES e-mini futures S&P 500
72 thanks
June Charity Fundraiser - Feeding hungry families
48 thanks
Fixed vs trailing stops
31 thanks
FIO Journal Challenge - June 2020 edition w/SharkIndicators
30 thanks
AMP Futures / AMP Global Review
26 thanks
 
  #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




Upcoming Webinars and Events
 

Free BloodHound Licenses to everyone!

June
 

Every journal equals ten meals for the hungry

June
     



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