NexusFi: Find Your Edge


Home Menu

 





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


Discussion in TradeStation

Updated
    1. trending_up 2,008 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?
Datafeed for Atas
Platforms and Indicators
My Rant with AMP Futures
Trading Reviews and Vendors
Trump Media to sell instant access to market-moving soci …
Traders Hideout
No book, only a stair: journaling fills where price move …
Cryptocurrency
requesting .nrd replay files from 2026 spy and qqq
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
BERN ALGOS algo trading journal
3 thanks
NexusFi site changelog and issues/problem reporting
2 thanks
TopStep Trader disappointment
2 thanks
Want your NinjaTrader indicator created, free?
1 thanks
Running trading strategies on a VPS
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