NexusFi: Find Your Edge


Home Menu

 





Need help changing the number of trades counter so it does not reset everyday.


Discussion in EasyLanguage Programming

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




 
Search this Thread
  #1 (permalink)
DramaticGoose
Dublin + Ireland
 
Posts: 3 since Jun 2020
Thanks Given: 2
Thanks Received: 0

Can someone please help me change this counter(its found in multicharts) so that it does not reset everyday but keeps its value.

 
Code
inputs: TargetDate_YYYMMDD( numericsimple ) ;                                       
                                               
variables: var0( 0 ) ;

var0 = 0 ;

for Value1 = 0 to 10 
	begin
	condition1 = EntryDate( Value1 ) = TargetDate_YYYMMDD ;
	if condition1 then 
		var0 = var0 + 1 ;
	end ; 

EntriesToday = var0 ;

Thank you for the help.


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
June 15 Peace Odds Surge From 3.6% to 12.25% After Trump …
Prediction Markets & Event Contracts
CFTC Approves First US Bitcoin Perpetual Futures -- Kals …
Traders Hideout
Fabrication or Framework? Irans Denied MOU Explains the …
Prediction Markets & Event Contracts
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
UMA Votes Tonight: Polymarkets $80M Strategy Bitcoin Bat …
Prediction Markets & Event Contracts
 
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643

DramaticGoose,

welcome to NexusFi. What metric are you looking for exactly? If you need the total number of trades you could for example use the reserved word TotalTrades.

Regards,

ABCTG



DramaticGoose View Post
Can someone please help me change this counter(its found in multicharts) so that it does not reset everyday but keeps its value.

 
Code
inputs: TargetDate_YYYMMDD( numericsimple ) ;                                       
                                               
variables: var0( 0 ) ;

var0 = 0 ;

for Value1 = 0 to 10 
	begin
	condition1 = EntryDate( Value1 ) = TargetDate_YYYMMDD ;
	if condition1 then 
		var0 = var0 + 1 ;
	end ; 

EntriesToday = var0 ;

Thank you for the help.


Follow me on X Reply With Quote
Thanked by:
  #3 (permalink)
DramaticGoose
Dublin + Ireland
 
Posts: 3 since Jun 2020
Thanks Given: 2
Thanks Received: 0


I'm using the code that was there because of the fact that it is a counter that can be reset when I added an if statement making the counter go back to zero and I am using the counters output, that why I needed it as it could be altered and the reserved word TotalTrades doesn't do that for me.
Thank you for the help ABCTG.

Regards,

DramaticGoose


Reply With Quote
  #4 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643

DramaticGoose,

the code is designed to count entries that fall on a particular date only and to a maximum of eleven trades per day. Instead of trying to adjust it, you could count the trades within a variable yourself and reset it whenever your reset conditions are met.

Regards,

ABCTG


DramaticGoose View Post
I'm using the code that was there because of the fact that it is a counter that can be reset when I added an if statement making the counter go back to zero and I am using the counters output, that why I needed it as it could be altered and the reserved word TotalTrades doesn't do that for me.
Thank you for the help ABCTG.

Regards,

DramaticGoose


Follow me on X Reply With Quote
Thanked by:
  #5 (permalink)
DramaticGoose
Dublin + Ireland
 
Posts: 3 since Jun 2020
Thanks Given: 2
Thanks Received: 0

Thank You ABCTG I did that and it fixed my problem.

Regards DramaticGoose.


Reply With Quote




Last Updated on June 5, 2020


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts