---
title: How does the preview in the editor section work?
slug: how-does-the-preview-in-the-editor-section-work
docTags: 
createdAt: 2022-06-16T16:18:07.000Z
---

Script preview gives you a glimpse of how your strategy would execute during a preview. It runs your script on the last 5000 candles. You can open up the settings of the preview by clicking the little cog in the bottom right under the chart.

::Image[]{src="https://api.archbee.com/api/optimize/sLyofYuHQt3L9DD4FlP8D/Jzx7WNBmCjhIpCnYbnAsA_image.png" size="66" width="1134" height="822" position="flex-start" showCaption="false"}

Once you click on it, it opens up a window to backtest, run paper trade or live trade and at the bottom, we have an update preview button.

::Image[]{src="https://api.archbee.com/api/optimize/sLyofYuHQt3L9DD4FlP8D/vBqopT3xK7IhegN6WfmXA_image.png" size="48" width="632" height="178" position="flex-start" showCaption="false"}

Just click on it, and it gives a preview of the last 5000 candles. You can also refresh your script performance preview by clicking on a small icon just above the terminal.

::Image[]{src="https://api.archbee.com/api/optimize/sLyofYuHQt3L9DD4FlP8D/tflIQrzm0JVOM5HwXh_QD_image.png" size="40" width="690" height="250" position="flex-start" showCaption="false"}

