How to limit the number of buys per day when operating on short time frames? - EasyLanguage Programming | futures io social day trading
futures io futures trading


How to limit the number of buys per day when operating on short time frames?
Updated: Views / Replies:484 / 4
Created: by TornadoES 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
 

How to limit the number of buys per day when operating on short time frames?

  #1 (permalink)
Trading Apprentice
Madrid, Spain
 
Futures Experience: Beginner
Platform: TradeStation
Favorite Futures: Emini Es
 
Posts: 7 since Feb 2016
Thanks: 7 given, 1 received

How to limit the number of buys per day when operating on short time frames?

Hi everyone!

I am developing a system for the E-mini S&P and I am having some troubles limiting the number of trades per day. I have searched in the forum and i have found that there are some functions and reserved words such as entriestoday or entrydate which could be useful to limit the number of trades per day. However, they are limited to 10 positions ago and I would like to set the maximum number of buys to 25 or 30 per day.

Has anyone made a script that sets a limit on how many buys or trades can be traded per day? Anyone could give me some advice on how I could do it?

Thanks in advance.

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)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,527 since Apr 2013
Thanks: 229 given, 854 received
Forum Reputation: Legendary


TornadoES,

use a simple counter. Each time your signal enters a new position, you increment the counter. When you evaluate your entry conditions you use this counter to check that it's smaller than the number of trades per day that you allow.
On the first tick of the new day you reset the counter. This should get you what you want while being more flexible.

Regards,

ABCTG

Reply With Quote
The following 2 users say Thank You to ABCTG for this post:
 
  #4 (permalink)
Trading Apprentice
Madrid, Spain
 
Futures Experience: Beginner
Platform: TradeStation
Favorite Futures: Emini Es
 
Posts: 7 since Feb 2016
Thanks: 7 given, 1 received

I have tried to code a counter following your instructions but it seems like it doesn't limit the buys. Here is my code, maybe i have committed some mistakes and that is why it doesn't work well.

Inputs: length(20),Distance(2);

Vars: HigherBand(0),LowerBand(0),av(0),cont(0), apertura(0), cierre(0);

HigherBand = Average(c,length) + Distance*stdDev(c,length);
LowerBand = Average(c,length) - Distance*stdDev(c,length);
av = average(c,length);

cont = 0;
apertura = 1530;
cierre = 2200;

If higherband > lowerband and apertura <= time and time <= cierre then begin

if marketposition = 0 and cont <= 25 then begin
Buy ("compra") next bar at LowerBand limit;
cont = cont + 1;
end;

if marketposition = 1 and H >= av then begin
Sell next bar at Higherband limit;
end;
end;

If cierre > time then cont = 0;

Reply With Quote
 
  #5 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,527 since Apr 2013
Thanks: 229 given, 854 received
Forum Reputation: Legendary

TornadoES,

you reset the counter on every code cycle and not just on the first tick of the day. The second thing I noticed is that you increment the counter when you send the order, but as you use a limit order you will run into situations where you increment the counter although the signal didn't enter.

Regards,
ABCTG

Reply With Quote
The following user says Thank You to ABCTG for this post:

Reply



futures io > > > > > How to limit the number of buys per day when operating on short time frames?

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
Limit Strategy backtesting based on time of day blenderking NinjaTrader Programming 4 July 2nd, 2016 11:23 AM
How to set daily limits on number of buys per day WHOARU EasyLanguage Programming 4 March 21st, 2016 07:10 PM
Day Trading Currency Futures W/Multiple time frames ESFXtrader Currency Futures 82 December 21st, 2014 07:27 PM
Time frames and charts spikoloco Traders Hideout 10 February 22nd, 2012 08:49 PM
Buys and Sells not matching in number richw NinjaTrader Programming 8 February 22nd, 2011 07:15 PM


All times are GMT -4. The time now is 01:45 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-13 in 0.20 seconds with 19 queries on phoenix via your IP 54.92.201.232