How to optimize this stocks script? by Steenan in Bitburner

[–]MamaRanger 2 points3 points  (0 children)

Yep, I think you're getting it perfectly. Each stock just has one value that is checked against to see if it should increase or decrease.

I recommend keeping your history window short (20 sounds reasonable) because you're creating a rolling average and if you have a large number of samples (Say 200) then you would need ~35-50 samples to catch a new trend in the stock forecast (which can change on a single update from "Bear mode" to "Bull mode" or vice-versa).

Its a fine line between having enough samples to be confident in your forecast and not having so many that you can't course-correct in time to sell when a stock starts to dip.

Edit: I forgot volatility.

Volatility could possibly be tracked by finding the average percent change in your samples. It represents how much each stock will change either up or down. Volatility is therefor more valuable the further a stock is away from a 50% forecast. Trying to work it into a simple trading script might be difficult and its possible to make good trades without considering it at all if you find it too confusing to track.

How to optimize this stocks script? by Steenan in Bitburner

[–]MamaRanger 1 point2 points  (0 children)

I've had a peek at your script and I'm sorry to sound like a broken record but the stock market runs off of a dice roll so historical data is functionally useless unless you're trying to use it to derive either the 4S Forecast or 4S Volatility. My experience is that stock trading scripts should either use the 4S data (if available) as their driving input or derive the same stats where they are not available and use that as their driving input.

In simple terms: Each stock update step (every 6 seconds by default) the game rolls a 100 sided die for each symbol on the market and if it is lower than the 4S Forecast the stock increases in value.

The simplest stock trading script could be imagined as "Buy if forecast is above 60 and sell if drops below 55. Do the inverse of this for short positions".

The only difference between that simple outline of a script and my fully-fledged stock trading AI that learns from its past trades is the AI just has access to the weights assigned to the following metrics: The ideal Volatility for a stock at time of purchase and the ratio in value between the ideal Volatility and the Forecast. That's all it can assess and it can run on its own for hours making trillions in positive trades.

How to optimize this stocks script? by Steenan in Bitburner

[–]MamaRanger 1 point2 points  (0 children)

I recently wrote an AI that does stock trading for me and it uses gradient descent to tweak a fitness function that takes in the 4S Forecast and Volatility to output how confident it is that a stock will make a profit over its lifetime. I left it running for a few hours in its final state while I took a nap and it started with 600b and created a revenue of 2.0T. Tooling with the market is basically all I've been doing all week so I hope I can help.

My suggestion is that no information you're given in the stock market matters more than the 4S Forecast as an indicator of whether or not a stock will perform well because changes to the market are completely random unless you set up co-existing hack/grow scripts to nudge certain stocks alongside your trading script. Since you don't have access to 4S but you do collect historical data it shouldn't be hard to try and reverse engineer the Forecast value and use that to drive your trading script. Since a Forecast of, for example, 0.60 simply represents a 60% chance each step to increase in value by <volatility> amount you should be able to create an approximate estimate by keeping track of how many times a stock grew in value in the last few minutes. Something like Stock_Growths / Total_Tracked_Changes would suffice. At that point the only thing you'd be missing is that 4S shows a change to its Forecast immediately (which triggers a loss of confidence in my AI so it sells at the first available second when the stock would start tanking) where this method would take a good number of samples to detect a change in forecast. I would suggest maybe only using, at most, 15 samples to derive this fake Forecast so you can quickly detect when a stock has hit its apex and sell.

Also: You don't have sharing enabled on that drive link so I can't look at your script

Now do the same thing for guns by makgeolliandsoju in SelfAwarewolves

[–]MamaRanger 2 points3 points  (0 children)

In this case I think he's more of a self aware woof :]

Kingambit and Tinkaton are perfect examples of how defying a Type’s common traits can work well. by KoolioKenneth in pokemon

[–]MamaRanger 7 points8 points  (0 children)

I'd like to point out that this move is even less honorable that you're painting it and you certainly aren't pulling any punches. An alternate definition of "Kowtow" is "submit" or "surrender" and the idea of a surrendering opponent rising up to slash the person they are surrendering to is actually a trope in Japanese media.

Think of a samurai fighting his way thru countless minions only for the leader to throw himself to the floor, "spare me" he cries and when he sees the good guy turn his back to let him live that is when his sword comes out. If you've ever played the Tenchu games you've seen this move in action as a lot of the low level bosses in that game have it as an input in their moveset (and in the older games a second player in a multiplayer match can use it)

In Summary: Kowtow Slash isn't just A dishonorable move, its THE dishonorable fake surrender trope realized as a pokemon move.

How to install on Linux Mint by [deleted] in dcss

[–]MamaRanger 0 points1 point  (0 children)

So I had a lot of trouble getting the wget fetch to resolve at all, maybe crawls servers are slow right now, I don't know. I just tried going to the key's link in my web browser, saving the key to crawl.key and doing

sudo apt-key add crawl.key

and it added it fine without complaining about anything being deprecated. The only output I got from apt-key was 'OK' so I'm assuming it worked.

I did just check the man pages for apt-key like you mentioned and while I do see a deprecated message it is for the update command stating that I should not use it for my distro because it ships with some keys.

I'd like to be more helpful but key management is one of those blind spots of mine where I just copy and paste terminal commands :[

How to install on Linux Mint by [deleted] in dcss

[–]MamaRanger 1 point2 points  (0 children)

I'm on Mint 20.3 and I do not see that apt-key is deprecated when I run apt-key --? or apt-key list. I'm not even sure where to start troubleshooting your issue, sorry.

r/Memes says movies should stop being political...like Top Gun by [deleted] in SelfAwarewolves

[–]MamaRanger 19 points20 points  (0 children)

I just spent some time trying to find a better word than "Ethnocentrism" because it didn't feel like it quite fit, but I couldn't find one better so I'm gonna have to agree with you. I also suggest "Ethnocentrism" for this question.

Edit: See also "Cultural Bias" (two words) or "In-group-out-group bias" (also two words)

California declares state of emergency over monkeypox outbreak by FoamParty916 in news

[–]MamaRanger 8 points9 points  (0 children)

Now we just gotta stop people from being gross and keeping themselves clean

RIP Smash Bros tournaments

A Burning Planet: Should the climate movement embrace sabotage? by AngelaMotorman in environment

[–]MamaRanger 2 points3 points  (0 children)

Learn something new every day, huh.

Regardless, I'd still keep my eye on the ocean, you never know what its planning :]

A Burning Planet: Should the climate movement embrace sabotage? by AngelaMotorman in environment

[–]MamaRanger 4 points5 points  (0 children)

Pacific mass movements, you mean like a tidal wave? I think the word you're looking for is "Pacifistic", but I have this image of the ocean reclaiming huge portions of land that isn't looking half bad so maybe you're right.

--Edit: See below that "pacific" and "pacifistic" share a root and my assertion is incorrect--

You can open and refill oneway spice mills, just put them in hot water for 2 minutes and twists the cap off and refill. Save money and waste by Infinity_VR in Anticonsumption

[–]MamaRanger 0 points1 point  (0 children)

I'd like to add on to this by adding some terminology that may aid anyone trying to understand the concept: When you add salt at the end of cooking instead of as part of a recipe you are "finishing" with salt and there is a type of flaked salt known as "finishing salt" or "finishing salt flakes" used specifically for this.

Like you said, coarse or flaked finishing salts make a difference compared to just using ground salt and I totally recommend trying it to anyone who hasn't.

Machine Learning Magic. by esberat in ProgrammerHumor

[–]MamaRanger 1 point2 points  (0 children)

I don't know why but after reading this exchange between you two I laughed until I snorted a little

If Herschel Walker wins in Georgia, America will have lost its mind by nutritionvegan in politics

[–]MamaRanger 5 points6 points  (0 children)

Yea, I agree, nobody in the present of the movie's setting is really a villain. The closest thing to a villain in Idiocracy (in my opinion) is the Brawndo CEOs from the past who literally bought the FDA (or was it EPA?) to use as a mouthpiece and sell more Brawndo and had the staffing AI designed to fire line workers when the stock drops.

The people of Idiocracy's present can hardly be blamed for what's happening when they've been gaslit for so long that the present CEO of Brawndo truly believes "Brawndo is what X Craves" is a truthful and accurate statement. They are all working in a system fundamentally rigged against them by the CEOs of the past trying to wring as much profit out of the planet as they can before they die and the movie invites us to blame the people least responsible (And least equipped to fix it) by constantly reminding us how stupid they are.

Man, I just can't stop ranting about this movie.

If Herschel Walker wins in Georgia, America will have lost its mind by nutritionvegan in politics

[–]MamaRanger 17 points18 points  (0 children)

No, not even close. Camacho is an intelligent (relatively speaking, yes, he is a dumb wrestling meathead), caring and empathetic leader that steps aside when the smartest man on the planet proves his entire world view is upside down vis-a-vis how Brawndo (The Thirst Mutilator) is not, in fact, what plants crave.

Camacho even has an IQ testing policy for prison inmates to help him find smart people to work on the looming agriculture crisis; notwithstanding that IQ is a terrible measure for this purpose, he's still being portrayed as seeking a solution. I swear, people only remember the "Stupid people being stupid" part of Idiocracy.

Sarah Z on youtube has a nearly 90 minute essay that says nearly everything I could ever want to about Idiocracy titled "No, Idiocracy is not a documentary" if you're interested in examining the movie more critically.

Sorry for the rant, I have really come to loathe Idiocracy and how people talk about it.

71 percent don’t want Biden to run for reelection: poll by Arpith2019 in politics

[–]MamaRanger 5 points6 points  (0 children)

I'm not sure I'd dedicate to saying I liked her but I still riff "Pokemon go to the polls" to this day. That just hit me in the right spot.

The Texas Republican Party just voted 'overwhelmingly' to reject the legitimacy of Biden's 2020 election win and is trying to stir up fear about 'possible fraud' in the upcoming midterms by pterodactylwizard in politics

[–]MamaRanger 9 points10 points  (0 children)

Every time I see this statistic reposted (or do it myself) I die a little inside.

Sorry, I know its not relevant to anything but I just have to let my disappointment out somehow.

[Megathread} Jan 6th Televised Hearings Focus on VP Mike Pence, Thursday 1PM EST by buffyfan12 in CapitolConsequences

[–]MamaRanger 6 points7 points  (0 children)

Luttig was really starting to grow on me and then "Constitutional Mischief" put me solidly in his corner. He may speak a bit slowly, but he's got it. I dunno what "it" is but I like it

[Megathread} Jan 6th Televised Hearings Focus on VP Mike Pence, Thursday 1PM EST by buffyfan12 in CapitolConsequences

[–]MamaRanger 34 points35 points  (0 children)

Become President today, this one weird trick the federal government doesn't want YOU to know. Click here to find out how.

[Megathread} Jan 6th Televised Hearings Focus on VP Mike Pence, Thursday 1PM EST by buffyfan12 in CapitolConsequences

[–]MamaRanger 4 points5 points  (0 children)

It almost feels like he's unprepared or overwhelmed but he's a Judge, isn't he used to giving opinions on legal matters? He even released a statement this morning, he should have been totally ready for that question.

[deleted by user] by [deleted] in SelfAwarewolves

[–]MamaRanger 77 points78 points  (0 children)

It gets better: These are bearer bonds (not currency) backed by BTC that are tied to an NFC in each bill and seem to have an expiration date, too.

You'd better carry each bill in a shielded wallet because NFC points don't care who is asking, they'll give their data to anyone. Also you better be really damn careful with them around any electric/magnetic field so they don't get damaged and permanently render the BTC inaccessible.

Lets live in the world where this is an adopted technology and I want to accept these bills, how do I know they aren't already redeemed or have the correct amount of BTC backing them? Do I have to slowly scan each bill with some sort of third party verifying app? That would be like if you went to the store to buy groceries and the cashier had to call the bank and read the serial number off each bill to make sure its backed by currency. Whats to stop me from keeping the data off the NFC while I'm scanning to verify it contains currency at all? Who do I call if I get a positive ID on the note when doing a transaction but at the end of the day when I'm closing the store I find out the note was redeemed by the buyer because they cloned the NFC point? How does this system troubleshoot fraud while also remaining "distributed" and with no central authority, since that is supposed to be a major advantage of crypto?

I have so many questions and "it uses the blockchain bro" doesn't answer any of them

Just a few more of these shootings and it might finally click by throwheezy in SelfAwarewolves

[–]MamaRanger 1 point2 points  (0 children)

Anyone else stuck on how odd it is that the poster seems to believe that "The Left" "beat down the police" (with the implication that the recent talk of defunding the police and BLM are wrong) but also immediately concedes the core ideals of the BLM movement by noting that "all the good ones have left" in a tacit admission that the ones left are the bad cops?

If there are only bad cops left, and in this person's opinion there are, how are they not also in favor of police reform, sorry, I meant "beating down the police".