Skip to content

Use Signals

HaasOnline TradeServer Cloud gives you the ability to register signals. These signals can be used in several different ways.

For example, use them to send buy or sell signals from HaasScript to another HaasScript or from an external source (e.g., TradingView) to HaasScript.

Guided Tour

How to use Signals with Haasonline TradeServer Cloud

Registering the Signals

On the signal management page, you can register your own private signals. Give them a name and description, and in return you'll get a public and secret key.

Producing Signals

For the signal production, you will need your previously generated public and secret key. This is for safety reasons.

Producing signals can be done in two ways:

  1. Inside a HaasScript, by using the SaveRemoteSignal(public,secret,signal) command
  2. HaasScript example, https://www.haasscripts.com/t/example-producing-remote-signals-from-haasscript/
  3. Externally with a webhook by calling the following URL:
  4. https://cloud.haasapi.com/SignalAPI.php?channel=STORE_SIGNAL&id=&secret=&signal=
  5. Fill in id with your signal's public key, secret with its secret key, and signal with one of the IDs below. The email you receive after creating a signal contains these URLs ready to copy.
  6. Webhook Signal ID Options:
    • 1 = Long (or Buy)
    • 2 = Short (or Sell)
    • 3 = ExitPositions (closes all open positions)
    • 4 = Exit long
    • 5 = Exit short
    • 6 = Signal Reserved A (free to be used for whatever goals)
    • 7 = Signal Reserved B (free to be used for whatever goals)
  7. TradeServer Enterprise users: replace https://cloud.haasapi.com with your own server's address.

Reading Signals

Reading signals is done using the public key from inside HaasScript. The command looks like this:

signal = GetRemoteSignal(public)

In this case, the signal which comes back can just be compared to the common signals, like SignalLong, SignalShort, SignalExitLong and so on.

Example: https://www.haasscripts.com/t/example-remote-signals-combined-with-managed-spot-trading/

Example: https://www.haasscripts.com/t/example-remote-signals-combined-with-managed-leverage-trading/\