Bitcoin Forum
May 08, 2024, 10:10:56 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 [16] 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 ... 125 »
  Print  
Author Topic: Haasonline Simple Trade Bot For BTCe and Bitstamp[Main topic]  (Read 416407 times)
San1ty
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250


View Profile
October 22, 2013, 10:11:17 AM
 #301

can you please explain exactly what determines if the "Buying Allowed" and "selling allowed" bars are green or not ?

I found this statement but just cant figure what they are.

Quote
Below the bot signal you will see 2 fields, called “Buying allowed” and “Selling allowed”. Both fields can be green or white. When a field turns green it means that buying and/or selling is allowed.

Those are influenced by the Min Rise and the Min drop. (As far as I understand)

For example:

You bought 1 BTC at $100
2 Minutes later 1 BTC is worth $100.5

But your Min rise is set to .7

1 BTC must climb to atleast 100.7 before selling is allowed.

Found my posts helpful? Consider buying me a beer :-)!:
BTC - 1San1tyUGhfWRNPYBF4b6Vaurq5SjFYWk NXT - 17063113680221230777
1715206256
Hero Member
*
Offline Offline

Posts: 1715206256

View Profile Personal Message (Offline)

Ignore
1715206256
Reply with quote  #2

1715206256
Report to moderator
The trust scores you see are subjective; they will change depending on who you have in your trust list.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Stephan224 (OP)
Sr. Member
****
Offline Offline

Activity: 449
Merit: 250


Software developer


View Profile WWW
October 22, 2013, 10:16:05 AM
 #302

How exactly does the RoC indicator work? If I look at the parameters, I'm a little bit confused:

Buy Level > -1
Sell Level < 1

Does that mean that between -1 and 1 you need to both buy and sell?

The ROC (or Rate of Change) is an indicator that shows you how much a currency has changed. To calculate this you need 2 reference point in the time-line. First an old position, lets say one of 10 positions back. And as second we take the current position. If you do: old_pos_price - new_pos_price = roc_value

So in case the -10 position (old_pos) was lower then the current price you will be getting a negative value. Eg: old_pos_price (90Usd) - new_pos_price (100Usd) = roc (-10) This must illustrate an currency is raising, so buy now! In case or -1 is means the ROC has to be -1 or less.

In case the old position was higher, it must indicate a dropping currency. So a positive value will be calculated, meaning sell now! In case of 1 for sell it means the difference between the prices must be 1 or more.

I can recommend to play with both the buy and sell levels and the old_pos, try some out and benchmark them to understand them.

BTW the difference between -1 and 1 is a black-spot. When the indicator gets in there it will send the Stay signal.

...

San1ty is right about this, it shows you when the buy or sell target price has been reached. At that moment the fields turn green. So those fields give you some more feedback about the tiggers used for the trade bot signal itself.

Lead developer of Haasonline Software Engineering and owner of Haasonline.com - Checkout my Simple Trade Bot on: https://bitcointalk.org/index.php?topic=211979.0
JackDinn
Newbie
*
Offline Offline

Activity: 50
Merit: 0


View Profile WWW
October 22, 2013, 10:22:44 AM
 #303

im just testing here  but just dont get it. Iv got it set to buy coin , it is below my target buy price , the "Buy price" at the top is green indicating it is below my target buy price but the "buying allowed" is not lit , it would never buy ?

https://i.imgur.com/sApWTke.png

This is all just testing numbers BTW
Stephan224 (OP)
Sr. Member
****
Offline Offline

Activity: 449
Merit: 250


Software developer


View Profile WWW
October 22, 2013, 10:36:22 AM
 #304

First of all: you have to change the minimum raise and profit levels. Let it respond faster, let it work on minimum values just to overcome the fee costs. Let the indicators do the work for you.

But this looks like a update issue to me. Did you change values and made the screenshot directly?

I am not always updating all fields, some fields are calculated and they are updated later when the currency is updated. This prevents flooding of a exchange and it will save you processor power (energy). When i designed this version i had energy-savings in mind. It may sound strange, but less power draw means more earnings too. Wink (i am running this software on 2 Atom powered computers to get the most out of it)

Lead developer of Haasonline Software Engineering and owner of Haasonline.com - Checkout my Simple Trade Bot on: https://bitcointalk.org/index.php?topic=211979.0
JackDinn
Newbie
*
Offline Offline

Activity: 50
Merit: 0


View Profile WWW
October 22, 2013, 10:52:43 AM
 #305

no i set the values a while ago , its still the same now and has been running since i posted the last post and its still not lit the allow buy.

I understand what your saying about the values but im just testing to try and understand exactly what does what and as far as i understand there's no reason it should not be allowed to buy here.

ok i re-started it, changed the min drop to 0.5 and raised the last sell price to 200 , then let it run for a while , its well below the target buy price ?

It says selling is allowed but not buying?

I get what determines if the top bars are green or not but don't see what determines if the "buying allowed" & "selling allowed" are lit ?

https://i.imgur.com/XEPD9yZ.png
JackDinn
Newbie
*
Offline Offline

Activity: 50
Merit: 0


View Profile WWW
October 22, 2013, 11:26:53 AM
 #306

I have found that if you set the last sell price to a value below the current buy price than the allow buy lights up. Don't really understand why.
San1ty
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250


View Profile
October 22, 2013, 11:30:51 AM
 #307

How exactly does the RoC indicator work? If I look at the parameters, I'm a little bit confused:

Buy Level > -1
Sell Level < 1

Does that mean that between -1 and 1 you need to both buy and sell?

The ROC (or Rate of Change) is an indicator that shows you how much a currency has changed. To calculate this you need 2 reference point in the time-line. First an old position, lets say one of 10 positions back. And as second we take the current position. If you do: old_pos_price - new_pos_price = roc_value

So in case the -10 position (old_pos) was lower then the current price you will be getting a negative value. Eg: old_pos_price (90Usd) - new_pos_price (100Usd) = roc (-10) This must illustrate an currency is raising, so buy now! In case or -1 is means the ROC has to be -1 or less.

In case the old position was higher, it must indicate a dropping currency. So a positive value will be calculated, meaning sell now! In case of 1 for sell it means the difference between the prices must be 1 or more.

I can recommend to play with both the buy and sell levels and the old_pos, try some out and benchmark them to understand them.

BTW the difference between -1 and 1 is a black-spot. When the indicator gets in there it will send the Stay signal.

...

San1ty is right about this, it shows you when the buy or sell target price has been reached. At that moment the fields turn green. So those fields give you some more feedback about the tiggers used for the trade bot signal itself.


Stephan,

Thanks for explaining what happens behind the curtains, this will help me a lot!

On a side note, I don't think your RoC indicator is the same as the official RoC indicator that most of us know:



The same goes for how you calculate MACD, it should be:


Found my posts helpful? Consider buying me a beer :-)!:
BTC - 1San1tyUGhfWRNPYBF4b6Vaurq5SjFYWk NXT - 17063113680221230777
JackDinn
Newbie
*
Offline Offline

Activity: 50
Merit: 0


View Profile WWW
October 22, 2013, 11:33:44 AM
 #308

no your right , i had mentioned there was no "signal lines" (that im aware of) so was also not sure how the MACD was calculated , just hadn't got that far just yet Cheesy
JackDinn
Newbie
*
Offline Offline

Activity: 50
Merit: 0


View Profile WWW
October 22, 2013, 01:16:50 PM
 #309

https://i.imgur.com/AX9stk7.png

Is this the MACD or the MACD histogram ?

Either way it just does not seem right , both the macd & the macd histo should be high on a raising price and low on a lowering price ?

Also iv looked at the ROC and i agree with San1ty i think you have the wording wrong although its only minor

https://i.imgur.com/fPyUKkg.png

Surly it should be .. Buy < -1 , Sell > 1

San1ty
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250


View Profile
October 22, 2013, 01:51:16 PM
 #310



Is this the MACD or the MACD histogram ?

Either way it just does not seem right , both the macd & the macd histo should be high on a raising price and low on a lowering price ?

Also iv looked at the ROC and i agree with San1ty i think you have the wording wrong although its only minor



Surly it should be .. Buy < -1 , Sell > 1



Hey JackDinn, great illustration! I had trouble understanding this at first as well, because this bot displays indicators exactly opposite as what we would expect from other trading software.

So the positive wave you indicate there actually means a negative trend so the bot gives you selling advice.

(Still would be nice for Stephan to confirm, as I'm not 100% sure yet myself)

Found my posts helpful? Consider buying me a beer :-)!:
BTC - 1San1tyUGhfWRNPYBF4b6Vaurq5SjFYWk NXT - 17063113680221230777
AtlasONo
Hero Member
*****
Offline Offline

Activity: 551
Merit: 500



View Profile
October 22, 2013, 03:14:25 PM
 #311

The help section could use a few minor updates. I'm guessing the field labels have changed in the new version, they're not yet reflected on the site.

For instance "Jump out price" is refereed to as "drop loss safety" in the help section.
JackDinn
Newbie
*
Offline Offline

Activity: 50
Merit: 0


View Profile WWW
October 22, 2013, 04:49:20 PM
 #312

Quote
Hey JackDinn, great illustration! I had trouble understanding this at first as well, because this bot displays indicators exactly opposite as what we would expect from other trading software.

So the positive wave you indicate there actually means a negative trend so the bot gives you selling advice.

(Still would be nice for Stephan to confirm, as I'm not 100% sure yet myself)

so by that logic we have a sell signal all the way through this perfectly good buy portion of this data from today ?

https://i.imgur.com/ztBUFn5.png

and i still don't know if this is the MACD or the MACD Histo ?

It looks more like the MACD Histo just upside down but if it is the Histo then where is the MACD's moving average (MACD signal line) length setting, it should be in with the signals settings ?

This is all just really confusing and i thought i understood most of the trading signals (i spent enough time learning them  Huh )
Stephan224 (OP)
Sr. Member
****
Offline Offline

Activity: 449
Merit: 250


Software developer


View Profile WWW
October 22, 2013, 05:02:39 PM
 #313

Sorry for the delay in responce, i was still porting users to my new website.

@AtlasONo:
I will read it and polish it up. Thanks for pointing it out to me.

@San1ty:
I will have a closer look to the ROC indicator, if you are right then its not coded properly. (but still, it generates good signals anyway right now)

@San1ty & JackDinn:
Can you explain a little more what you expect to see?

To me this looks good, this is how i look to it:


I am getting your understanding-problem too. Normally you want to sell and buy at the cross-over (the zero-point in this case) this will lead to the assumption of having up-side-down feelings about the parameters.

I am not sure if i am totally wrong in this case or not, becuase this method works also very good as you can see. I am happy to create a method you want too, and call this method a reversed method or something like that.


Lead developer of Haasonline Software Engineering and owner of Haasonline.com - Checkout my Simple Trade Bot on: https://bitcointalk.org/index.php?topic=211979.0
JackDinn
Newbie
*
Offline Offline

Activity: 50
Merit: 0


View Profile WWW
October 22, 2013, 05:09:51 PM
 #314

Yes your right its normally the crossover that were looking for but we cant use that in this case.

Please clarify for me first if this is the MACD or the MACD Histogram.

Thx.
Stephan224 (OP)
Sr. Member
****
Offline Offline

Activity: 449
Merit: 250


Software developer


View Profile WWW
October 22, 2013, 05:17:24 PM
 #315

Its an MACD signal.
MACD = [stockPrices,9]MA - [stockPrices,21]MA

Lead developer of Haasonline Software Engineering and owner of Haasonline.com - Checkout my Simple Trade Bot on: https://bitcointalk.org/index.php?topic=211979.0
San1ty
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250


View Profile
October 22, 2013, 05:36:03 PM
 #316

Yes your right its normally the crossover that were looking for but we cant use that in this case.

Please clarify for me first if this is the MACD or the MACD Histogram.

Thx.

It's a histogram my man! A better representation would be to show de macs signal line and it's 9 period ema.

Found my posts helpful? Consider buying me a beer :-)!:
BTC - 1San1tyUGhfWRNPYBF4b6Vaurq5SjFYWk NXT - 17063113680221230777
JackDinn
Newbie
*
Offline Offline

Activity: 50
Merit: 0


View Profile WWW
October 22, 2013, 05:45:55 PM
 #317

Quote
Its an MACD signal.
MACD = [stockPrices,9]MA - [stockPrices,21]MA
Quote
It's a histogram my man! A better representation would be to show de macs signal line and it's 9 period ema.

errr :-/ which ?

http://jackdinn.co.uk/pics/2013-10-22_18-13-44.png

This IS what a Histogram looks like , this is the same data with the same short & long period on the MACD (9,21) , the bottom graph shows a 9 point signal line of the macd and then the histogram of the difference between the  Macd & its signal line (the bars).

I would say you have represented the MACD Histogram but upside down.
Stephan224 (OP)
Sr. Member
****
Offline Offline

Activity: 449
Merit: 250


Software developer


View Profile WWW
October 22, 2013, 05:58:17 PM
 #318

I would say you have represented the MACD Histogram but upside down.

Alright, i want to change this right now (and some other issues minor too) but do i have to change the buy and sell also or not? (because i am a little confused when to trigger exactly now)

Lead developer of Haasonline Software Engineering and owner of Haasonline.com - Checkout my Simple Trade Bot on: https://bitcointalk.org/index.php?topic=211979.0
JackDinn
Newbie
*
Offline Offline

Activity: 50
Merit: 0


View Profile WWW
October 22, 2013, 06:10:16 PM
Last edit: October 22, 2013, 08:47:18 PM by JackDinn
 #319

well you dont have to change it just as long as we know what it actually is (the histo of the MACD upside down) , it cant be the MACD itself as that is the light blue line on the bottom of the black graph that crosses over 0 at about the "60" period point but yours goes the other way so it must be the histogram.

As to when to trigger , well thats really hard to answer cos its usually not on the magnitude of the macd its (as you said earlier ) its on the crossing points , either the zero crossing or the crossing of the macd's signal line.

what i do know is it would be helpful if we could actually see the MACD itself and its signal line & be able to set the length of the MACD's signal line, that way we would at least be sure that were dealing with the histogram rather than the MACD itself.
San1ty
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250


View Profile
October 22, 2013, 09:50:51 PM
 #320

Stephan,

Please check the official MACD description:

http://en.wikipedia.org/wiki/MACD

That exact calculation is what I would prefer to use.

As for how it would be displayed I'd like to see two lines AND a histogram:
1: MACD Line
2: Signal Line

And when they crossover I can clearly see what my entry and exit points are :-).



PS: By default MACD uses EMA's and not the SMA.

Found my posts helpful? Consider buying me a beer :-)!:
BTC - 1San1tyUGhfWRNPYBF4b6Vaurq5SjFYWk NXT - 17063113680221230777
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 [16] 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 ... 125 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!