Relative Content

Tag Archive for pine-script

Pinescript problems

I am not a coder or programmer, et. just old man trying to figure out a script that is a strategy. When I place it in TradingView I get all kinds of error messages. I will try to attach it here if someone could please help me? Thank you very much.

Chickou Span Crossover

Let me explain the problem. Chikou Span is the current price shown 26 points in the past. I want the cross of the chikou span with the price bar bar as buy signal.

pine script indicator cant close trade when label changes

Hello i want to implement an sctrategy(code below) but this dosen’t work. iwant to open a trade when the label buy appear and if a sell position is open it shoulbe close, instead for sell label close buy position and open a sell trade.

Adding pinescript tags

I am adding a label on top of a bar in Pine Script. However, the label’s position changes with each new candle because the bar index changes. How can I add a label fixed to a specific index?

Getting error and don’t know how to solve it – Object has no field all

closelong = (n1 < n2 and p < n2 and confidence < dt) or (strategy.opentrades.profit(strategy.opentrades.size(strategy.opentrades.all)) < SL) or (strategy.opentrades.profit(strategy.opentrades.size(strategy.opentrades.all)) > TP) I dont know how to solve it. Many Thanks! i want that total number is all but ‘strategy.opentrades.all’ is wrong. pine-script New contributor user25598400 is a new contributor to this site. Take care in […]