NexusFi: Find Your Edge


Home Menu

 





Strategy creating 95%-100% winning trades


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one shodson with 13 posts (10 thanks)
    2. looks_two pakricard with 8 posts (1 thanks)
    3. looks_3 gabga100 with 7 posts (1 thanks)
    4. looks_4 Big Mike with 7 posts (5 thanks)
      Best Posters
    1. looks_one sefstrat with 2.3 thanks per post
    2. looks_two shodson with 0.8 thanks per post
    3. looks_3 Big Mike with 0.7 thanks per post
    4. looks_4 cunparis with 0.6 thanks per post
    1. trending_up 100,672 views
    2. thumb_up 41 thanks given
    3. group 41 followers
    1. forum 92 posts
    2. attach_file 8 attachments




 
Search this Thread

Strategy creating 95%-100% winning trades

  #41 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,444 since Jun 2009
Thanks Given: 33,217
Thanks Received: 101,608


cunparis View Post
Mike - From what I understand Ninja cannot reliably backtest when one enters & exits on the same bar. You can enter or you can exit but not both on the same bar. I believe this limitation is for all bar types including tick. When you backtest a tick chart it doesn't go tick by tick, it uses the OHLC of the tick bar. Please correct me if I'm wrong.

I code a second PeriodType of Range 1, and do all order management on that BarsArray, regardless of the size of the signal bar/period.

So it is tick-by-tick for my purpose, my own stuff doesn't use anything that would require being updated if price doesn't actually move a tick. And it's much more efficient to use Range 1 than Tick 1.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
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?
ZombieSqueeze
Platforms and Indicators
REcommedations for programming help
Sierra Chart
Exit Strategy
NinjaTrader
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
33 thanks
Just another trading journal: PA, Wyckoff & Trends
28 thanks
Bigger Wins or Fewer Losses?
23 thanks
Tao te Trade: way of the WLD
23 thanks
GFIs1 1 DAX trade per day journal
21 thanks
  #42 (permalink)
 
gabga100's Avatar
 gabga100 
New York
 
Experience: Advanced
Platform: NT
Posts: 147 since Nov 2009
Thanks Given: 44
Thanks Received: 72

This is what I was talking about .....

And I can make the same for 400 trades...unfortunately too often back testing does not really help ....

What I do is to use a market replay of the exactly same day ( say the 18 th november) over and over and over

and each time I build a new strategy I test it on real historical time data to see what is good/improvable ...one can notice many many things .....and using the same day makes things easier ... but guys.... to many electronic player out there , and they can buy and sell in 800 micro seconds ( which I am sure it is faster than you)

That is why trend following becomes harder and harder ( at least on a small time frame) .....

I am sure everybody who trades noticed these V-shapes over and over .....

Attached Thumbnails
Click image for larger version

Name:	Example.png
Views:	870
Size:	1.30 MB
ID:	5284  
Reply With Quote
  #43 (permalink)
 
cunparis's Avatar
 cunparis 
Paris, France
 
Experience: Advanced
Platform: Market Delta & Ninjatrader
Trading: ES
Posts: 2,565 since Jun 2009
Thanks Given: 1,162
Thanks Received: 2,093



gabga100 View Post
This is what I was talking about .....

...

What I do is to use a market replay of the exactly same day ( say the 18 th november) over and over and over

I'm not sure what you're trying to say here. I mean I got the part about testing with market replay. But your strategy has so many parameters that finding a combination to give great performance would not be difficult.

How does this walk forward? How does it work in real time trading?

Follow me on Twitter Reply With Quote
  #44 (permalink)
 
cunparis's Avatar
 cunparis 
Paris, France
 
Experience: Advanced
Platform: Market Delta & Ninjatrader
Trading: ES
Posts: 2,565 since Jun 2009
Thanks Given: 1,162
Thanks Received: 2,093


Big Mike View Post
I code a second PeriodType of Range 1, and do all order management on that BarsArray, regardless of the size of the signal bar/period.

So it is tick-by-tick for my purpose, my own stuff doesn't use anything that would require being updated if price doesn't actually move a tick. And it's much more efficient to use Range 1 than Tick 1.

Mike

Hey Mike I just wanted to say your idea is brilliant. A friend asked me to code up a simple strategy to test out an idea and so I used your idea. Previously I'd enter with stops but with ninja you can't bracket so that meant trading only one side. With your approach I don't use stops, I just enter at market when my price is hit. This way I can bracket, reverse, do whatever I want.

Follow me on Twitter Reply With Quote
  #45 (permalink)
GreenTrade
Chicago
 
Posts: 2 since Jun 2009
Thanks Given: 0
Thanks Received: 0


Big Mike View Post
I code a second PeriodType of Range 1, and do all order management on that BarsArray, regardless of the size of the signal bar/period.

So it is tick-by-tick for my purpose, my own stuff doesn't use anything that would require being updated if price doesn't actually move a tick. And it's much more efficient to use Range 1 than Tick 1.

Mike

Mike, will you give some example code on this? I attempted to follow the example code on the NT forum but I could not get it to work correctly.

Thanks!

GT

Reply With Quote
  #46 (permalink)
 
gabga100's Avatar
 gabga100 
New York
 
Experience: Advanced
Platform: NT
Posts: 147 since Nov 2009
Thanks Given: 44
Thanks Received: 72


GreenTrade View Post
Mike, will you give some example code on this? I attempted to follow the example code on the NT forum but I could not get it to work correctly.

Thanks!

GT


I would be really interested in an example too .... not really fully getting it ...

Thank You

Reply With Quote
  #47 (permalink)
 
gabga100's Avatar
 gabga100 
New York
 
Experience: Advanced
Platform: NT
Posts: 147 since Nov 2009
Thanks Given: 44
Thanks Received: 72


cunparis View Post
I'm not sure what you're trying to say here. I mean I got the part about testing with market replay. But your strategy has so many parameters that finding a combination to give great performance would not be difficult.

How does this walk forward? How does it work in real time trading?


Hey this strategy , is probably not good, I was simply illustrating that because of NT and backtesting flaws , 98 % of trades profitable in back test is quite feasible....

Reply With Quote
  #48 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,444 since Jun 2009
Thanks Given: 33,217
Thanks Received: 101,608


GreenTrade View Post
Mike, will you give some example code on this? I attempted to follow the example code on the NT forum but I could not get it to work correctly.

Thanks!

GT


gabga100 View Post
I would be really interested in an example too .... not really fully getting it ...

Thank You

Briefly, from memory (am on laptop, no ninja here):

 
Code
                            
#init
Add(PeriodType.Range1); // bars array 1

#onbarupdate

if (BarsInProgress == 0)
{
// do your stuff

// go long
EnterLong(1DefaultQuantity"long " CurrentBar);

}

if (
BarsInProgress == 1)
{
// put order management here

Basically two things here --- the EnterLong statement is forcing the order to be placed on BarsArray 1, which is 1 tick of movement (Range 1).

Second, put your order management code (ie: trailing stop, whatever) inside the BarsInProgress == 1 section so it is called every 1 tick of movement as well.

Anything more complex than that, I am sorry to say I cannot show you code right now.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #49 (permalink)
 sharmas 
Auckland
 
Experience: Advanced
Platform: Ninja Trader
Broker: Zen-Fire
Trading: CL and ES
Posts: 778 since Apr 2010
Thanks Given: 3,822
Thanks Received: 750

Hi Shodson

Would you mind sharing your chart and indicator set up

Thanking you
Sharmas

Visit my NexusFi Trade Journal Reply With Quote
  #50 (permalink)
 Zoethecus 
United States of America
 
Experience: Advanced
Platform: NT
Posts: 1,145 since Aug 2009



gabga100 View Post
Hey this strategy , is probably not good, I was simply illustrating that because of NT and backtesting flaws , 98 % of trades profitable in back test is quite feasible....

This is VERY old news.

Reply With Quote




Last Updated on January 30, 2020


© 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