Relative Content

Tag Archive for pine-scripttradingview-api

(Pinescript question) Ignore first encountered short entry and enter next long entry. Is there a way?

In TradingView, I’ve integrated TradingView with Binance using alertMessage pinescript function. when Buying or selling condition is met, TradingView fires the signal to binance to place buy or sell order through alertmessage function automatically. The problem is that I only want to enter first met long and close at next short since the strategy I use is for the spot trading. not for the futures market.
So is there a way to ignore first encountered short entry and enter the next encountered long entry?

Can someone help me with the Pinescript below

I’m struggling with the Pinescript as below. Instead of calculating the take profit/stop loss level based on the high/low of entry candle, it calculates the level based on the high/low of the next qualify candle. Can someone help me on this. Thank you.

Strategy Tradingview without Exit Trade

I’m new to TradingView. 
I found a tradingview strategy, but no take profit and stop loss price. I’ve learned that on TradingView, follow FIFO signals. If the first open signal is always open, a new signal will show again, and the previous one is closed.

Patterns in TradingView

Create a Trading View custom indicator that automatically identifies the following chart patterns: