Programming stop losses in our Python cryptocurrency trading bot

preview_player
Показать описание
Brian walks you through adding a stop loss to our existing cryptocurrency trading bot.

Рекомендации по теме
Комментарии
Автор

One small comment: The botTrade class isn't working without stopLoss (or putting a 0), because its not initialised. Slight modification helps:
if (stopLoss):
self.stopLoss = currentPrice - stopLoss
else:
self.stopLoss = stopLoss
Of course a stopLoss makes sense. But your results cant be reproduced with the current version without this modification.
Thank you very much for you videos - awesome stuff!

fedo
Автор

Are there any other resources than poloniex/support/api site that you are learning this stuff from? If not, where can i find more info about it? Also is there any place in internet where i can find people who are also interested in building poloniex based trading bots?

antoniszczepanik
Автор

Quick question. I successfully get API for BTC_LTC but not ETC_LTC and none of the other few non-BTC pairs that I tried. Does Poloniex only provide API for BTC_xxx pairs?

Also, this 4 part video series was helpful in clarifying how to get started with trading bots. Thanks!

zacktube
Автор

Hi, it was a nice video. As you mentioned, do we have a video for trailing stop loss. Please share..the details
Thanks,
Manoj

jenaman
Автор

Hi, thanks very much for taking the time to create this video series. Quick question though, when I run backtest.py some of the profit results are more "readable" floating point numbers and some are read out as, what I am guessing, is scientific notation? I am looking into the Python docs to try and understand this better, but I wonder if you had any quick thoughts about "normalizing" this output, is the discrepancy somehow to do with poloniex's api method, should I look there as well? At any rate, thanks very much again for your time. Best...

promet
Автор

Hey, great videos. One thing I was trying to do was calculate the net profit after all of the closed trades but I am having trouble. How would I continuously add (self.exitPrice - self.entryPrice) to get achieve a net profit of all of the transactions that occur.

ric-dealz
Автор

This is great, but the real challenge comes with trying to beat the order book. I've tweaked your implementation to yield a nice profit when backtesting against my favorite exchanges, but actually performs quite poorly when live trading because the bot operates under the assumption that all orders will be filled immediately and completely when executed. Any idea how to get around this without having to add nasty logic to outbid everybody on the book when making trades?

jessebartola
Автор

Can you give me a list of the successful indicators to be programmed in a bot?

prumu
Автор

Hey! are you using python 2.7 or 3? I am having some troubles with a few lines and i think it might be because i am running python 3.6.

P.S: the specific problem is: (line 60)
AttributeError: 'poloniex' object has no attribute 'api_query'

benjo
Автор

I'm sorry but i've been trying for 3 days to get this to work. How do I compile it all into one script? Or how do I run it???

cozyconetrading
join shbcf.ru