Topic: Change code to trade ontick instead of onbar

Hi,

i am trying to change the code to let Portfolio trade onTick.

Can someone help out.

 //  if(Time[0]>barTime)
  //   {
  // barTime=Time[0];
      OnBar();
     }

this is not working. also i put the code from OnBar in Ontick.