MTF trouble with EntriesPerDirection - NinjaTrader Programming | futures io social day trading
futures io futures trading


MTF trouble with EntriesPerDirection
Updated: Views / Replies:601 / 2
Created: by jordis Attachments:0

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
 
Thread Tools Search this Thread
 

MTF trouble with EntriesPerDirection

  #1 (permalink)
Elite Member
Mobile, Alabama
 
Futures Experience: Beginner
Platform: NinjaTrader, TOS
Favorite Futures: Stocks
 
Posts: 29 since Sep 2011
Thanks: 6 given, 4 received

MTF trouble with EntriesPerDirection

OK, so I've got an mtf strategy that looks for a condition to be met on a 5 minute indicator, once that condition is met the strategy looks for another condition to be met on a 1 minute indicator. When both of these are true, the strategy begins entering trades once per minute until either condition is no longer met.

This much of it works just fine.

Well, after exporting 12 years worth of trades to excel and running many hours of low-tech, excel-based analysis, I have come to the conclusion that after a certain number of entries in one direction (ie. # of trades entered with the 5 minute condition being met) the odds of profit/success rapidly fall off a cliff (<50%). So, what I want to do is to limit my number of entries to a fixed amount under the 5 minute condition. Once the max entries has been reached, I want to wait until the 5 minute condition resets and is met again.

With what I have so far I am accidentally only limiting my EntriesPerDirection for the 1 minute time frame. This means that if the 5 minute condition stays met and the 1 minute condition cycles on and off I keep entering into trades in blocks of my maximum EntriesPerDirection. I guess what I'm really doing is setting EntriesPerDirection on the 1 minute scale and not the 5 minute scale.

So, can anyone possibly help me figure out what I need to do to limit my EntriesPerDirection under the 5 minute time frame condition instead of the 1 minute?

Below are the basic bones of my code.

 
Code
protected override void Initialize()
      {
	
		EntriesPerDirection = 5; // So I'm guessing this isn't where I need to set my EntriesPerDirection
     		EntryHandling = EntryHandling.AllEntries; 
		Add(PeriodType.Minute, 5); 
                Add(WMA(3));
		Add(WMA(6));
                Add(WMA(10));
                Add(ADX(8));
		CalculateOnBarClose = true;
        }

 
        protected override void OnBarUpdate()
       
		
		{
	    //trades are opened and closed on the primary time frame, which is 1 minute		
            if (BarsInProgress == 0)
				
    {				
		
            {
                //Exit all trades after a fixed amount of time.
            	ExitLong("c"+Time[-1], "long"+Time[10]);
		ExitShort("c"+Time[-1], "short"+Time[10]);
            }
	
				
           
            //This part is the stripped down version of my code to enter long positions. 
    
              if (5 minute condition)
              {
		if(1 minute condition)
       		   {

                    EnterLong(DefaultQuantity, "long"+Time[0]);
		    SetStopLoss("long"+Time[0], CalculationMode.Percent, stopLoss , true);					
                }
        }	}
	}        // This part is the stripped down version of my code to enter short positions.
		 if (5 minute condition)
                  {
                    if(1 minute condition)
                     {

                    EnterShort(DefaultQuantity, "short"+Time[0]); 
		    SetStopLoss("short"+Time[0], CalculationMode.Percent, stopLoss , true);
                }
        }	
          
    }
    }

I appreciate the help,
Jordis

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
las vegas
 
Futures Experience: Intermediate
Platform: Sierra Chart
Broker/Data: Velocity/IB
Favorite Futures: 6E
 
Posts: 1,147 since Feb 2010
Thanks: 304 given, 836 received


Maybe create a counter, something like

if (5 minute condition)
{
counter[0] = 0
if(1 minute condition && counter[0]<=5)
{
EnterLong(DefaultQuantity, "long"+Time[0]);
SetStopLoss("long"+Time[0], CalculationMode.Percent, stopLoss , true);
counter[0] = counter[1]+1;
}

Reply With Quote

Reply



futures io > > > > > MTF trouble with EntriesPerDirection

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
MTF BMTCollectiveMA? Possible? Doppio The Elite Circle 9 November 22nd, 2011 03:25 PM
MTF Indicator ttmarok ThinkOrSwim 0 September 12th, 2011 05:37 PM
Trying a MTF version of TSSuperTrend Trader.Jon NinjaTrader Programming 3 March 7th, 2011 09:33 AM
MTF Coding Question togier NinjaTrader Programming 2 December 7th, 2010 01:35 AM
MTF Indicators diverdan EasyLanguage Programming 3 November 13th, 2010 06:23 PM


All times are GMT -4. The time now is 04:05 AM.

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.07 seconds with 19 queries on phoenix via your IP 54.82.112.193