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,016 views
    2. thumb_up 4 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread

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

  #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?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
REcommedations for programming help
Sierra Chart
What broker to use for trading palladium futures
Commodities
Better Renko Gaps
The Elite Circle
Trade idea based off three indicators.
Traders Hideout
 
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

DramaticGoose,

welcome to futures.io. 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 Twitter 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,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

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 Twitter 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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts