TradingView
MyTradingCoder
28 juil. 2022 10:47

Buy/Sell Signal Template/Boilerplate [MyTradingCoder] 

Bitcoin / TetherUS PERPETUAL CONTRACTBinance

Description

This script allows the user to connect an external indicator output/plot value to allow for a no-code solution to setup a simple buy/sell signal indicator. For those of you who do not know how to program, do not be intimidated as this is a very easy setup process.

Maybe you want to buy when the 'RSI' value drops below '30' and then sell when the 'RSI' value climbs above '70', but you don't want to code it. You can do that with this indicator along with thousands of others found on the free TradingView indicator library.

Step #1:

Put the indicator on the chart.

Step #2:

Apply a secondary indicator onto the chart, such as an RSI.

Step #3:

Open the indicator settings and change the source to the RSI

Step #4:

Change the 'Signal Settings' to match when you want a buy, or a sell. For example, if you want to get a buy signal when the RSI crosses above 50, and get a sell when it crosses below 50, set the 'buy value' to 50, and the 'buy type' to greater than, then set the 'sell value' to 50 and the 'sell type' to less than. BOOM! It works :)


Commentaires
davide.antonio.formenton
Hi man, good job. The indicator doesn't seem to show up in the chart. Neither the strategy tester. Can you have a look? It's veeery interesting to me!
MyTradingCoder
@Davide.antonio.formenton, Hey there! That is because you need to connect your external indicator first. Nothing will happen until you do that.
Plus