NexusFi: Find Your Edge


Home Menu

 





elsystem.Timer.Start and instant trading order with correct code


Discussion in TradeStation

Updated
    1. trending_up 1,396 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread

elsystem.Timer.Start and instant trading order with correct code

  #1 (permalink)
marcomania
Singapore
 
Posts: 2 since May 2014
Thanks Given: 1
Thanks Received: 0

Hello Guys,

I am looking for two things:

1) a solution to introduce in my code a timer that kicks in when a new trade is filled and it elapses after xxxxxxx milliseconds.

something like

if xxx = true buy xxxx
if marketposition = 1 then timerstarts
if timer elapsed then sell next bar at market

with elsystem.timer.start and stop, if that is possible.


2) I am trying to understand the wording for coding the entry when a condition is true (exactly in the same instant) and not waiting for next bar to open - this is the case in which a bid/ask hits the upper or lower Bollinger band - I just need the trade to be executed in that moment.

Appreciated in advance very much the time you gonna spend in communicating with me.

Have a good coding and trading day!

MM

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
About a successful futures trader who didnt know anythin …
Psychology and Money Management
MC PL editor upgrade
MultiCharts
REcommedations for programming help
Sierra Chart
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

marcomania,

opening one thread is usually enough and keeps the focus on your questions.
Regarding your first question you can find a bunch of timer examples in the Tradestion forum.

For the second topic you need to look into intrabar order generation and intrabarpersist for variables. So they can change their value intrabar and orders can be executed with the next tick.

Regards,
ABCTG



marcomania View Post
Hello Guys,

2) I am trying to understand the wording for coding the entry when a condition is true (exactly in the same instant) and not waiting for next bar to open - this is the case in which a bid/ask hits the upper or lower Bollinger band - I just need the trade to be executed in that moment.

Appreciated in advance very much the time you gonna spend in communicating with me.

Have a good coding and trading day!

MM


Follow me on Twitter Reply With Quote
Thanked by:




Last Updated on May 7, 2014


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts