NexusFi: Find Your Edge


Home Menu

 





Certain times excluded from trading


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Big Mike with 4 posts (0 thanks)
    2. looks_two vast with 4 posts (0 thanks)
    3. looks_3 piersh with 1 posts (0 thanks)
    4. looks_4 MXASJ with 1 posts (0 thanks)
    1. trending_up 5,658 views
    2. thumb_up 3 thanks given
    3. group 3 followers
    1. forum 10 posts
    2. attach_file 0 attachments




 
Search this Thread

Certain times excluded from trading

  #11 (permalink)
 
shodson's Avatar
 shodson 
OC, California, USA
Quantoholic
 
Experience: Advanced
Platform: IB/TWS, NinjaTrader, ToS
Broker: IB, ToS, Kinetick
Trading: stocks, options, futures, VIX
Posts: 1,976 since Jun 2009
Thanks Given: 533
Thanks Received: 3,710

All of my strategies have somethig like this

 
Code
                            
protected void OnBarUpdate()
{
   if (
IsTimeToTrade)
   {
      if (
PositionIsFlat)
      {
         
// Look for entry signals
      
}
   }
}

private 
bool PositionIsFlat get { return Position.MarketPosition == MarketPosition.Flat; } }

// only trade 6:30 am - 1:00 pm (West Coast)
private bool IsTimeToTrade get { return ToTime(Time[0]) > 63000 && ToTime(Time[0]) <= 130000; } } 

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
What broker to use for trading palladium futures
Commodities
REcommedations for programming help
Sierra Chart
Discipline isnt about fortitude. Its about conviction!
Psychology and Money Management
Cheap historycal L1 data for stocks
Stocks and ETFs
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Funded Trader platforms
72 thanks
Spoo-nalysis ES e-mini futures S&P 500
18 thanks
The Trading Pit "Futures VIP" Account Journal
15 thanks
Self sabotage reframed
15 thanks
GFIs1 1 DAX trade per day journal
14 thanks




Last Updated on August 7, 2009


© 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