Broken Tick function

 

I'm still learning so I thought about printing the value of a tick as it occurs using this code:

void OnTick()
  {
  double price = SymbolInfoDouble(_Symbol,SYMBOL_ASK);
  Print(price);
  }

But Instead of Showing one tick value, it instead shows me all tick values from 2021-01-01 till now.

 
Aymane Maizi:

I'm still learning so I thought about printing the value of a tick as it occurs using this code:

But Instead of Showing one tick value, it instead shows me all tick values from 2021-01-01 till now.

Is this in a backtest?

 
Keith Watford:

Is this in a backtest?

Sorry I'm new to this, but do you mean Strategy Tester by back testing then yes.
 
Aymane Maizi:
Sorry I'm new to this, but do you mean Strategy Tester by back testing then yes.

Then of course it will show all the Ask values for the period of the test.

 
Keith Watford:

Then of course it will show all the Ask values for the period of the test.

Thanks ! my problem was very stupid but I would've never solved it if someone didn't address me xd
Reason: