Giter VIP home page Giter VIP logo

binance-bot's Issues

Need help about SRSI

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:

srsi

Thanks in advance.

Open single ordem how one pair

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.