I have a problem when i build my strategy

I having trouble when i optimize the strategy (In-Sample) i select this settings:

  • 1 Tick for High Order Fill Resolution
  • Optimizer: “Genetic” ​
    After selecting the best settings, and run backtest (Out-of-Sample) i select this settings:
  • Tick replay
    However, the problem is that when testing the strategy on the chart (i enable tick replay), I find a difference in the results between strategy analyzer backtest and the chart.
    is the problem that I’m using the settings incorrectly?​
    Please help me determine the best settings​
    Thanks