define your code inside fce tick()
When the TICKS flag is set, the tick function is called at any new price quote in the historical data.

Code
// print every price quote in a file
function tick()
{
  
   var dAsk=priceClose(); 
}

function run()
{
   if (is(INITRUN))
   {
      set(TICKS);   // before asses
   }
}

Last edited by Grat; 06/12/20 07:44.