If you make money in a market, that goes down, then it might help to just stop the bot when the market goes up? Just buy and hold?
I don't know the ATP sources, so I don't really understand your problem. In my concept, a strategy is just a list of rules. The buy and sell rule don't have to be coupled in any way. You could buy when EMA cross but then sell via arb or whatever (once the sources are complete).
Well that is the idea. I made several mistakes. One was just letting the bot run I guess. See when I watch it I can usually fix small things.
The down side is that by default ATP is setup to even out the market and make money doing it. It sells based on a weight calculated by the buying pressure. The more people that buy the Larger the Sell.
Similarly buying is reversed. As the market goes down you buy bitcoins back with the amount increasing with selling pressure.
My newest test doesn't work so well either. It isn't like it wont sell. It will. As soon as the values are true. But it wont buy it back as soon as the values are true. Not enough selling pressure as it heads up.
Apparently enough people buy as it goes down that I can still sell. Just as it rockets up I can't find enough buyers to sell. Likely the difference in value adds to the problem.
Essentially the bot works as designed. In my previous example I could have left the maximum weight very low and had a buy near the bottom. But in a fairly flat market (the three weeks before that) it would sell but never repurchase it. The amount was always below minimum. Now the issue leading up to my example I had several up 5 dollar days each one having some amount of fiat. Each sell compounds the problem. Any restarts cause an immediate clearing of the logic to avoid additional sells. So MTGoX gets 502 error and I get another sell. So I had been trying to around the days low put in a buy. I didn't have faith in the trend reversing after a few weeks of slow rising so I blew out of my losing position. After that a com issue and my script restarted the bot and from then on the story is correct basically. The trouble was two fold. One It had a sell then too small of a buy too early then no subsequent buy when the bot saw a 15% gain. All logic said it should buy except the amount was too low. Eventually it had another sell and I was hoping for a bigger buy before going up. While the bot was working MTGoX website was showing cloudflared at least to me. I couldn't fix the problem manually.
I currently use a separate API based bot that has no trending or automatic trading available really and I could in the same condition blow out of my position rather then watching losses pile up.