Post
Topic
Board Project Development
Re: Qt Bitcoin Trader [Open Source secure trading client for Mac/Windows/Linux]
by
topias
on 25/08/2014, 11:04:01 UTC
Sorry for this. But new version does not supports old rules.
Here is old app https[Suspicious link removed]
Run it, you will see old rules in readable format, then make the same rules in new app by looking on old app.

Oh, crap.
It's about 40 rules.
It will take a good half a day to retype those.

I tried also to create a new rule with new client, so that I can see the format and if I could transfer old rules by text only, but all I receive is "Values you entered is invalid. Please check amount and price".
For example this one I tried to create:

"When Last Price (BTC/USD) < Last my Sell Price (BTC/USD) (Realtime comparation) then Sell BTC (BTC/USD) ฿3.0% + fee at Last Price"
var baseVariable = calcBaseVariable();
function calcBaseVariable()
{
 baseVariable = trader.get("BTCUSD" , "LastMySellPrice");
 return baseVariable;
}

trader.on("LastPrice").changed()
{
 if(symbol != "BTCUSD")return;
 calcBaseVariable();
 if(value < baseVariable)
 {
 var amount = trader.get("Balance","BTC");
 amount *= 0.03;
 amount *= (1.0 + trader.get("Fee") / 100.0);

 var price = trader.get("BTCUSD" , "LastPrice");

 trader.sell("BTCUSD" , amount , price);
 trader.groupDone();
 }
}