Post
Topic
Board Project Development
Re: Qt Bitcoin Trader [Open Source secure trading client for Mac/Windows/Linux]
by
Askit2
on 18/02/2014, 10:59:34 UTC
I know this question may seem a bit childish but honestly.

If Last buy price is less than ________ sell something.

It works but haphazardly.

The question I really desire an answer to is what fills in the blank? What are the last buy or sell compared to? I can't really effectively use the rule unless I know what it compares to. If the rules uses the Last price ticker then Likely I should use that price for what price to buy or sell at. If it uses an ask or a bid I should know what one. If its user selected that is perfect. Right now I don't know.

The second issue I see so far is that the rule in question doesn't seem to frequently work. I have a trailing stop if the ask goes up 1% that triggered about 1% below my last sell. That says to me that the price dropped 2%. It had to fall 1% below where it placed its buy. Its buy landed almost exactly 1% below the last sell. As a different rule should be buying back down 1% (unless I don't understand how it works) this rule never should have purchased anything.

Is the percentage raw or bound? By that I mean is <1% going to wait for less than 1% of the last price or is it going to wait for a drop of 1% from the last price.
As an example that never did get answered before. If I have last sell > 1% it seems to buy up a bit over 1%. If I have last buy < 1% it seems to sell at down 1%. The problem is that it doesn't always do anything. In other words is the % just an amount above or below 100%?

Bug Fix 4 installed and restarted so I should be using it and both last buy and last sell are broken. Or I misunderstand them. If you could take a moment and explain what the comparison is to and if the percent's are added or subtracted from 100% it would be awesome.

There is a "indicator" variable is any number displayed in the interface. It can be last price, balance or any other.
You create a rule by selecting one indicator as "IF", then the rule compare values only with selected indicator on every value change or if it don't changing, than half of second interval.
There is "Base value" based on selected indicator what will be compared to current indicator value.

Every time rule enabled/re-enabled than base value store current indicator value.
If you use "Trailing value" option, than base value will store current indicator value when trend goes to another direction too.
So it works this way: IF "Base Value"*6%>"Current Value".

Example of not trailing rule: "If price goes more 5% than sell all":
1) Current price $1000 (base value stored as $1000)
2) Price goes down to $980 (nothink happend)
3) Price goes to $1029 (nothink happend)
4) Price goes $1050 (rule executed)

Example of trailing rule: "If price goes more 5% (trailing) than sell all":
1) Current price $1000 (base value stored as $1000)
2) Price goes down to $980 (base value changed to $980)
3) Price goes to $1029 (rule executed - 980+5%)

Note: you should add fee to trailing value percentage, because it compare exact values.

Soon I'll add "base value" to interface, but there is no space and I need more time to make changes.
And yes, there was bugs in trailing value, they fixed in Bug Fix 4.


So Left to right
My Orders last buy price : Goes less than : Percentage 1% : Sell Amount : 0.01 : At Market Bid Price

What value is My Orders Last Buy Price compared to?
I see many potential indicators. Ask, Bid, Low, High, Last. Each has a separate and distinct number almost constantly.

As an example Lets say it compares Last buy to Last price. Now if I am selling at bid and last ask is more then the bid price My rules will not achieve my desired result. I will spend time looking for what actually triggers the rule. Since you wrote it I assume you would know what the actual base value is since it apparently isn't currently selectable.

I am glad you spelled out how to use a trailing rule. I have 4 all are running correctly for what I want them to do.

I hoped to setup something to avoid multiple rule sets that I had setup before. One for each range I wanted the bot to trade in. Each one taking yet another tab. All setup to make some money on price fluctuations. All blanked by a recent update that added percentages. I don't mind the loss of ~30 rules. They would lose a ton of money on the way up. I didn't like setting up another rule for every price drop that I might see over the next few hours. I mind I can't get 2 simple rules to work. Both stall at the same place. Both use a last buy or sell. Since putting a bell on it and hoping it will trigger is not terribly expedient I asked what the values I select are compared to. That way I know what should be in the last field.

Even then I either have the %s wrong as they don't reliably trade around a 1% range or there is a problem. Perhaps I have errored in what I want it to do. I want a rule that if the price goes more then 1% higher then the last buy price to place a sell that will sell. I set up another so that (its supposed to) if the last sell price is 1% lower it should buy back some amount of bitcoin. The problem is that those two rules refuse to work. I have sells occasionally. I never seem to get a buy. I have a trailing indicator looking for a greater then 1% move up to buy back an amount of bitcoins if the price turns on me. It can sell down 1% from the last sell. Leaving me with only a quandary as to what I messed up. I really want the rules to work. For the life of me I can't get one based on last buy or sell to work. I can't get a read on if less then 1% is actually from 500 to below 5 or below 495. It wont reliably trade. I suppose it could be that it is waiting for below 5 or below 3.50 or below 2.65. I don't know. Do I want less then 99%? I don't know. I do want it to work. I ask for some guidance on 2 things. ONE is new. The percentages have yet to be covered at all. Trailing was given as an example. It works. Just not for reliably making trades in a range. I want to make profitable trades. Down 1% to up 1% could be. It isn't always.

So far my stop loss and try to catch top and bottom trading using trailing stops has dropped me from 0.16 on the exchange to 0.132. I guess it could be worse but I know the market dropped far enough to trigger a down 1% rule if a trailing up 5% triggers 1$ above the last sell at 390$. I know this because each % is 3.90. To go up 5% or 19.50 I had to have dropped down 18.50 below the last sell. This tells me the rule won't trigger. It doesn't tell me why.

Thanks for your help.