NexusFi: Find Your Edge


Home Menu

 





Opinions on COBC set to false in strategies


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one jackyd with 6 posts (0 thanks)
    2. looks_two caprica with 4 posts (0 thanks)
    3. looks_3 BigDog with 3 posts (2 thanks)
    4. looks_4 sefstrat with 3 posts (1 thanks)
    1. trending_up 6,308 views
    2. thumb_up 3 thanks given
    3. group 4 followers
    1. forum 17 posts
    2. attach_file 0 attachments




 
Search this Thread

Opinions on COBC set to false in strategies

  #11 (permalink)
 
jackyd's Avatar
 jackyd 
Calgary Canada
 
Experience: Intermediate
Platform: Ninja
Broker: IB/Kinetic
Trading: 6E, CL
Posts: 47 since Jun 2009
Thanks Given: 44
Thanks Received: 20


BigDog View Post
trying working limit orders with COBC=false... you should get better results

Hey bigdog, do you mean adjusting limit orders on the entry side or the exit side? or maybe both.

I was thinking about a entry limit order approach that would escalate into a market order after a certain number of ticks/time elapsed based on price action, but haven't had time to do anything with it yet. Is that the sort of thing you're talking about?

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Better Renko Gaps
The Elite Circle
How to apply profiles
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
35 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
19 thanks
GFIs1 1 DAX trade per day journal
16 thanks
Spoo-nalysis ES e-mini futures S&P 500
14 thanks
  #12 (permalink)
BigDog
Chicago
 
Posts: 60 since Jun 2009
Thanks Given: 0
Thanks Received: 17


jackyd View Post
Hey bigdog, do you mean adjusting limit orders on the entry side or the exit side? or maybe both.

I was thinking about a entry limit order approach that would escalate into a market order after a certain number of ticks/time elapsed based on price action, but haven't had time to do anything with it yet. Is that the sort of thing you're talking about?


I've had pretty good results with buying or selling say -1/+1 from the bid/ask

Reply With Quote
  #13 (permalink)
 
sefstrat's Avatar
 sefstrat 
Austin, TX
 
Experience: Advanced
Platform: NT/Matlab
Broker: Interactive Brokers
Trading: FX majors
Posts: 285 since Jun 2009
Thanks Given: 20
Thanks Received: 768



jackyd View Post
I like testing in sim mode, but I just wish there was a way to get the output into a log file instead of that stupid window. I'll start using market replay more once I have my second system built, but right it just isn't practical with my setup.

It's nice to hear how people like yourself that are having success approach things, and how you utilize the tools.

You can easily write to a custom log file from your strategy using the C# StreamWriter class, check the sample code here: How to read from and write to a text file by using Visual C#

Also you can run a second instance of NT inside a virtual machine without needing a second computer (assuming your main computer isn't really outdated). I do all my development and testing in VMs while my live strategies run on the host OS, it makes strategy development *much* more pleasant =)

You can download VM software from VirtualBox

Reply With Quote
Thanked by:
  #14 (permalink)
 
jackyd's Avatar
 jackyd 
Calgary Canada
 
Experience: Intermediate
Platform: Ninja
Broker: IB/Kinetic
Trading: 6E, CL
Posts: 47 since Jun 2009
Thanks Given: 44
Thanks Received: 20


sefstrat View Post
You can easily write to a custom log file from your strategy using the C# StreamWriter class, check the sample code here: How to read from and write to a text file by using Visual C#

Also you can run a second instance of NT inside a virtual machine without needing a second computer (assuming your main computer isn't really outdated). I do all my development and testing in VMs while my live strategies run on the host OS, it makes strategy development *much* more pleasant =)

You can download VM software from VirtualBox

Very cool sef, thank you. Looks like I have some homework to do

Started this thread Reply With Quote
  #15 (permalink)
BigDog
Chicago
 
Posts: 60 since Jun 2009
Thanks Given: 0
Thanks Received: 17

As far as testing out your strategy... I'd go with Live Sim first, and if not that then Market Replay...

You will see discrepancy with the two... with Live Sim obviously giving you a more realistic view...

Reply With Quote
  #16 (permalink)
 MXASJ 
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 800

The logic of COBC=true when using a Close[0] does my head in. Close[0] with COBC=true would be Close[1], right?

I'm playing with some last bar [1] && bar[0] COBC=false code now having seen my strat miss things I wanted it to trade. Probably the most frustrating thing I've been fighting is knowing why or why not my strat code takes a trade.

FWIW I backtest using market replay data 1x speed after hours and forward test on live sim data during the hours I trade. Slow and painful but more accurate.

Reply With Quote
  #17 (permalink)
 
caprica's Avatar
 caprica 
USA
 
Experience: Master
Platform: NinjaTrader
Posts: 155 since Jul 2009
Thanks Given: 45
Thanks Received: 114


MXASJ View Post
The logic of COBC=true when using a Close[0] does my head in. Close[0] with COBC=true would be Close[1], right?

I'm playing with some last bar [1] && bar[0] COBC=false code now having seen my strat miss things I wanted it to trade. Probably the most frustrating thing I've been fighting is knowing why or why not my strat code takes a trade.

FWIW I backtest using market replay data 1x speed after hours and forward test on live sim data during the hours I trade. Slow and painful but more accurate.

no. [0] means the last "bar" whether the bar is 1 tick in length (cobc false) or xx length (cobc true, based on chart size). for instance if cobc is false then [0] always represents the last tick unless you specifically state FirstTickOfBar.

turn TraceOrders = true in Initialize() and open output window if you want to see more debug info to figure out what is going on. throw in a few Print(Time[0] + "your message"); statements to see where things are firing in your script.

"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

Reply With Quote
  #18 (permalink)
 MXASJ 
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 800

Adding TraceOrders=true now! Thanks. So far the change on COBC true to false seems to be helping. I'm on 5 min bars.

Reply With Quote




Last Updated on July 28, 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