I'm new to programming so I am still struggling on how to convert my algorithms from English to computer code.
So how would you program this simple algorithm?:
Tell the algorithm to sell everything if there are three consistent negative movements in the stock
Tell the algorithm to buy maximum amount of shares with given capital if there are three consistent positive movements in the stock
Also, does anyone have any suggested literature to read to make the learning process easier to program algorithms?
Thanks.