It is generalized but if you want to go play with the values. I will continue to develop this further and am happy to receive feedback.
Notations are coming.
-ONLY use this with TV_GAIN: 0.6 because on downtrends it is supposed to double up to pull down the average bought price!
-Use "buying condition" and "selling condition" for alerts, trigger on close and I suggest you use 3 min intervals but try what looks good to you
-Use this on pairs that are curvy and have atleast 0.6% gain between buy/sell triggers. This is also general advise when you want to take microprofits.
-Don't be confused with sell arrows, it will only trigger the bot sell on gain when you've set TV_GAIN
How do you make sure the gunbot will open only one position?
With the above code and the way how tradinview works with alertconditions, it could happen that you get mulitple "BUY_BITTREX_BTC" alerts before you get the first "SELL_BITTREX_BTC" alert.
So, I guess that the bot will open multiple positions.
How do you cover this case?
Thanks in advance for your response,