Two Line Trading - Traders Hideout | futures io social day trading
futures io futures trading


Two Line Trading
Updated: Views / Replies:38,587 / 187
Created: by FredyMegaG Attachments:38

Welcome to futures io.

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

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

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

Reply
 38  
 
Thread Tools Search this Thread
 

Two Line Trading

  #11 (permalink)
Just a boy
Auckland, New Zealand
 
Futures Experience: Beginner
Platform: Sierra Chart
Broker/Data: AMP/CQG
Favorite Futures: Whatever moves in my timezone
 
Posts: 1,803 since Sep 2009
Thanks: 3,165 given, 1,372 received


cunparis View Post
I do not see how the trade frequency can make it more vulnerable to curve fitting. First, the parameters that I optimized are not for trade entry, so I'm not filtering out trades. I'm taking every inside bar breakout.

However I have to admit I do not have experience optimizing the target & stop for a strategy that doesn't use any indicators. In the past I've optimized moving averages and such and curve fitted perfect systems that didn't hold up.

In fact the only parameter that I optimized is the stop. Since the target optimized to 150 that effectively means no target, just exit on close.

I think this strategy captures a valid market behavior that breakouts of inside bars can be profitable. I'm not saying I'll trade it, i prefer to have more trade data. I just wanted to share because I think it's valid. if I have time later I'll try testing it on hourly or 30min bars..

Morning Cunparis

Did you use 30 min bars in your back testing? I thought Fredy was using daily bars (1440 min)?

Reply With Quote
 
  #12 (permalink)
Trade with the flow
Paris, France
 
Futures Experience: Advanced
Platform: Market Delta & Ninjatrader
Favorite Futures: ES
 
cunparis's Avatar
 
Posts: 2,563 since Jun 2009
Thanks: 1,157 given, 2,030 received

I got better results taking a breakout of the inside bar.

For historical minute charts, I often export CL & Euro minute data from tradestation and import into the ninja ##-## continous contract. Works great. That way I have 10+ years of data. I can do it for ES if you like.

Reply With Quote
 
  #13 (permalink)
Just starting out...
north east, usa
 
Futures Experience: Intermediate
Platform: ninjatrader
Broker/Data: Zen-fire
Favorite Futures: NQ, TF
 
Posts: 16 since Oct 2009
Thanks: 128 given, 4 received


I had a similar strategy on the NQ's using a 1600 tick chart on TOS data...probably be a 3200 tick or higher chart on NT.

I used a key reversal bar as entry signal and stop and reverse on the next key reversal bar signal. The s&r would not be automatically after the signal was generated, but would trail the candles/bars till the high/low of a candle was taken out.

Maybe someone kind enough could back test this for me, since i have tried it and had ZERO success (I am technically challenged....and math challenged)

Reply With Quote
 
  #14 (permalink)
Elite Member
Neubrandenburg, Germany
 
Futures Experience: Advanced
Platform: R
Favorite Futures: Stocks
 
wh's Avatar
 
Posts: 538 since Jun 2009
Thanks: 297 given, 480 received

@cunparis for your strategy you can easy use for target and stop this methods, i think is better then curve fitting ...

you take the average-range or median of the last x bars with a factor

 
Code
                            
int[] = new int[21];
            
               for(
int i 0d.Lengthi++)
            {
                
d[i] = (int)Math.Round((High[i] - Low[i])/TickSize,0);
                
                
            }

            
double av getAverageFromArray(d);
            
double med getMedianFromArray(d); 
 
Code
                            
private double getAverageFromArray(int[] dd)    
        {
        
            
int dblResult 0;
        
            foreach (
int dblValue in dd)
        
                
dblResult += dblValue;
        
            return 
dblResult dd.Length;
        
        }

         private 
double getMedianFromArray(int[] ee)
        {
            
int size ee.Length;
            
int mid size /2;
            
double median = (size != 0) ? (double)ee[mid] :
            ((double)
ee[mid] + (double)ee[mid-1]) / 2;
            return 
median;
        } 
best regards

Causality is the relationship between an event (the cause) and a second event (the effect), where the second event is a consequence of the first.
Reply With Quote
 
  #15 (permalink)
Trade with the flow
Paris, France
 
Futures Experience: Advanced
Platform: Market Delta & Ninjatrader
Favorite Futures: ES
 
cunparis's Avatar
 
Posts: 2,563 since Jun 2009
Thanks: 1,157 given, 2,030 received


steve2222 View Post
Morning Cunparis

Did you use 30 min bars in your back testing? I thought Fredy was using daily bars (1440 min)?

Ah the power of tradestation!

I use a 30 minute bar for entries but the inside bar is calculated on the daily.

Reply With Quote
 
  #16 (permalink)
Elite Member
Lisbon
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: Mirus Futures / Zen-fire
Favorite Futures: Es
 
FredyMegaG's Avatar
 
Posts: 59 since Dec 2009
Thanks: 19 given, 44 received

hey cunparis,

Can you teach me how to import historical ES data for Ninjatrader?

Im always on the lookout for these kind of setups (and some new ones im figuring out, ill post them if i find them to be reliable) but im stuck with only a couple of months worth of data....so im always afraid that something might have worked in the previous couple of months but not before...

hmmm i get it... youre trigger bar is in the 30 minutes when the limits of he hourly inside bar are broken.

I guess you get a fill much sooner... so youll probably benefit from that, but on the other hand, how do you know its not a fakeout? (ie, the limit of the outside bar arent broken)

Do you feel that most of the time, when the inside bar limits are broken, eventuall so its the ouside bar's?

Reply With Quote
 
  #17 (permalink)
Trade with the flow
Paris, France
 
Futures Experience: Advanced
Platform: Market Delta & Ninjatrader
Favorite Futures: ES
 
cunparis's Avatar
 
Posts: 2,563 since Jun 2009
Thanks: 1,157 given, 2,030 received


FredyMegaG View Post
hey cunparis,

Can you teach me how to import historical ES data for Ninjatrader?

Im always on the lookout for these kind of setups (and some new ones im figuring out, ill post them if i find them to be reliable) but im stuck with only a couple of months worth of data....so im always afraid that something might have worked in the previous couple of months but not before...

hmmm i get it... youre trigger bar is in the 30 minutes when the limits of he hourly inside bar are broken.

I guess you get a fill much sooner... so youll probably benefit from that, but on the other hand, how do you know its not a fakeout? (ie, the limit of the outside bar arent broken)

Do you feel that most of the time, when the inside bar limits are broken, eventuall so its the ouside bar's?

I will export the ES minute data from 1/2/2000 to 12/31/2009 later today. it takes a lot of cpu. Then you just do historical data -> import. I have already posted this for CL & Euro, look in the forum and/or file download section. I'll do ES later today.

The 30 min bar is only visual, it has no impact on the trade. It's so I can see inside the daily bars and confirm the strategy works properly. I could put 1 min or anything else, doesn't matter.

Tradestation is very good about filling inside a bar and doing bracketing. This is why I use TS for this sort of thing. For simple strategies TS blow Ninja out of the water. For very complex strategies Ninja blows TS away. But my experience is simple strategies work best.

Reply With Quote
 
  #18 (permalink)
Trade with the flow
Paris, France
 
Futures Experience: Advanced
Platform: Market Delta & Ninjatrader
Favorite Futures: ES
 
cunparis's Avatar
 
Posts: 2,563 since Jun 2009
Thanks: 1,157 given, 2,030 received

What's weird is that while programming your strategy I had made some logic mistakes and I got very good backtest results, 1.76 profit factor. I then fixed the logic mistakes thinking that would surely improve the results and it didn't. By the time I got done I couldn't remember the mistake version. Now 2 days later I'm kicking myself for not having figured it out Saturday.

Reply With Quote
 
  #19 (permalink)
Elite Member
Lisbon
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: Mirus Futures / Zen-fire
Favorite Futures: Es
 
FredyMegaG's Avatar
 
Posts: 59 since Dec 2009
Thanks: 19 given, 44 received

ahahah could it be that you were using the outside bar breakout on the initial strategy you tested? or perhaps taking profits at the end of the day instead of a target?

I'll check the ES historical data later on the day too!

Reply With Quote
 
  #20 (permalink)
Trade with the flow
Paris, France
 
Futures Experience: Advanced
Platform: Market Delta & Ninjatrader
Favorite Futures: ES
 
cunparis's Avatar
 
Posts: 2,563 since Jun 2009
Thanks: 1,157 given, 2,030 received



FredyMegaG View Post
ahahah could it be that you were using the outside bar breakout on the initial strategy you tested? or perhaps taking profits at the end of the day instead of a target?

I'll check the ES historical data later on the day too!

No there was an error in my logic for calculating an inside/outside bar and/or in the entry criteria. I will try to program it again and see if I can remember the mistake.

Reply With Quote

Reply



futures io > > > Two Line Trading

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Horizintal Line mohsin4you NinjaTrader 10 December 7th, 2011 10:59 PM
Coding help please for dashed line gever17 NinjaTrader Programming 10 January 4th, 2011 12:16 AM
Leased line? YJ78 Reviews of Brokers and Data Feeds 10 September 9th, 2010 11:53 AM
Line break bars use meyer99 NinjaTrader 7 July 14th, 2010 09:33 AM
# of Users On Line for the chat Todd Feedback and Announcements 2 June 13th, 2009 04:18 PM


All times are GMT -4. The time now is 07:56 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, 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
Page generated 2017-12-12 in 0.13 seconds with 20 queries on phoenix via your IP 54.234.255.29