Hi, I'm trying to develop a bot based on some indicators.
So I have this bot based on ATR and SMA. I could figure how to make the bot buy and sell everytime it crosses the ATR.
But what I need to make now is make the bot only buy if the price is above the moving average and cross the ATR or only sell if the price is below the SMA and cross the atr.
the source...