1. I will paste the code at the bottom of this post.

2. Zorro used to setup the entry stop levels every Friday as one would expect.
Ie the console would display something like “USD/CHF entry long stop @ 1.05” and do this for all assets at 12am Friday UTC time. From there it would wait until price crossed these thresholds, then it would enter (or not if price didn’t cross the threshold).

Since the crash and installation of version 1.34, it will not do this unless a smaller bar period is used. It works on bar periods from 1 minute to 720 minutes but not at 1440 minutes (which is what the trading system requires).

3. It was working under the previous Zorro version which was 1.32 I believe. After the vps crash I upgraded to 1.34. I can't say if the issue is connected to 1.34.

Here is the code I tried on Friday using 30 minute bars in an attempt to get it to setup properly once again.

include <profile.c>

function tradeOneNightStand() {
TimeFrame = 48;
vars Price = series(price());
vars SMA10 = series(SMA(Price, 10));
vars SMA40 = series(SMA(Price, 40));

set(PARAMETERS+FACTORS);

Margin = 0.02 * (Capital + WinTotal-LossTotal);

//Stop = 150 * PIP;

var BuyStop,SellStop;

BuyStop = HH(10) + 1*PIP;
SellStop = LL(10) - 1*PIP;

if (dow() == 5 && NumOpenLong == 0 && NumPendingLong == 0 && SMA10[0] > SMA40[0])
enterLong(0,BuyStop);
else if (dow() == 5 && NumOpenShort == 0 && NumPendingShort == 0 && SMA10[0] < SMA40[0])
enterShort(0,SellStop);

if (dow() != 5 && dow() != 6 && dow() != 7){
exitLong();
exitShort();

}
}
//split oil asset from currencies because of outsized positions
function tradeOil(){
TimeFrame = 48;
asset("USOil");
vars Price = series(price());
vars SMA10 = series(SMA(Price, 10));
vars SMA40 = series(SMA(Price, 40));

set(PARAMETERS+FACTORS);

Margin = 0.005 * (Capital + WinTotal-LossTotal);

//Stop = 150 * PIP;

var BuyStop,SellStop;

BuyStop = HH(10) + 1*PIP;
SellStop = LL(10) - 1*PIP;

if (dow() == 5 && NumOpenLong == 0 && NumPendingLong == 0 && SMA10[0] > SMA40[0])
enterLong(0,BuyStop);
else if (dow() == 5 && NumOpenShort == 0 && NumPendingShort == 0 && SMA10[0] < SMA40[0])
enterShort(0,SellStop);

if (dow() != 5 && dow() != 6 && dow() != 7 ){
exitLong();
exitShort();}
}

function run() {

LookBack = 40*48;
Verbose = 14;
BarPeriod = 30;
StartDate = 2005;
Capital = 50000;
// NumWFOCycles = 3;

// method 2: invest the square root of the total profit
// Margin = OptimalF * Capital * sqrt(1 + max(0,WinTotal-LossTotal)/Capital);

//while(asset(loop("AUD/CAD","USD/SEK","USD/JPY","USD/HKD","USD/CNH","USD/CHF","USD/CAD","NZD/USD","NZD/JPY","GBP/USD",
//"GBP/NZD","GBP/JPY","GBP/CHF","GBP/CAD","GBP/AUD","EUR/USD","EUR/JPY","EUR/GBP","EUR/CHF","EUR/CAD",
//"EUR/AUD","CHF/JPY","CAD/JPY","AUD/USD","AUD/NZD","AUD/JPY")))

while(asset(loop("USD/CHF","USD/JPY","GBP/USD","EUR/USD","EUR/JPY","USD/CAD")))
{
tradeOneNightStand();
}
tradeOil();

//ColorUp = 0;
//ColorDn = 0;
//ColorEquity = 0;
//plotTradeProfile(20);
//plotMAEGraph(-1);
//plotPriceProfile(10,0);
//plotQuarterProfit();
//plotMonthProfit();
plotMonthProfit();
}