modagavr / pancake-wizard

🐱🪄🥞 Bot for PancakeSwap Prediction – 26 technical indicators. Make smarter predictions with Pancake Wizard – trust math, not emotions!
https://t.me/PancakeWizard
BSD 3-Clause "New" or "Revised" License
250 stars 125 forks source link

Error when changing .gt() or lt() to float value #17

Closed MichielvLu closed 3 years ago

MichielvLu commented 3 years ago

image Hope someone can help me, I wanted to toy around with when to bet on bear/bull but cannot change the value to a decimal. Seems like only integers work because of the bignumber properties, is there an easy fix?

modagavr commented 3 years ago

If you have bignumbers A and B you are usually using A.gt(B) for A > B and A.div(B) for A / B.

But you can also convert them to numbers and use this stuff: +A > +B and +A / +B.

This will allow you to operate with floats.

FalconSK88 commented 3 years ago

Is there any tutorial for real noobs like me? Don’t even know what to download and what to run and how to setup everything what is needed on computer … how to contact the developer and how much donation is needed to not share the wins per round? Many questions sry😅

On Sat 11. Sep 2021 at 20:55, Egor Gavrilov @.***> wrote:

If you have bignumbers A and B you are usually using A.gt(B) for A > B and A.div(B) for A / B.

But you can also convert them to numbers and use this stuff: +A > +B and +A / +B.

This will allow you to operate with floats.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/modagavr/pancakeswap-prediction-winner/issues/17#issuecomment-917456596, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUBF52IX6OEXWLS6HROEWCTUBOQZLANCNFSM5DZPPFVA .

modagavr commented 3 years ago

The full tutorial is on the way. As for not sharing the profit – the choice is yours. Either you share and earn, or you attract bad karma and do not earn at all. You can try to play this game with the Universe and send the result

Is there any tutorial for real noobs like me? Don’t even know what to download and what to run and how to setup everything what is needed on computer … how to contact the developer and how much donation is needed to not share the wins per round? Many questions sry😅 On Sat 11. Sep 2021 at 20:55, Egor Gavrilov @.***> wrote: If you have bignumbers A and B you are usually using A.gt(B) for A > B and A.div(B) for A / B. But you can also convert them to numbers and use this stuff: +A > +B and +A / +B. This will allow you to operate with floats. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#17 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUBF52IX6OEXWLS6HROEWCTUBOQZLANCNFSM5DZPPFVA .

YveOms commented 3 years ago

@FalconSK88, are you a beginner in programming?

FalconSK88 commented 3 years ago

Nope I’m an expert :)

On Mon 13. Sep 2021 at 08:36, KEVIN @.***> wrote:

@FalconSK88 https://github.com/FalconSK88, are you a beginner in programming?

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/modagavr/pancakeswap-prediction-winner/issues/17#issuecomment-917884615, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUBF52PL4EBAKG6GO27KJR3UBWLU7ANCNFSM5DZPPFVA .