Energy is correlated to two variables, "energy" which is your current energy, the one you replenish with drinks and at the start of the day and "energy_max" which is your energy cap, the one you increase when you train. Basically, you can increase energy_max to some absurd amount and let it replenish naturally, if you're gonna cheat, there's no need to go trough the hassle of training at all, my energy_max is currently 10000.
Arrow down means it's worth less than it was worth yesterday, arrow up means it's worth more. There's no logic to stock value I could notice, it's literally randomized every time you wake up, so if you want a save scummy way, invest literally all your money in a company with the biggest -%, quick save right before going to bed at night and pass the day, if the next day the stock has soared in price, cash in, if not, quick load and pass the day again.
Sophia's affection variable is a simple "wf_sophia_affection" and shannon's "wf_shannon_affection", just slap "wf_sophia_affection=1000" in the dev console for example.