# Tutorial: Open and upload indicator

Download and install the Cursor editor: <https://www.cursor.com/downloads>, while installing make sure to check all the checkmarks (Picture #1)

<figure><img src="https://143033411-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvIxxwCB45eSMhYSnbt1g%2Fuploads%2Fgit-blob-01fc4b726935a43412766d9bb9f5f0d9058a10d1%2Fimage.png?alt=media" alt=""><figcaption><p>Picture #1</p></figcaption></figure>

Then, you have to install Node.js if you don't already have it. Use the link below.\
<https://nodejs.org/en>

After installing node.js, download the archive with the indicator example below and extract it to a convenient location.

{% file src="<https://143033411-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvIxxwCB45eSMhYSnbt1g%2Fuploads%2Fgit-blob-ec0d0552d72e3356982dd0a679c6102bc5e8108b%2FMoving%20Average.zip?alt=media>" %}

Open the extracted folder **"Moving Average"** and inside of it you should find another folder **"custom\_indicator"**, open it with Cursor (Picture #2 and #3).

<div><figure><img src="https://143033411-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvIxxwCB45eSMhYSnbt1g%2Fuploads%2Fgit-blob-ef4f58259874d60480c36185665b3e99b1f74510%2Fimage.png?alt=media" alt=""><figcaption><p>Picture #2</p></figcaption></figure> <figure><img src="https://143033411-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvIxxwCB45eSMhYSnbt1g%2Fuploads%2Fgit-blob-46c344fb78abadb1b7e07d7ef3a1c262d75d00ff%2Fimage.png?alt=media" alt=""><figcaption><p>Picture #3</p></figcaption></figure></div>

If you get a pop-up like this, click **"Yes, I trust the authors"**

<figure><img src="https://143033411-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvIxxwCB45eSMhYSnbt1g%2Fuploads%2Fgit-blob-9b8af8448edf5736b0ceec248d10fc41c9fbe892%2Fimage.png?alt=media" alt=""><figcaption><p>Picture #4</p></figcaption></figure>

Then, by clicking the icon shown on Picture #5 you should open the terminal and install the dependencies using the command `npm install`.

<figure><img src="https://143033411-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvIxxwCB45eSMhYSnbt1g%2Fuploads%2Fgit-blob-a19c3e20e9e0dbc75bf62da0795e75e5ffded71b%2Fimage.png?alt=media" alt=""><figcaption><p>Picture #5</p></figcaption></figure>

\
After installing the dependencies, you can start writing your indicator in the `index.ts` file.

Once the implementation is complete, you can build the project using the command `npm run build`.

{% hint style="success" %}
If you get an error that goes like this:

```
cannot be loaded because running scripts is disabled on this system.
For more information, see about_Execution_Policies at
https:/go.microsoft.com/fwlink/?LinkID=135170. At line:1 char:1
```

Then you need to enter command `Set-ExecutionPolicy RemoteSigned -Scope CurrentUser` and then try`npm install` and then `npm run build` command again.
{% endhint %}

After building the project, a file `my-indicator-project.js` (Indicator file name) will appear in the `dist` folder.

Upload this file to the FTO (Picture #6 and #7).

<div><figure><img src="https://143033411-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvIxxwCB45eSMhYSnbt1g%2Fuploads%2Fgit-blob-1208bc35a405cc7edb8abc3d30b14a0f36c5d450%2Fimage.png?alt=media" alt="" width="563"><figcaption><p>Picture #6</p></figcaption></figure> <figure><img src="https://143033411-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvIxxwCB45eSMhYSnbt1g%2Fuploads%2Fgit-blob-ea26b1aab0d9b771f77cd5a26b5f83bab9e28156%2Fimage.png?alt=media" alt="" width="563"><figcaption><p>Picture #7</p></figcaption></figure></div>

From there, your indicator should appear in **"My Indicators"** dropdown menu (Picture #8).

<figure><img src="https://143033411-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvIxxwCB45eSMhYSnbt1g%2Fuploads%2Fgit-blob-ab70e0a87c1ef0cccd4f164b5f1e7dc44051d858%2Fimage.png?alt=media" alt=""><figcaption><p>Picture #8</p></figcaption></figure>
