Example: Remote signals combined with managed spot trading

0 44 Views No Comments 2 months ago
  • This is an example script to show how remote signals can be read inside HaasScript and how to handle it for managed spot trading.

    HaasScript Code
    -- This is an example script to show how remote signals can be
    -- read inside HaasScript and how to handle it for managed 
    -- spot trading.
    
    -- High speed update are recommended for a quick response, but its not essential
    EnableHighSpeedUpdates();
    
    -- Use your own signal identifier for this field
    signal = GetRemoteSignal('d8f3e51a01454d07a31343c63a426e9f')
    
    -- Progress the incoming data like this
    if (signal == SignalBuy) then
      DoBuy()
    end
    if (signal == SignalSell)  then
      DoSell()
    end
Login or Register to Comment

Unlock your crypto trading potential

Create a free account and enjoy everything we have to offer.

Join for Free