You are predicting that the "green" follows green and that the "red" follows red.
The OP, is in "gathering" stage since he asking what language to do the program and he is "fairly good" at TA, he does not say if he is at expert level of reading charts. Speaks of 40-50 indicators and custom indicators does not have a clue what is involved in predicting the future cause you can't predict if you will be hungry in five minutes. Most "predicting" software usually can't even get to being right 50% of the time. I see too often in past of developers going to predict tops/bottoms, charting often gives best indication of extremes, volume can help as well, and maybe two -four indicators comes close, but nothing is close to 100%.
There are pretty of green following green, slap a 42 ema up-if price is above, trend is up.