Thank you for your input Petra, but my very basic script just uses a simple stoploss with a set value, and doesn't move it. Here is the code:
function run()
{
StartDate = 20221012;
EndDate = 20221013;
StartMarket = 1430; // 2:30pm UTC equals 9:30am EST?
EndMarket = 2200; // 10:00pm UTC equals 5:00pm EST?
MaxLong = 1;
Fill = 0;
Slippage = 0;
Penalty = 0;
Stop = 10;
TakeProfit = 20;
BarPeriod = 5;
asset("US30");
var r = random();
if (r >= .90) enterLong();
}
Thank You!
ShawnM