LogoLogo
Back to HaasOnline.comSwitch to Trade Platform
3.x
3.x
  • Welcome
  • Getting Started
    • Using Local API Server
    • Authentication
    • Response
      • Error Codes
  • HaasScript
    • Using HaasScript
      • HaasScript Facts
      • Charting
      • Order Handling
      • Interval
      • Input Fields
      • Positions Handling
        • Fee correction
      • Position Information
      • Memory Management
      • Optimizations
      • Signal Handling
      • Trading
    • Script Editor
      • Syntax
      • Parameters
      • Interaction
    • Visual Editor
      • Blocks
      • Parameters
      • Flow Control
      • Interaction
    • Custom Commands
    • Tutorials
      • Trade Bot Guide
        • Creating A Trade Bot
          • Visual Editor Guide
          • Script Editor Guide
          • Custom Containers
        • Customizing Indicators
        • Customizing Safeties
        • Customizing Insurances
        • Creating Easy Indicators
      • Unmanaged Trading Guide
        • Executing Orders
        • Managing Orders
        • Managing Positions
        • Managing Wallet
      • Script Editor
        • Classes
        • MadHatter BBands
        • Percentage Price Change
      • Visual Editor
        • Importing Scripts
        • SmoothRSI
        • Scalper Bot
    • Commands
      • Array Helpers
      • Charting
      • Constants
      • Custom Commands Helpers
      • Easy Indicators
      • Easy Insurances
      • Easy Safeties
      • Equations
      • Flow Control
      • Input Fields
      • Input Settings
      • Mathematical
      • Memory Helpers
      • Miscellaneous
      • Order Handling
      • Order Information
      • Position Information
      • Position Prices
      • Price Data
      • Price Market Information
      • Profit Information
      • Settings
      • Signal Helpers
      • String Helpers
      • Technical Analysis
      • Technical Analysis Helpers
      • Time Information
      • Trade Actions (Managed)
      • Trade Actions (Unmanaged)
      • Trade Bot
      • Trade Market Information
      • Wallet
  • API Endpoints
    • Software API
    • Market Data API
    • Account Data API
    • Trade Data API
    • Advanced Order API
    • Trade Bot API
    • Custom Trade Bot API
    • ENUMS
    • Data Objects
  • Examples
    • Script Bots (C#)
      • Scalper Trade Bot
      • Flash Crash Trade Bot
    • Script Indicators (C#)
      • Indicator Script
      • Technical Analysis Library
    • Pshai Scripts (C#)
      • BBands Ext
      • BBands Ext v2
      • Chaikin A/D Line
      • Calibrator
      • Pshai's RVI
    • Scripted Driver
  • Other Resources
    • YouTube
    • Guides & Tutorials
    • Questions & Answers
    • Community Projects
  • Need Help?
    • Ask on Discord
    • Submit Support Ticket
Powered by GitBook
On this page
  • Few simple steps to follow...
  • Step 0
  • Step 1
  • Step 2
  • Step 3
  • Step 4
  • Step 5
  • Troubleshooting

Was this helpful?

  1. HaasScript
  2. Tutorials
  3. Visual Editor

Importing Scripts

This tutorial will show you how to import shared scripts into the editor for you to use

PreviousVisual EditorNextSmoothRSI

Last updated 5 years ago

Was this helpful?

If you've come across with shared Visual Editor scripts, you might have seen something like this:

NobwRAGmBcCMAsAGANGAmjJqDqMVgAk9UBxAVwEsATGMASQEEyAHAR2wgEVWBnZgTlgBRCgGUAzAHt+AJg
YVABUAnswCmMOTMQAOVAGFJAW2MBDAHZUAcmeObohdRQDW6iwYA2knuoAKAE4UAMbqPIpgRhYW6sEALpIB
Dk1LQAIgDyAGwUAF7i/ABCSgBGKvAASrCs6gBqBEKZdBFRMfEUkhbh0MAAuqh+ZgF26nHqSdDgtva06gAe
TjEaoaMOKodDyV6qyUAeo00ABmZp6+WzwE1FTuMGcX6lcAYhTqnsePl2AMnt4Ad2sZH+D3OP3SYWCQWYcU
loEVEZAA5iiwnCujBgOIZLAZMhcbAULjEJtSdlCXjYITxIgSToCaS5FTEPxWfBkPBdGSuTzOdzECyAOw6e
.....and so on

And you are probably here because you are unsure how to get this imported to your HTS, so let me tell you how to do just that.

Few simple steps to follow...

Step 0

Open Visual Editor from the left main menu panel:

Step 1

First off, we start by creating a new blank script in the Visual Editor:

Step 2

Step 3

Once we have our new script created, let's head on and click the Import Script button on the toolbar:

Step 4

A new window pops up again, this time with a huge text box. This is where we will copy-paste the scribbled code:

Step 5

After hitting Save we let HTS do its magic and after that, we should be able to see something like this:

And that's that!

Troubleshooting

If the type of your blank script is not the same as the one you are trying to import, you will see the errors in the Compile Log once you save the imported script the first time.

A new window will pop up. Depending on the type of script you are importing, select the Type appropriately. In this tutorial, we will be importing pshai's Simple Leverage Scalper (found here: ) so we will use the type Script :

https://www.haasscripts.com/t/pshaibot-simple-leverage-scalper-v3/
Successfully imported script