Objective functions, different results then test_log file

Posted By: anissyo

Objective functions, different results then test_log file - 05/25/21 02:47


Code

var objective()
{

print(TO_LOG," NumWinTotal+NumLossTotal : ");
print(TO_LOG,sftoa (NumWinTotal+NumLossTotal, 6));

	return NumWinTotal+NumLossTotal;
}





i get two different values beetween the lines i get in zorro when optimizing and in the text_log, the values in the test log are correct it's the exact number of trades but when trainning i get different result on the window of zorro where the objective resuts are showing

thank's in advance
Posted By: anissyo

Re: Objective functions, different results then test_log file - 05/25/21 03:57

FINALLY !! i get it : "In [Train] mode, trades always open 1 lot, phantom trades are converted to normal trades, and MaxLong/MaxShort have no effect."

i found this on the manuel, i think it's better for me to keep it this way, it's very clever to ignore MaxLong/MaxShort, it's a robust way of doing trainning.

i was having different result be cause multiple trades are oppened in training but not when i click test
© 2024 lite-C Forums