How to check for Total Trades? - futures io
futures io



How to check for Total Trades?


Discussion in EasyLanguage Programming

Updated
    1. trending_up 3,808 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 1 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
 

How to check for Total Trades?

(login for full post details)
  #1 (permalink)
 FastNCurious 
saint louis MO
 
Experience: Intermediate
Platform: TradeStation
Trading: NQ, ES, YM, CL, GC
 
FastNCurious's Avatar
 
Posts: 149 since Oct 2017
Thanks: 95 given, 177 received

I would like to learn how to write code that would check to see how many trades have been taken this month or this year or this day. I have instances where what I am testing requires a trade counter to eliminate taking trades after the initial signal failed.

For instance, in plain english...

if total trades this month = 0 then begin

or

if total trades this year <=3 then begin

or

if total trades today <=4 then begin

This would be very useful as it puts a limit on how much you could lose in a given year, month, day.

Any pointers would be greatly appreciated.

Visit my futures io Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on futures io?
in depth understanding of last, bid, and ask volume in c …
NinjaTrader
Demo accounts order fill
Emini and Emicro Index
Tradovate + Jigsaw issues
Tradovate
Anyone ever use "Seasonax" website?
Trading Reviews and Vendors
Big Mo Indicator for NT8
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Is anyone actually making money?
52 thanks
An embarrassing, honest confession
37 thanks
Sierra vs. Ninja : why I chose .....
8 thanks
Institutional Grade Massive Data Dump for Quant Research …
5 thanks
Machine Learning Journal
5 thanks
 
(login for full post details)
  #2 (permalink)
 ShadowFox 
CO/USA
 
Experience: Intermediate
Platform: TradeStation, Multicharts
Trading: Stocks, Futures
 
ShadowFox's Avatar
 
Posts: 116 since Jun 2020
Thanks: 69 given, 156 received

Should be able to do this with a variable for tracking trades today or trades this month. Something like

Tradestoday(0),

Mydate(date)

If date <> mydate then begin //clear trade counter

Mydate = date;

Tradestoday = 0;

End;

If tradecondition = true the begin

Enter trade code

Tradestoday = tradestoday +1; //add to counter

End;

If you want to limit trades in a day just add that in the if statement before entering a trade.

Writing this on my phone so disregard the bad coding.

Visit my futures io Trade Journal Reply With Quote


futures io Trading Community Platforms and Indicators EasyLanguage Programming > How to check for Total Trades?


Last Updated on November 26, 2020


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