Tutorial: Open and upload indicator
This page will guide you how to install Cursor IDE and how to upload your custom indicator to FTO.
Download and install the Cursor editor: https://www.cursor.com/downloads, while installing make sure to check all the checkmarks (Picture #1)

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.
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).


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

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

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
.
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 trynpm install
and then npm run build
command again.
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).


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

Last updated