futures io



Entries per day limit


Discussion in EasyLanguage Programming

Updated
    1. trending_up 2,831 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 150,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

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

 
Search this Thread
 

Entries per day limit

(login for full post details)
  #1 (permalink)
soacm
Bucharest, Romania
 
 
Posts: 71 since Mar 2022
Thanks: 38 given, 22 received

Hi, I have an intraday strategy that is active after the close of the regular session (after 18.00 exchange time) to 6.00. Since I want it to take only one trade per day I used the function entriestoday(date[0]) < 1. The issue is that if the strategy takes a trade between 18.00 and midnight and then closes it either if stop loss or target is hit, the function entriestoday(date[0]) does not stop the strategy from taking another trade after midnight if the entry criteria is met. Is there a way to get around it? Maybe a different function that refers to the entire regular session from open to close?

Thank you.

Reply With Quote

Can you help answer these questions
from other members on futures io?
Import failed: the ninjasceipt archive file may contain …
NinjaTrader
ninja trdaer order blocks, orice action ict
NinjaTrader
Interactive Brokers is going to offer Taiwan stocks
Brokers
NT lifetime commisons
Brokers
Tradingview Phone Call Alert
Trading Reviews and Vendors
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Where and How Do You Trade (via which device)?
25 thanks
Big Mike in Ecuador
20 thanks
New NinjaTrader
19 thanks
futures io site changelog and issues/problem reporting
16 thanks
Unsubscribe from Threads
14 thanks
 
(login for full post details)
  #2 (permalink)
 Rovo27 
Austin + TX/United States
 
Experience: Advanced
Platform: Ninjatrader 8
Broker: Rithmic
Trading: NQ
 
Rovo27's Avatar
 
Posts: 57 since Aug 2020
Thanks: 22 given, 78 received

The easiest way to do this would be to initialize an int i before any of your other strategy logic.
eg.
int i;
Next at the time that you want to begin trading, set i=0
eg.
if(ToTime(Time[0]) == 180000) i=0;
In the conditional if statement that would trigger your entry order, include
&& i < 1 and in the line after your entry order placement line, write i++;
eg.
if(CrossAbove(EMA(20),EMA(50),1) && i<1)
{
EnterLong();
i++;
}

Note: I don’t use EasyLanguage so this is based on NT8 C#. But the underlying logic principles still apply. Essentially, you need to avoid using the predefined function that will reset entries at midnight and manually increment an entry order count and reset it to zero when you want the next trading session to start.

Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to Rovo27 for this post:
 
(login for full post details)
  #3 (permalink)
soacm
Bucharest, Romania
 
 
Posts: 71 since Mar 2022
Thanks: 38 given, 22 received



Rovo27 View Post
The easiest way to do this would be to initialize an int i before any of your other strategy logic.
eg.
int i;
Next at the time that you want to begin trading, set i=0
eg.
if(ToTime(Time[0]) == 180000) i=0;
In the conditional if statement that would trigger your entry order, include
&& i < 1 and in the line after your entry order placement line, write i++;
eg.
if(CrossAbove(EMA(20),EMA(50),1) && i<1)
{
EnterLong();
i++;
}

Note: I don’t use EasyLanguage so this is based on NT8 C#. But the underlying logic principles still apply. Essentially, you need to avoid using the predefined function that will reset entries at midnight and manually increment an entry order count and reset it to zero when you want the next trading session to start.

Thank you, will give it a try.

Reply With Quote


futures io Trading Community Platforms and Indicators EasyLanguage Programming > Entries per day limit


Last Updated on July 1, 2022


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
     



Copyright © 2023 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), 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