Andrew, tks for your reply!

Sometimes for non-English speakers, some phrases are not easy to grasp.

The reason I insisted on this question is I am putting exactly on top of my run function, yet I still get warning 054

Code
DLLFUNC void run()
{
	brokerCommand(SET_PATCH, 16 + 32 + 64);
	NumCores = 12;
	assetList("AssetsDefault.csv");
	set(PLOTNOW + LOG + PARAMETERS + FACTORS + TICKS + RISKLIMIT);
	BarPeriod = 60;
	LookBack = 600;
	StartDate = 2019;
	NumWFOCycles = 12;
	DataSplit = 80;
	Capital = 2500;
	StartWeek = 72100;
	EndWeek = 52100;
	BarMode = BR_WEEKEND + BR_SLEEP;
	OptimalFRatio = 3;
	if (Train)
	{
		Detrend = TRADES;
	}

	if (ReTrain) {
		UpdateDays = -1;
		SelectWFO = -1;
		reset(FACTORS);
	}

	static std::map<std::string, bool> tradeOpen;
	static std::map<std::string, int> isTaken;
	if (is(INITRUN))
	{
		brokerCommand(SET_ORDERTEXT, (DWORD)LABEL);
	}

	while (asset(loop(Assets)))
	{

		MyAlgoGoesHere();
	}
}



I don't know if for DLLs there is a special way to declare the set_patch! If you could enlighten this again for me I'll be very thankful

best regards

Leo Hermoso