Latency in Easylanguage - EasyLanguage Programming | futures io social day trading
futures io futures trading


Latency in Easylanguage
Updated: Views / Replies:763 / 5
Created: by martingjesus Attachments:0

Welcome to futures io.

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

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Latency in Easylanguage

  #1 (permalink)
Elite Member
Madrid Spain
 
Futures Experience: Master
Platform: Multicharts, Tradestation
Broker/Data: Tradestation, InteractiveBrokers
Favorite Futures: Stocks
 
martingjesus's Avatar
 
Posts: 15 since Sep 2015
Thanks: 10 given, 4 received

Latency in Easylanguage

Hi, I have been researching a lot about this subject and finally have arrived to the conclusion that with this two sentences for instance:

Buy next bar at market;

Buy next bar at ... limit;

There is a latency not simple to see. One would expect to buy at market or to place the limit order in the moment the strategy generates the order, however "Next Bar" implies that for the strategy to send the order to the broker the next bar that we are trying to buy has to be formed with at least one tick. In higly liquid markets this could be a bunch of milliseconds but in other not so liquid it could be perfectly 1 min. I have realised that in some cases my order gets filled two bars after the order should theoretically be sent.

I'll appreciate some comments on this, and if someone would know how to send the order in the instant that the last bar close, not waiting for a new tick in the next bar, or if this could be fixed in other platforms. 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
Cleveland Ohio/United States
 
Futures Experience: Advanced
Platform: Tradestation
Broker/Data: Tradestation, DeCarley, others
Favorite Futures: futures
 
Posts: 2,533 since Jul 2012
Thanks: 1,269 given, 4,753 received
Forum Reputation: Legendary



martingjesus View Post
Hi, I have been researching a lot about this subject and finally have arrived to the conclusion that with this two sentences for instance:

Buy next bar at market;

Buy next bar at ... limit;

There is a latency not simple to see. One would expect to buy at market or to place the limit order in the moment the strategy generates the order, however "Next Bar" implies that for the strategy to send the order to the broker the next bar that we are trying to buy has to be formed with at least one tick. In higly liquid markets this could be a bunch of milliseconds but in other not so liquid it could be perfectly 1 min. I have realised that in some cases my order gets filled two bars after the order should theoretically be sent.

I'll appreciate some comments on this, and if someone would know how to send the order in the instant that the last bar close, not waiting for a new tick in the next bar, or if this could be fixed in other platforms. Thanks.

Did you try "buy this bar at close;" ??

If you have any questions please send me a Private Message or use the futures.io "Ask Me Anything" thread
Reply With Quote
The following user says Thank You to kevinkdog for this post:
 
  #4 (permalink)
Elite Member
Madrid Spain
 
Futures Experience: Master
Platform: Multicharts, Tradestation
Broker/Data: Tradestation, InteractiveBrokers
Favorite Futures: Stocks
 
martingjesus's Avatar
 
Posts: 15 since Sep 2015
Thanks: 10 given, 4 received

I think that should work with market orders, but with limit orders?

Reply With Quote
 
  #5 (permalink)
Market Wizard
Cleveland Ohio/United States
 
Futures Experience: Advanced
Platform: Tradestation
Broker/Data: Tradestation, DeCarley, others
Favorite Futures: futures
 
Posts: 2,533 since Jul 2012
Thanks: 1,269 given, 4,753 received
Forum Reputation: Legendary


martingjesus View Post
I think that should work with market orders, but with limit orders?

Right, it won't work with limit orders.

One thing to consider is that Tradestation (or any commercial software, possibly) might not be the right tool for what you are wanting to do.

For example, I'd never attempt to use TS for a scalping type strategy.

If you have any questions please send me a Private Message or use the futures.io "Ask Me Anything" thread
Reply With Quote
The following user says Thank You to kevinkdog for this post:
 
  #6 (permalink)
 Vendor: www.abctradinggroup.com 
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,777 since Apr 2013
Thanks: 283 given, 1,061 received

martingjesus,

Multicharts and Tradestation for that matter are event driven, meaning the code gets executed only when there is an event triggering it - in general that would be a new tick arriving.
You can look into using timers to forcefully recalculate your code and send orders even when there is no new tick arriving. The one "limitation" for that is that is, it only works in realtime.

Regards,
ABCTG


Last edited by ABCTG; September 27th, 2015 at 05:46 AM.
Reply With Quote
The following 2 users say Thank You to ABCTG for this post:

Reply



futures io > > > > > Latency in Easylanguage

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

September Journal Challenge (sponsored by TopstepTrader)

September

Free Elite Membership: Twitter Tuesday and Facebook Friday!

Tue & Fri
 

Trading with Python: Using Machine Learning w/Ran Aroussi [12:30PM ET]

Elite only

TopstepTrader (TBD)

Sep 25

RandBots (TBD)

Sep 27

Anthony Drager (TBD)

Oct 4
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Do you know your latency? endian675 NinjaTrader 12 October 25th, 2016 02:41 PM
Platforms and latency TickedOff Traders Hideout 2 March 11th, 2015 11:08 AM
Latency EthanC Tech Support 4 July 6th, 2014 10:13 PM
Latency in Ninjatrader elitetradernyc NinjaTrader Programming 5 April 4th, 2013 07:52 AM
Latency,,,really important? kalalex Traders Hideout 13 March 26th, 2012 03:24 PM


All times are GMT -4. The time now is 12:53 PM. (this page content is cached, log in for real-time version)

Copyright © 2018 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 2018-09-19 in 0.11 seconds with 14 queries on phoenix