Questions about Coding in Pine editor of TradingView
//@version=5 strategy(“Price Level Trading Strategy”, overlay=true) // Initialize last trade price and position size var float lastTradePrice = na var float avgTradePrice = na var bool firstTrade = true // Check current price and make trades if firstTrade strategy.entry(“Initial Long”, strategy.long, 1) lastTradePrice := close avgTradePrice := close firstTrade := false // Update average trade […]
Need to choose source for a stock [closed]
Closed 2 days ago.
Trading View Advanced Library: Adding Custom Indicator to the Chart
I’m new to the TradingView library. I’m trying to add a new custom chart with dummy data to the TradingView advanced charting library, but I’m encountering a runtime error and I’m not sure how to debug it. And also currently I’m using dummy data, what should I want to switch from dummy data to actual api that provide the data?
Check if previous candle was the first in a session
I need to check for the second candle in a session.
session.isfirstbar
checks for the first candle but how to check for the second candle
Any help is apprecaited. (This is pine script)
trading View is broken please
how do you getahold of trading view after you buy. i have talked with 7 developers who are pine script experts and theya ll they say the same thigns that youa re limited with trading view on coding. it doesnt do what youw ant. thats why the data on back testing is alwasy wrong. you cant put in fucntions it just doesnt proces them and the interafce doesnt recycle for 24 on utc time for dealign fx trades. thats why trades doent show up. it has so many programming isues to list. i got to get ahold of these guys and get a refund. does any know. before i write an automation that creates a bot to postblogs and posts all day on every board i can find.
High CPU Usage since last update. TradingView Desktop
since the update few days ago. My TradingView desktop is doing 60 % CPU Usage
and I reduced number of windows
the load is almost constant
Trading View connect to custom api
Is it possible use Pine script for fetch data from my api for tokens in my dex ?
Tradingview Charting Library : OnClick event on chart to get price
Base on trading view documents , we can get position of mouse click event , includes :(clientX,clientY,pageX,pageY,screenX,screenY)
Barcolor and Trailingstop plot is not executed, and I don’t know how to code exact multiple close condition
I’m new trader who started to use Pinesctipt a few days ago. I found two indicators in TradingView community: UT bot indicatior and STC indidcator. UT bot is indicator whose core idea is the breakout of ATR trailingstop, and STC indicator is oscillator that uses difference of fast MA and Slow MA. I tried to make strategy using those.
TradingView: plot and barcolor function is not visible on the chart
I made an strategy using Pinescript. Code is well started without error message. but plot of trailingstop line and barcolor function are not visible. I cannot understand why…