I also tried setting the maximum number of traded bars in a tmf, however the results did not change.

function tmf()
{
if(TradeIsOpen and TradeAlgo=="Algo1")
{
TradeExitTime=11;
}
return 8;

}

function Algo1()
{
algo("Algo1");
enterLong(tmf);
}


function Algo2()
{
algo("Algo2");
enterLong();
}

Last edited by Ger1; 06/27/18 09:25.