0bps

Strategy vault / Other

Example Scheduled Test of WeChat Message Push

Regular test of WeChat message push example ~ To provide reference for users to learn from.

JavaScriptOther
Author
发明者量化-小小梦
Complexity
Starter · 15 lines
Parameters
0

Regular test of WeChat message push example ~ To provide reference for users to learn from.

Source JavaScript

function main(){
    var initTime = (new Date()).getTime() ;
    Log("Program Start Time:",$.getTimeByNormal(initTime) );
    var preDif = 0;
    var str = "";
    while(true){
        var nowTime = (new Date()).getTime();
        if(  Math.floor((nowTime - initTime) / (1000*60*10) ) !== preDif ){
            str = $.getTimeByNormal(nowTime);
            Log("Time elapsed since the program started executing10Minutes! Reminder."+"--Current Time:"+str+"Push WeChat@" );
            preDif = Math.floor((nowTime - initTime) / (1000*60*10) ) ;
        }
        Sleep(2000); 
    }
}

Published by 发明者量化-小小梦 on the FMZ strategy square · last modified 2017-01-04. 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/Example-Scheduled-Test-of-WeChat-Message-Push.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