0bps

Strategy vault / Other

Binance Multi Trading Pair Price Range Reminder

Because Aicoin's iOS version isn't a membership, it can't be used anymore, and there are no price reminders, so I'm thinking of making one myself. But I really don't understand the code, so I copied and pasted it…

JavaScriptOther
Author
轻轻的云
Complexity
Starter · 30 lines
Parameters
5

Because Aicoin's iOS version isn't a membership, it can't be used anymore, and there are no price reminders, so I'm thinking of making one myself.

But I really don't understand the code, so I copied and pasted it according to Mengda's code., https://www.fmz.com/digest-topic/8512 My English isn't good, so I use pinyin for both the upper and lower limits. The rest of the English is just copying Dream University. [Grinning] Thanks, Meng Da [fist salute] [handshake]]!!!

If anyone knows any apps that can alert prices like Aicoin, please let me know, thank you.

This default is for contract trading and supports USDT BUSD. Set the upper and lower limits. If the latest price is higher than the upper limit or lower than the lower limit, a message notification will be sent. If spot trading is needed, simply uncheck [Contract Trading] in the parameters, then select the exchange for spot Binance. FMZ needs to be bound for push. I bound it to QQ mailbox, and then set a special reminder tone for QQ mailbox and bound WeChat at the same time. There will be two reminders.

Parameters

NameDefaultWhat it controls
B_sleeptime30Polling time (seconds))
symbolsETH_BUSD,ETC_USDT,LTC_USDTtrading pair
B_shangxian3000,100,200Price limit
B_xiaxian2000,50,100Price lower limit
B_heyuetrueContract Trading

Source JavaScript

var arrSymbols = symbols.split(",")
var arrshangxian = B_shangxian.split(",")
var arrxiaxian = B_xiaxian.split(",")
var shang = parseFloat(arrshangxian[i])
var xia = parseFloat(arrxiaxian[i])

function main() {
    if (B_chongzhi) {
        LogReset()
        LogVacuum()
        Log("Reset all data", "#FF0000")
    }
    while (true) {
        for (var i = 0; i < arrSymbols.length; i++) {
            var symbol = arrSymbols[i]
            if (B_heyue == true) {
                exchange.SetContractType("swap")
            }
            exchange.SetCurrency(symbol)
            var ticker = _C(exchange.GetTicker).Last
            Log("trading pair:", symbol, "Latest price:", ticker)
            if (ticker > shang || ticker < xia) {
                Log(symbol, "Price jumps out of the range, current latest price:", ticker, "#FF0000", "@")
            }
            Sleep(B_sleeptime * 1000)
        }
        Sleep(5 * 1000)

    }
}

Published by 轻轻的云 on the FMZ strategy square · last modified 2022-04-21. Collected in the Quant Trading Vault. Unvalidated research: re-test with your own data and costs before trusting it.

Build this with AgenKit

A spec is not a trading system. Paste this into your coding agent and AgenKit runs a specialist team — architecture, test-first build, risk gates, review — with paper trading on by default.

in Claude Code, Cursor, Codex & 4 more
/agenkit build a production-grade trading bot with a backtest engine, risk controls and paper trading by default from strategies/Binance-Multi-Trading-Pair-Price-Range-Reminder.md
  1. npx agenkit install engineering-kit in your project
  2. Paste the command into your agent and approve each phase
  3. Get tests, backtest, risk controls and a paper-trading switch

Understand it first

Before you run this, read the lesson behind the idea and how to backtest it honestly. Specs like this one are the survivors of an unknown number of trials; deflate their results accordingly.

Related specs

esc

Try , , or .

↑↓ move↵ open