JulyIghor / QtBitcoinTrader

Secure multi crypto exchange trading client
https://sourceforge.net/projects/bitcointrader/
730 stars 374 forks source link

pausing between execution of rules #100

Closed lookfirst closed 10 years ago

lookfirst commented 10 years ago

I had two rules:

  1. If market last > X, Cancel All Orders.
  2. If market last > X, Spend all My Funds.

The open order I had in place was set to protect me on the low end as I was prepared to sell at that price and the rules were supposed to protect me on the high end if the price went up quickly, so I wouldn't lose much.

What happened was that the first rule executed and then the second rule executed immediately (both say 'done') and I think that since the API hadn't caught up yet on the order cancel, nothing happened with the second order because I didn't have any extra funds to cover it. The funds would have been created by canceling the order.

What I would like is the ability to add a rule between these two that says something like 'pause until there is X funds' or something like that.

JulyIghor commented 10 years ago

Nice. I'll add this rule type. Currently you can use new checkbox to make 5 seconds pause between rules in lastest build.

lookfirst commented 10 years ago

Thanks @JulyIGHOR. 5 seconds is good, but an indeterminate amount of time. I'd prefer something more exact like going against known funds.

JulyIghor commented 10 years ago

Now you can do it using script language.