Is something like this possible? I suspect the options cannot be
changed on a per-bar basis. Any suggestions?


SetOption("SeparateLongShortRank", True );

if (market is trending up)
{
SetOption("MaxOpenLong", 7);
SetOption("MaxOpenShort", 3);
}
else if (market is trending down)
{
SetOption("MaxOpenLong", 3);
SetOption("MaxOpenShort", 7);
}
else // flat
{
SetOption("MaxOpenLong", 5);
SetOption("MaxOpenShort", 5);
}



Reply via email to