NexusFi: Find Your Edge


Home Menu

 





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


Discussion in TradeStation

Updated
    1. trending_up 1,944 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?
UMA Votes Tonight: Polymarkets $80M Strategy Bitcoin Bat …
Prediction Markets & Event Contracts
April 2026 Jobs Report: +115k vs +65k Expected
Traders Hideout
CME Launches Bitcoin Volatility Futures June 1 -- First …
Cryptocurrency
Iran Update May 8: Still Reviewing MOU, Demands Reparati …
Traders Hideout
Strike Pause Holds, Oil Erases Monday Spike -- May CPI W …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
16 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643

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