Sorry Petra, I mistakenly sent you the code of my very first "original" script before my few changes advised by user NSG. My very latest script is logically not much different and is the following:


Code
function run() 
{	
   set(LOGFILE);
   BarMode = BR_MARKET;
   //StartDate = 20221012;
   //EndDate = 20221013;	
	
   StartDate = 20221122;
   EndDate = 20221123;

   StartMarket = 1430; // 9:30am EST
   EndMarket = 2200;   // 5:00pm EST
   
   MaxLong = 1;
   Fill = 0;
   Slippage = 0;
   Penalty = 0;
   Stop = 10*PIP;
   TakeProfit = 20*PIP;

   BarPeriod = 5;
   asset("US30");
   //vars Prices = series(price());
	
   var r = random();
   if (r >= .60) enterLong();
}



...this was the version of the script that produced the mysterious "Trail" in the logfile, which I show in my post #487262 to user NSG (also in that post is part of the logfile, as you requested. I have attached the full logfile also). Nowhere in the above script do I move my stoploss or my profit target - they are static.

Thanks!
ShawnM

P.S: There are actually 2 instances of this "trail" occurrence in the logfile. Also my version of Zorro is 2.53.9. I just downloaded it and installed it about a week ago.

Attached Files
MyCont1Test_test.log (32 downloads)