sindelio / binance-bot Goto Github PK
View Code? Open in Web Editor NEWA Binance trader bot written in Node.js.
License: MIT License
A Binance trader bot written in Node.js.
License: MIT License
Binance changed USDT index from 14 to 11, here is code for finding and implementing in original code.
change extention txt => js
findusdt.txt
or take
https://github.com/shamanaia/shamanaia/blob/main/findusdt.js
Thanks to @sindelio
Hi @sindelio, coding is my hobby and async arrow functions is new for me, I could't find any ansewer on MDN, even SOF :), so please can you excplain me line 95-111 in bot_public.js
I use it without yarn.
// Initializes the Ehlers filter (super smoother)
const initializeSmoother = async (SRSI) => {
console.log('INITIALIZING SUPER SMOOTHER');
filter[0] = c1 * (SRSI[1].stochRSI + SRSI[0].stochRSI);
filter[1] = c1 * (SRSI[2].stochRSI + SRSI[1].stochRSI) + c2 * filter[0];
filter[2] = c1 * (SRSI[3].stochRSI + SRSI[2].stochRSI) + c2 * filter[1] + c3 * filter[0];
console.log('smoothedStochRSI: ', filter[2], '\n');
}
// Calculates next value for the Ehlers filter
const calculateSmoother = async (SRSI) => {
console.log('CALCULATING SUPER SMOOTHER');
let newValue = c1 * (SRSI[3].stochRSI + SRSI[2].stochRSI) + c2 * filter[2] + c3 * filter[1];
filter.push(newValue);
filter.shift();
console.log('smoothedStochRSI: ', filter, '\n');
}
(SRSI) and SRSI[*].stochRSI
they are variables, function names or refference to some external node modules like line 90?
StochasticRSI.calculate(inputStochRSI)`
or something else. I can't realise there origin and nature.
As can see in console it's array:
Thanks in advance.
I found this program very interesting, I want to program my own bot, a doubt that I could not understand in the code how I do to allocate balance for bot operations to open orders and that he only use this value or open a single order with the pair , I couldn't identify in the code
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.