[TradeStation] Mid-Bar Entries - Platforms and Indicators | futures io social trading
futures io futures trading


Mid-Bar Entries
Updated: Views / Replies:304 / 4
Created: by Vientomarsol Attachments:0

Welcome to futures io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.


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, and we will never resell your private information.

-- Big Mike

Reply
 
Thread Tools Search this Thread
 

Mid-Bar Entries

  #1 (permalink)
Trading Apprentice
Port St. Lucie, FL.
 
Futures Experience: Intermediate
Platform: TradeStation
Favorite Futures: ES
 
Posts: 18 since May 2016
Thanks: 10 given, 6 received

Mid-Bar Entries

I'm building a TradeStation strategy for automated execution (robot trader).

I want the ability to enter and exit mid-bar, or in a subsequent bar.
i.e. If conditions are met at 7 minutes into a fifteen minute bar, the entry or exit will be executed immediately without waiting for open of next bar. On the other hand; if conditions are not met for several bars, the strategy will execute mid-bar (of a subsequent bar) when conditions are met.

I am using "[IntrabarOrderGeneration = TRUE]" and coding as follows:

//Long Entry
If MP=0 and H=H[1] then buy this bar;
MP = 1;


//Long Exit
If MP=1 and H=H[1]-.25 then sell this bar;
MP = 0;

The exit is working, and will get me out instantly, but the entry is not. It delays until the open of the next bar.

How should I code the entry statement to execute instantly when conditions are met (in current or future bars)?

Thanks

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,320 since Apr 2013
Thanks: 208 given, 745 received


Vientomarsol,

welcome to futures.io. When using intrabar order generation in Tradestation "Next bar" orders will be executed at the next tick that is processed, while "this bar" orders will only be processed at the end of the bar. That's why you are getting your orders filled at the open only.

Regards,

ABCTG

Reply With Quote
 
  #4 (permalink)
Trading Apprentice
Port St. Lucie, FL.
 
Futures Experience: Intermediate
Platform: TradeStation
Favorite Futures: ES
 
Posts: 18 since May 2016
Thanks: 10 given, 6 received


ABCTG View Post
Vientomarsol,

welcome to futures.io. When using intrabar order generation in Tradestation "Next bar" orders will be executed at the next tick that is processed, while "this bar" orders will only be processed at the end of the bar. That's why you are getting your orders filled at the open only.

Regards,

ABCTG



Thanks for your prompt reply.
I'll set-it-up as indicated and see how it works.

Respectlully,

Reply With Quote
The following user says Thank You to Vientomarsol for this post:
 
  #5 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,320 since Apr 2013
Thanks: 208 given, 745 received

Vientomarsol,

you are welcome. By the way you can show your appreciation for a post on futures.io by clicking the "Thanks" button next to it.

Regards,

ABCTG


Vientomarsol View Post
Thanks for your prompt reply.
I'll set-it-up as indicated and see how it works.

Respectlully,


Reply With Quote

Reply



futures io > > > [TradeStation]  Mid-Bar Entries

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

FIO Journal Challenge featuring NinjaTrader ($2,000+ of prizes)

May
 

EasyLanguage ABC's: Mastering TradeStation Programming w/Chris Kaiser

Elite only
 

Prototyping Python Strategies (part 2: Backtesting) w/Ran Aroussi [special time: 1PM ET]

Elite only
 

Portfolio Diversification w/Brendon Delate @ Diversify Portfolio

Elite only

An Afternoon with FIO member Softsoap (being rescheduled)

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bar Delay Between Entries quantarb MultiCharts 3 August 9th, 2015 05:42 AM
Current market conditions mid-2013 Big Mike Traders Hideout 5 May 1st, 2013 06:09 AM
Get Ready: US May Hit Debt Ceiling by Mid-February Quick Summary News and Current Events 0 January 7th, 2013 04:30 PM
How to step forward bar by bar (F12) with full bar not half bar? mercyman MetaTrader 1 October 23rd, 2012 04:49 PM
need help stopping multiple entries on the same bar cboss EasyLanguage Programming 2 October 1st, 2011 11:04 PM


All times are GMT -4. The time now is 03:19 AM.

Copyright © 2017 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
Page generated 2017-05-23 in 0.09 seconds with 19 queries on phoenix via your IP 54.92.175.204