What do you think the average duration of a moon mission is? I'm trying to develop a trading strategy based on detecting an in-progress moon event and get on board for a short amount of time. The pseudocode is as follows:
Once every $INTERVAL seconds:
Check price of all coins on Bittrex
Compute % gains of all coins since $INTERVAL seconds ago
$NEXT_COIN is the coin that has the greatest % gain in the last $INTERVAL period
Sell $LAST_COIN for BTC
Buy $NEXT_COIN with BTC
Ideally $INTERVAL would be Average moon mission duration / 2. I have a bot running right now (with simulated funds) where $INTERVAL is 60 seconds but it has only gone up 5% in the last 3 days and I'm pretty sure the fees from a transaction every 60 seconds would eat all these profits.
Thanks. Would also appreciate any comments from anyone with experience with this strategy.
Care to elaborate why? Any tweaks in the algo I could make to make profits more plausible? I was thinking that I could hold it in btc and only jump to another coin if the percent change is above a certain threshold, and then go back to btc once it stops increasing.
Kevin Scott
A lot of coins go up and down, jumping in front of a coin thats gone up over x amount of time, it might just be its normal daily uptick to its daily peak.
Oliver Cook
That's true but moon missions are differentiated by the massive amount they go up. A coin bouncing around +-2% a day is not the same as XVG going up 50% in a day, for example. I'm trying to catch XVG's and get in on them for a short amount of time.
Aiden Bennett
ideally you could look at historical moons and see what's common between them (lowish market cap, relatively recent ICO, pretty much trading sideways, steady increase in volume) then poll those every 30 seconds or so and check for a high price delta
Eli Russell
Thanks guys. Any more comments on the original strategy?
Eli Walker
I also started running script and am definately on the right track.
One think I've learned is that when you choose the ticker coarse enough, you can prevent early selling by simple < comparisons. On a 50 minute moon, if you look at the 10 minute tickers you'll have < < < < < and so when you tell it to sell only at < < >, he won't seel off while going up. My bot also adjust his strategy live.
I go to be now, though. My email is somewhere on youtube
I'm writing a Gekko custom algorithm that combines strategies. JSNode Teamwork?
Nathaniel Sanchez
Random Forests or Passive Aggressive mean reversion? Which would be the better way to go?
Anthony Parker
Does Gekko work with alt coins? I'm not really touching BTC with it. But yeah I am interested.
John Green
>PHP
Charles Diaz
Dats just psuedo code bro (I am using a more suitable language). However if I was using PHP as long as the platform works the only thing that matters is the strategy. Facebook is written in PHP
>I'm trying to develop a trading strategy based on detecting an in-progress moon event and get on board for a short amount of time Ah yes, the tried and true buy high sell low strategy.
Jeremiah Sullivan
Dont you have the LAST_COIN and NEXT_COIN backwards? sell NEXT? but nice psuedocode. im looking to write a bot myself this month sometime. was thinking of using python since i learned it way back when
Christian Russell
gekko.. nice! never heard of it but ill check it out.
Easton Martin
do you do your own taxes? i dont want 1000 pages of transactions from the exhanges at the beginning of the year...
Adam Lopez
how hard does a bot make taxes at the end of the year for us?
Logan Rodriguez
No, the idea is that you are always holding one alt coin at a time. What I forgot to put in the pseudocode at the end of the loop is: LAST_COIN = NEXT_COIN. LAST_COIN is the coin you currently have, and NEXT_COIN is what you are going to buy next based on the greatest % increase during the last interval.
Asher Wood
ah ok makes sense now
Landon Howard
It's an issue, yes. Also the fact that I don't think the exchanges do hold all your transactions. Bittrex rotation is about 200 I think. Currently I query all my transactions there every 30 minutes and write them into a json file. Whether there are 200 or 200000 transactions won't make much of a difference, though.
I didn't do them yet, but writing a script to compute the gains and taxes was the first thing that I did. Here's the interface so far. I'll maybe go through it in a video at one point
Do you think this kind of thing will be banned when the feds get involved?
Zachary Miller
There is an incentive to regulate crypto as such (people without license essentially trading stocks), but trading (also algorithmic) (i.e. money transfer) makes money for the gov
Joseph Morgan
Fair enough, i didnt think about it like that, thank you.