Type/to search

Стратегия простой скользящей средней

Trend
3
Follow
1505
Followers

"Talk is cheap. Show me the code"

Just for learning, Be carefully when using in real market.

Only run on digital currency exchanges.

Note: this strategy included template. (function with $.)

Beginers can start with this strategy, learn how to code, know the difference between backtesting and real market.

img

Source
JavaScript
/*backtest
start: 2020-10-11 00:00:00
end: 2020-10-11 23:59:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Binance","currency":"BTC_USDT"}]
*/

start = false
function main() {
    Log('started');
    var initAccount = _C(exchange.GetAccount);
Strategy parameters
Strategy parameters
Slippage
fast line periods
slow line periods
observe periods
Interval time(second)
Comment
All comments (1)

    exchange.GetOrders(id).Status应该为exchange.GetOrders(id).type吧?

    5 years ago
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)