Any coder to help modifying a strategy to trade at specified time ? - futures io
futures io



Any coder to help modifying a strategy to trade at specified time ?


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one energetic with 2 posts (0 thanks)
    2. looks_two Quick Summary with 1 posts (0 thanks)
    3. looks_3 fluxsmith with 1 posts (1 thanks)
    4. looks_4 redratsal with 1 posts (0 thanks)
    1. trending_up 2,179 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

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

 
Search this Thread
 

Any coder to help modifying a strategy to trade at specified time ?

(login for full post details)
  #1 (permalink)
 energetic 
hk
 
Experience: Intermediate
Platform: NinjaTrader
 
Posts: 54 since Apr 2010
Thanks: 19 given, 16 received

Any coder to help modifying a strategy to trade at specified time ?
i.e. I want to trade form last 2 hrs before market close.
thanks

Started this thread Reply With Quote

Can you help answer these questions
from other members on futures io?
1 min chart v-shape scan help please
ThinkOrSwim
Eurex Denali vs dxFeed
Sierra Chart
Is there inherently more opportunity in smaller markets?
Traders Hideout
MacdBB V402 NT804 + gradient + pullback not working on N …
NinjaTrader
TradingView help in improving Anchored Vwap
Platforms and Indicators
 
 
(login for full post details)
  #3 (permalink)
 redratsal 
Milan (I)
 
Experience: Advanced
Platform: Ninjatrader
Broker: Kinetick
Trading: FDAX,6E,CL,YM,NQ,ES
 
redratsal's Avatar
 
Posts: 1,653 since Oct 2010
Thanks: 1,215 given, 2,084 received



energetic View Post
Any coder to help modifying a strategy to trade at specified time ?
i.e. I want to trade form last 2 hrs before market close.
thanks


if (ToTime(Time[0]) > StartTime && ToTime(Time[0]) < EndTime)

Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #4 (permalink)
 energetic 
hk
 
Experience: Intermediate
Platform: NinjaTrader
 
Posts: 54 since Apr 2010
Thanks: 19 given, 16 received

thanks..........................



redratsal View Post
if (ToTime(Time[0]) > StartTime && ToTime(Time[0]) < EndTime)


Started this thread Reply With Quote
 
(login for full post details)
  #5 (permalink)
 fluxsmith 
Santa Maria
 
Experience: Advanced
Platform: NinjaTrader, ThinkOrSwim
Broker: Mirus/Zen-Fire
Trading: ES
 
Posts: 295 since May 2010
Thanks: 97 given, 322 received


redratsal View Post
if (ToTime(Time[0]) > StartTime && ToTime(Time[0]) < EndTime)

Keep in simple when you can (like above). But if you need to support a time range which spans local midnight, structure it like this (from a function wich receives Time[0] as a parameter named '_now', and returns a boolean as to if we're in the timespan):

 
Code
TimeSpan now = _now.TimeOfDay;
 
if ( startTime.CompareTo(endTime) < 0 ) { // Time range is intra-day
   if ( now.CompareTo(startTime) > 0
     && now.CompareTo(endTime) <= 0 )
   returntrue;
}
else                                      // Time range spans midnight
if ( now.CompareTo(startTime) > 0
  || now.CompareTo(endTime) <= 0 )
   returntrue;

returnfalse;


Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to fluxsmith for this post:


futures io Trading Community Platforms and Indicators NinjaTrader > Any coder to help modifying a strategy to trade at specified time ?


Last Updated on February 5, 2011


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Our 12-year anniversary w/ $$,$$$ prizes (check soon)

August
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), 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