Settings page on Reports

Is there a way to list parameters alphabetically or what is the order they are listed in currently?

Screenshot 2022-02-10 174825

Define them in YOUR FORMULA in order in which you want them to appear.

Here is the order of my parameters but they do not print out in this order, Am I missing something?

_SECTION_BEGIN ("Test Mode");

initEquity = Param("Initial Equity", 100000, 1, 1e8, 1);

nMaxPos = Param("Max Positions", 1, 5, 20, 5);		
acctMargin = 100;
pctPosSize = 100/nMaxPos * 100/acctMargin;	

entryTiming = Param("Entry Timing", 1, 0, 1, 1);	//  0 = Same Bar on Close, 1 = Next Bar at Open 
exitTiming = Param("Exit Timing", 1, 0, 1, 1);	 	//  0 = Same Bar on Close, 1 = Next Bar at Open 
interest = Param("Interest Rate", 0, 0, 10, .5);
usevariableinterest= ParamToggle("Variable Interest","No|Yes",0);	// When True, we will accumulate interest on any free cash in the account

doTrace = ParamToggle("Trace", "No|Yes", 0);
_SECTION_END();


////////////////////////////////////////////////////
// Strategy-Specific Optimization Parameters
_SECTION_BEGIN ("Strategy Parameters");
tkTBill = "%IRX";
tkOUV = ParamStr("OTC Up Volume", "#NASADV");//#NASADV use "V"//UVOLQ
tkODV = ParamStr("OTC Down Volume", "#NASDEC");//#NASDEC use "V"//DVOLQ


lenUVDdflt = Param("OTC Up Volume days", 10, 1, 20, 1);//default 10
lenUVD = Optimize("OTC Up Volume days", lenUVDdflt, 1, 20, 1);

lenDVDDflt = Param("OTC Down Volume days", 10, 1, 20, 1);//default 10
lenDVD = Optimize("OTC Down Volume days", lenDVDdflt, 1, 20, 1);

minBVRdflt = Param("Buy Level", 1.87, 1, 2.5, 0.05);//default 1.87
minBVR = Optimize("Buy Level", minBVRdflt, .5, 2.5, 0.05);

minSVRdflt = Param("Sell Level", .65, .3, 1, 0.05);//default .65
minSVR = Optimize("Sell Level", minSVRdflt, .5, 2.5, 0.05);

minDSdflt = Param("Days Since NVR", 65, 10, 100, 1);//default 65
minDS = Optimize("Days Since NVR", minDSdflt, 10, 100, 1);
_Section_End();

Sorry, I have re-checked it, they are not in that order because they are printed from hash map in hash order, not order of appearance. As of now, you can't change it.

UPDATE: I added alphabetical sorting now, so in future versions (6.41 and higher) parameters will appear in the alphabetical order.

2 Likes

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.