#include <profile.c>
void run()
{
set(TESTNOW|PLOTNOW|PARAMETERS|LOGFILE|NOLOCK|PRELOAD);
StartDate = ifelse(Live, NOW, 20210401);
BarPeriod = 2;// 1440;
BarZone = CET;
EndDate = 20251130;
resf(BarMode, BR_WEEKEND); // allow weekend trading
LookBack=150;
setf(TradeMode,TR_POS);
MaxLong = MaxShort = 1;
while (asset(loop("BNBUSDT")))
{
/// - Test that lifetime means trade is correctly closed
if (Bar - StartBar > 1 and NumOpenLong < 1) return quit("\nTEST OF BINANCE FUTURES COMPLETED");
LifeTime = 1;
if (NumOpenLong < 1 and !is(LOOKBACK)) enterLong();
}
}