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,521 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?
Iran Fired a Missile at Israel Last Night. The $8M June …
Prediction Markets & Event Contracts
CME Cuts Precious Metals Margins Up to 21% Starting Toda …
Commodities
Powell in 48 Hours: Word Markets Give 78% on Inflation, …
Prediction Markets & Event Contracts
April Jobs Beat Flips Fed Hike Odds Past 52% for First T …
Traders Hideout
Rubios Good News Within Hours and the 30-Day Math: Why H …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
197 thanks
Sober Journey With S&P
27 thanks
30 Sessions
20 thanks
Volume Indicators
8 thanks
BERN ALGOS algo trading journal
8 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,642

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,642

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