Gamestudio Links
Zorro Links
Newest Posts
[MED] Import from FBX (2010) missing!!!
by USER0328. 09/03/26 18:03
Purchase A8 full licence version
by ukgamer. 08/30/26 14:27
ZorroGPT
by TipmyPip. 08/29/26 06:56
Retrieve optimize() variables order (edited)
by NorbertSz. 08/25/26 13:24
Max Number of Strategies in /Strategy folder
by Martin_HH. 08/17/26 07:54
Pause button for evaluation shell?
by AndrewAMD. 08/13/26 17:16
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 08/10/26 12:46
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (Quad), 1,471 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Student_64151, Koti
19230 Registered Users
Active Threads | Active Posts | Unanswered Today | Since Yesterday | This Week
Editors & Templates
Yesterday at 18:03
Hello! Try to install Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package (64bit and 32bit version). I recently had to deal with this myself. Only installing this package helped.
8 2,551 Read More
Jobs Wanted
09/02/26 18:15
117 66,720 Read More
Starting with Gamestudio
08/30/26 14:27
Is it possible to use PayPal to purchase the Pro version ??
6 1,133 Read More
Starting with Zorro
08/29/26 06:56
If any one has any doubts about the process, we shall all learn from you... : (there was an error in the previous file, so I uploaded a new code without the error.)
I suppose LibTorch will do much better...
250 90,792 Read More
Starting with Zorro
08/25/26 13:24
I found a possible workaround.

I am using a wrapper around the optimize() call that writes the parameter names, in call order, to a separate file:

Code

typedef struct ZINPUT_PARAM {
	var Value;
	var Min;
	var Max;
	var Step;
	bool OrderWritten;
} ZINPUT_PARAM;

...

static var resolveZInputParam(string Name, ZINPUT_PARAM* Param)
{
	if (!Param->OrderWritten) {
		file_append(OptimizeOrderFile, strf("%s\n", Name), 0);
		Param->OrderWritten = true;
	}

	return optimize(
		Name,
		Param->Value,
		Param->Min,
		Param->Max,
		Param->Step,
		0
	);
}



So when I get a .par file like this:

Code
EUR/USD,20,48,40,1.870


I also get a corresponding .order file like this:

Code
Param2
TrendPeriod
OtherSuperSecretParam


This lets me map the values in the .par file back to their corresponding parameters.
Is there a native Zorro function or mechanism for retrieving the order of the optimize() calls dynamically?
1 124 Read More
Zorro Future
08/17/26 07:54
Ok thanks for the feedback. Therefore, I have to continue with my work around until I extend my Zorro updates for Zorro S
12 1,237 Read More
Zorro Future
08/13/26 17:16
Here's my temporary workaround, which I injected into my copy of eval.c:
Code
#define PAUSE_RESUME ".\\_pause_.txt"
#ifdef PAUSE_RESUME
void pauseLoop() {
	if (Live)return;
	if (!file_length(PAUSE_RESUME)) return;
	print(TO_ANY, "\nJobs are PAUSED.");
	while (wait(0) && file_length(PAUSE_RESUME)) {
		if (msg("Resume Jobs?")) { file_delete(PAUSE_RESUME); break; };
	}
	print(TO_ANY, "\nJobs have RESUMED.");
}
#endif
DLLFUNC void evaluate()
{
#ifdef PAUSE_RESUME
	pauseLoop();
#endif

To pause, all I need to do is to make a file "_pause_.txt" in the Zorro folder with a nonzero number of characters in the body.
3 337 Read More
Jobs Wanted
08/10/26 12:46
Looking for new projects to score!
104 70,752 Read More
Zorro Future
08/07/26 11:47
We didn't want too many variables in the panel. Since both periods are the same in almost all our strategies, we combined it in a single variable. But youi can call phantom() from your strategy and disregard the version in the eval shell.
1 245 Read More
Blame the Manual
08/07/26 11:45
It was not the newest version. It will make it into the next beta.
1 200 Read More
Educational
08/06/26 21:25
Thanks
2 310 Read More

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1