Example: Producing remote signals from HaasScript

stable
By Stephan in Miscellaneous Published October 2020 👁 1,905 views 💬 0 comments

Description

This is an example script to show how remote signals can be produced inside HaasScript. Please note: This script only works in Version 4 of the Haasbot, version 3 does not have support for this.
HaasScript
p = ClosePrices(1);

-- Make some sort of logic to trigger it
if (p[1] > 100000) then

  -- The public and secret code can be obtained at the Signals on
  -- the left menu.
  SaveRemoteSignal('publiccode', 'secretcode', SignalLong)

end

0 Comments

Sign in to leave a comment.

No comments yet. Be the first!