JulyIghor / QtBitcoinTrader

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

"if my order last sell/buy price" rules does not fire #143

Closed reixd closed 10 years ago

reixd commented 10 years ago

Hi,

I have some problems while setting "if my order last sell/buy price" rules. The rules fire only if the sell/buy price equals the given price. If I try to use a percent value the rule does not fire any more.

I am using a Gentoo Linux with Mate Desktop and qt libs.

I build a test case in concurrent mode and saved the rule. See below for the rule set.

Sell Price = 649.715 Current Price = 656

""" Qt Bitcoin Trader Rules test==>7|0|0|-10.0|1|-1.0|649.715|0.0|0.0|100.0|0|QmVlcA==|0@7|0|0|-10.0|0|-1.0|649.715|0.0|0.0|100.0|0|QmVlcA==|0@7|0|0|-10.0|-1|-1.0|649.715|0.0|0.0|100.0|0|QmVlcA==|0@7|0|0|-10.0|-2|-1.0|1.0|0.0|0.0|100.0|0|QmVlcA==|0@7|0|0|-10.0|1|-1.0|649.715|0.001|0.0|100.0|0|QmVlcA==|1@7|0|0|-10.0|1|-1.0|649.715|0.001|0.0|100.0|0|QmVlcA==|0@7|0|0|-10.0|0|-1.0|649.715|0.001|0.0|100.0|0|QmVlcA==|0@7|0|0|-10.0|0|-1.0|649.715|0.0|0.0|100.0|0|QmVlcA==|0@7|0|0|-10.0|-1|-1.0|649.715|0.001|0.0|100.0|0|QmVlcA==|1@7|0|0|-10.0|-1|-1.0|649.715|0.001|0.0|100.0|0|QmVlcA==|0@7|0|0|-10.0|-2|-1.0|1.0|0.001|0.0|100.0|0|QmVlcA==|0 """

JulyIghor commented 10 years ago

Thank you. I'll inspect this situations. Rules going to be rewrited and update will arrive to you soon.

JulyIghor commented 10 years ago

Rules engine is rewrited.