NexusFi: Find Your Edge


Home Menu

 





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


Discussion in TradeStation

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




 
Search this Thread
  #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?
Sundays Verdict: Lebanon Locked at 99.85% as Iran June 7 …
Prediction Markets & Event Contracts
CFTC Workforce Shrinks 24% to 15-Year Low While Predicti …
Traders Hideout
Iran Forward Curve: June 30 at 56% vs June 15 at 28% -- …
Prediction Markets & Event Contracts
More Than Capable: Hegseths War Warning Validates $114M …
Prediction Markets & Event Contracts
Post-Summit Market Verdict: ES -1%, NQ -1.5%, 10-Year Yi …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
205 thanks
30 Sessions
21 thanks
Sober Journey With S&P
21 thanks
Volume Indicators
8 thanks
Thanks Mike. Godspeed.
7 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,642

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 X Reply With Quote
Thanked by:




Last Updated on May 7, 2014


© 2026 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 - Downloads - Top
no new posts