I honestly am just starting out with programming, so I'm moreso trying to get my 3 confirmation trading algo into code so i cant test and tweak it more efficiently. Heres the whole thing, can you tell me where I'm going wrong? :

:/

just making a franken bot to get something working. As I get better at python hopefully I can articulate my real exit strategy.