Trading algo update: I built a streaming random walk generator. Ask me a question... | |
Boaty
(OP) User ID: 77825331 United States 10/20/2020 10:04 PM Report Abusive Post Report Copyright Violation | What's unique about my approach is that others produce an array of results, whereas mine can be used in event driven applications that depend on realtime, time variable inputs. ```````````````` ````__/\__`````` ~~~\____/~~~~ .~~..~~~....~~~ ~..~~~....~~~~ Thoughts do not come from you nor God; you do not create thoughts; you are not your thoughts; every thought is a lie. - 2 Corinthians 10:5 - [link to www.biblegateway.com (secure)] |
Boaty
(OP) User ID: 77825331 United States 10/20/2020 10:14 PM Report Abusive Post Report Copyright Violation | GLP programmers are sleeping early tonight .. ```````````````` ````__/\__`````` ~~~\____/~~~~ .~~..~~~....~~~ ~..~~~....~~~~ Thoughts do not come from you nor God; you do not create thoughts; you are not your thoughts; every thought is a lie. - 2 Corinthians 10:5 - [link to www.biblegateway.com (secure)] |
Boaty
(OP) User ID: 77825331 United States 10/20/2020 10:21 PM Report Abusive Post Report Copyright Violation | I'm not even getting any haters on this one.. Maybe I need to add "Trading algo update" to the thread title, LOL ```````````````` ````__/\__`````` ~~~\____/~~~~ .~~..~~~....~~~ ~..~~~....~~~~ Thoughts do not come from you nor God; you do not create thoughts; you are not your thoughts; every thought is a lie. - 2 Corinthians 10:5 - [link to www.biblegateway.com (secure)] |
Anonymous Coward User ID: 79018064 10/20/2020 10:28 PM Report Abusive Post Report Copyright Violation | |
Anonymous Coward User ID: 79141621 United States 10/20/2020 10:29 PM Report Abusive Post Report Copyright Violation | |
Anonymous Coward User ID: 79141621 United States 10/20/2020 10:30 PM Report Abusive Post Report Copyright Violation | Get you one of these. I have developed with it before. It is faster than waiting for rads from a puck to hit a Geiger Counter. Quoting: Anonymous Coward 79141621 [link to www.ebay.com (secure)] |
Anonymous Coward User ID: 79517026 Canada 10/20/2020 10:31 PM Report Abusive Post Report Copyright Violation | |
Boaty
(OP) User ID: 77825331 United States 10/20/2020 10:34 PM Report Abusive Post Report Copyright Violation | Get you one of these. I have developed with it before. It is faster than waiting for rads from a puck to hit a Geiger Counter. Quoting: Anonymous Coward 79141621 [link to www.ebay.com (secure)] The only way to get true random numbers is with radioactive decay. I doubt this device lives up to its claims. ```````````````` ````__/\__`````` ~~~\____/~~~~ .~~..~~~....~~~ ~..~~~....~~~~ Thoughts do not come from you nor God; you do not create thoughts; you are not your thoughts; every thought is a lie. - 2 Corinthians 10:5 - [link to www.biblegateway.com (secure)] |
Anonymous Coward User ID: 79387251 United States 10/20/2020 10:34 PM Report Abusive Post Report Copyright Violation | |
Anonymous Coward User ID: 79141621 United States 10/20/2020 10:37 PM Report Abusive Post Report Copyright Violation | Get you one of these. I have developed with it before. It is faster than waiting for rads from a puck to hit a Geiger Counter. Quoting: Anonymous Coward 79141621 [link to www.ebay.com (secure)] The only way to get true random numbers is with radioactive decay. I doubt this device lives up to its claims. It passed all the entropy tests I ran on it. You can actually get decent entropy by using the least significant bit off the input on the sound card. It will obviously have some bias but after whitening, it ain't bad! |
Boaty
(OP) User ID: 77825331 United States 10/20/2020 10:37 PM Report Abusive Post Report Copyright Violation | No projections are involved here. This random number generator provides a trend-oriented random walk. It basically takes a mean (base number) and goes from there in a positive or negative direction. The screenshots in the original post show it while it prevents the results from going negative, since that wouldn't be realistic for something like a stock price or wind speed. But that's just how I coded the result to display. It can produce negatives if needed for a particular application. Last Edited by BoatyMcBoatface on 10/20/2020 10:38 PM ```````````````` ````__/\__`````` ~~~\____/~~~~ .~~..~~~....~~~ ~..~~~....~~~~ Thoughts do not come from you nor God; you do not create thoughts; you are not your thoughts; every thought is a lie. - 2 Corinthians 10:5 - [link to www.biblegateway.com (secure)] |
Anonymous Coward User ID: 79517026 Canada 10/20/2020 10:40 PM Report Abusive Post Report Copyright Violation | No projections are involved here. This random number generator provides a trend-oriented random walk. It basically takes a mean (base number) and goes from there in a positive or negative direction. The screenshots in the original post show it while it prevents the results from going negative, since that wouldn't be realistic for something like a stock price or wind speed. But that's just how I coded the result to display. It can produce negatives if needed for a particular application. your mean is based on current market.. eg. it is a base to calculate on? |
Anonymous Coward User ID: 76262461 Australia 10/20/2020 10:43 PM Report Abusive Post Report Copyright Violation | From your opening paragraph: How can nothing (0) be a staring point? And assuming you meant starting point, again, how can nothing or nowhere EVER be a valid starting point for anything? 0 means nothing 0 also means nowhere it is why you cannot divide by 0 |
Anonymous Coward User ID: 17006356 United States 10/20/2020 10:45 PM Report Abusive Post Report Copyright Violation | |
Boaty
(OP) User ID: 77825331 United States 10/20/2020 10:46 PM Report Abusive Post Report Copyright Violation | what kind of distribution are you using to sample your random numbers? Quoting: Anonymous Coward 79387251 It works by providing a random seed of 32 bytes per iteration, then gets two random numbers between 0 and 1 based on that seed. If two numbers already exist when it iterates, it first uses the first number produced first, then uses the second number produced second, thus the random walk based on a "trend". I plan to add more controls over the distribution by normalizing it based on mean, scale and shape. That way a user could specify various parameters for his given application. Last Edited by BoatyMcBoatface on 10/20/2020 10:46 PM ```````````````` ````__/\__`````` ~~~\____/~~~~ .~~..~~~....~~~ ~..~~~....~~~~ Thoughts do not come from you nor God; you do not create thoughts; you are not your thoughts; every thought is a lie. - 2 Corinthians 10:5 - [link to www.biblegateway.com (secure)] |
Anonymous Coward User ID: 79515782 Argentina 10/20/2020 10:49 PM Report Abusive Post Report Copyright Violation | It is pseudo random as no true randomness can be derived from a computer. It can be used for anything that needs trend-oriented random numbers... The screenshots below demonstrate how it works with a non-negative number outcome like the price for a given stock, or wind speed. The examples use a mean of 0 as the staring point. Quoting: Boaty Random Walk 1 [imgur] [link to i.imgur.com (secure)] Random Walk 2 [imgur] [link to i.imgur.com (secure)] Random walk 3 [imgur] [link to i.imgur.com (secure)] sorry very bad algo trading thing very big drawdown |
Anonymous Coward User ID: 79494202 United States 10/20/2020 10:49 PM Report Abusive Post Report Copyright Violation | |
Boaty
(OP) User ID: 77825331 United States 10/20/2020 10:50 PM Report Abusive Post Report Copyright Violation | From your opening paragraph: Quoting: Anonymous Coward 76262461 How can nothing (0) be a staring point? And assuming you meant starting point, again, how can nothing or nowhere EVER be a valid starting point for anything? 0 means nothing 0 also means nowhere it is why you cannot divide by 0 Because 0 is the mean, the random walk number result produced is added to it. And then added to the last produced random walk number. Thus the trend-orientation. ```````````````` ````__/\__`````` ~~~\____/~~~~ .~~..~~~....~~~ ~..~~~....~~~~ Thoughts do not come from you nor God; you do not create thoughts; you are not your thoughts; every thought is a lie. - 2 Corinthians 10:5 - [link to www.biblegateway.com (secure)] |
Boaty
(OP) User ID: 77825331 United States 10/20/2020 10:52 PM Report Abusive Post Report Copyright Violation | No projections are involved here. This random number generator provides a trend-oriented random walk. It basically takes a mean (base number) and goes from there in a positive or negative direction. The screenshots in the original post show it while it prevents the results from going negative, since that wouldn't be realistic for something like a stock price or wind speed. But that's just how I coded the result to display. It can produce negatives if needed for a particular application. your mean is based on current market.. eg. it is a base to calculate on? Yes. And after I add a normal transform for skew, users will have even greater control over what kind of walk it produces. ```````````````` ````__/\__`````` ~~~\____/~~~~ .~~..~~~....~~~ ~..~~~....~~~~ Thoughts do not come from you nor God; you do not create thoughts; you are not your thoughts; every thought is a lie. - 2 Corinthians 10:5 - [link to www.biblegateway.com (secure)] |
Anonymous Coward User ID: 79517026 Canada 10/20/2020 10:52 PM Report Abusive Post Report Copyright Violation | what kind of distribution are you using to sample your random numbers? Quoting: Anonymous Coward 79387251 It works by providing a random seed of 32 bytes per iteration, then gets two random numbers between 0 and 1 based on that seed. If two numbers already exist when it iterates, it first uses the first number produced first, then uses the second number produced second, thus the random walk based on a "trend". I plan to add more controls over the distribution by normalizing it based on mean, scale and shape. That way a user could specify various parameters for his given application. okay some calculators can random numbers in that range. do you use a multiplier to get realistic market values based on the random number generated? |
Boaty
(OP) User ID: 77825331 United States 10/20/2020 10:53 PM Report Abusive Post Report Copyright Violation | It is pseudo random as no true randomness can be derived from a computer. It can be used for anything that needs trend-oriented random numbers... The screenshots below demonstrate how it works with a non-negative number outcome like the price for a given stock, or wind speed. The examples use a mean of 0 as the staring point. Quoting: Boaty Random Walk 1 https://imgur.com/ap8MwgQ Random Walk 2 https://imgur.com/rsDyGhc Random walk 3 https://imgur.com/h4fTUmE sorry very bad algo trading thing very big drawdown In what way? This tool will give algo traders a way to "paper trade" test their theories. BTW, there's the hater. Last Edited by BoatyMcBoatface on 10/20/2020 10:59 PM ```````````````` ````__/\__`````` ~~~\____/~~~~ .~~..~~~....~~~ ~..~~~....~~~~ Thoughts do not come from you nor God; you do not create thoughts; you are not your thoughts; every thought is a lie. - 2 Corinthians 10:5 - [link to www.biblegateway.com (secure)] |
Boaty
(OP) User ID: 77825331 United States 10/20/2020 10:57 PM Report Abusive Post Report Copyright Violation | what kind of distribution are you using to sample your random numbers? Quoting: Anonymous Coward 79387251 It works by providing a random seed of 32 bytes per iteration, then gets two random numbers between 0 and 1 based on that seed. If two numbers already exist when it iterates, it first uses the first number produced first, then uses the second number produced second, thus the random walk based on a "trend". I plan to add more controls over the distribution by normalizing it based on mean, scale and shape. That way a user could specify various parameters for his given application. okay some calculators can random numbers in that range. do you use a multiplier to get realistic market values based on the random number generated? I did originally, but changed my code since. I'm going to add new code to do that using a skew-normal transform. Last Edited by BoatyMcBoatface on 10/20/2020 11:02 PM ```````````````` ````__/\__`````` ~~~\____/~~~~ .~~..~~~....~~~ ~..~~~....~~~~ Thoughts do not come from you nor God; you do not create thoughts; you are not your thoughts; every thought is a lie. - 2 Corinthians 10:5 - [link to www.biblegateway.com (secure)] |
Boaty
(OP) User ID: 77825331 United States 10/20/2020 11:04 PM Report Abusive Post Report Copyright Violation | No. I'm not going to ask you a question. Because you won't tell us anything useful. Quoting: Anonymous Coward 79494202 Actually I would, if you asked me a question. This will be a publicly available NPM module in a day or two. ```````````````` ````__/\__`````` ~~~\____/~~~~ .~~..~~~....~~~ ~..~~~....~~~~ Thoughts do not come from you nor God; you do not create thoughts; you are not your thoughts; every thought is a lie. - 2 Corinthians 10:5 - [link to www.biblegateway.com (secure)] |
Anonymous Coward User ID: 79278639 United States 10/20/2020 11:10 PM Report Abusive Post Report Copyright Violation | |
Coldkidc
User ID: 79200871 United States 10/20/2020 11:11 PM Report Abusive Post Report Copyright Violation | |
Anonymous Coward User ID: 26604721 United States 10/20/2020 11:12 PM Report Abusive Post Report Copyright Violation | Get you one of these. I have developed with it before. It is faster than waiting for rads from a puck to hit a Geiger Counter. Quoting: Anonymous Coward 79141621 [link to www.ebay.com (secure)] The only way to get true random numbers is with radioactive decay. I doubt this device lives up to its claims. It passed all the entropy tests I ran on it. You can actually get decent entropy by using the least significant bit off the input on the sound card. It will obviously have some bias but after whitening, it ain't bad! Ugh you whiten bro? I’d be happy with the single side power spectrum ;) |
Boaty
(OP) User ID: 77825331 United States 10/20/2020 11:12 PM Report Abusive Post Report Copyright Violation | Nothing bro.. I'm just celebrating because I worked on this for over a week and finally got it working! All the other algorithms for a "random walk" particularly for javascript produce an array of results. Mine produces a stream of results. That is why it's innovative. I'm going to use what I just built to test various trading indicators my bro and I have built. What anyone else wants to use it for is up to them. ```````````````` ````__/\__`````` ~~~\____/~~~~ .~~..~~~....~~~ ~..~~~....~~~~ Thoughts do not come from you nor God; you do not create thoughts; you are not your thoughts; every thought is a lie. - 2 Corinthians 10:5 - [link to www.biblegateway.com (secure)] |
Coldkidc
User ID: 79200871 United States 10/20/2020 11:14 PM Report Abusive Post Report Copyright Violation | |
Boaty
(OP) User ID: 77825331 United States 10/20/2020 11:18 PM Report Abusive Post Report Copyright Violation | Nothing now, but according to my research a random walk can be used to predict future asset prices... ```````````````` ````__/\__`````` ~~~\____/~~~~ .~~..~~~....~~~ ~..~~~....~~~~ Thoughts do not come from you nor God; you do not create thoughts; you are not your thoughts; every thought is a lie. - 2 Corinthians 10:5 - [link to www.biblegateway.com (secure)] |
Grove Street
User ID: 78870678 United States 10/20/2020 11:18 PM Report Abusive Post Report Copyright Violation | why do you think algo is going anywhere.>? its max is 70 cents..? if you have large capital..you could double your money.. but what about it makes it more than seventy cents.. if you got a couple hundred thousand its easy to double your money on lots of crypto if you know what your are doing.. but algo looks kind of dumb to me Grove And this is why we can't have nice things. |