Mathieu2301 / TradingView-API

📈 Get real-time stocks from TradingView
1.47k stars 332 forks source link

How to run this app #105

Open leapence opened 2 years ago

leapence commented 2 years ago

I only have a very basic knowledge of java and i would really like to know how to run this app. I am using a mac OSX. I installed node and tried a few commands such us - "node CustomTimeframe.js" but would like to see more... Would anyone tell me how to or point me in the right direction? Much appreciated. Perhaps including a simple how to on description would do it

doohab commented 2 years ago

1- You should create a new node app. In command line create a folder, then cd to that folder and type "node init", then complete the wizard. 2- Inside the new created app folder, follow installation instructions for this repo. Type "npm i @mathieuc/tradingview". 3- Edit index.js (if not exists create it) then copy one of the files content from examples folder. 4- In command line, type "node index.js" and observe the output.

It should be straight forward process.

qrq commented 2 years ago

just a few line in the console without a chart , is that all ?

doohab commented 2 years ago

just a few line in the console without a chart , is that all ?

AFAIK, yes. This API is for analyzing purposes. I am using Mathieu's API for calculating sell/buy signals so I don't need visualization. Tradingview actually has an API of its own that provide charts, but it's way complicated for me.

However, I think with some coding you can convert output to chart in Javascript, its just numbers tho.

qrq commented 1 year ago

just a few line in the console without a chart , is that all ?

AFAIK, yes. This API is for analyzing purposes. I am using Mathieu's API for calculating sell/buy signals so I don't need visualization. Tradingview actually has an API of its own that provide charts, but it's way complicated for me.

However, I think with some coding you can convert output to chart in Javascript, its just numbers tho.

thanks for replay

i also try to get buy and sell signal

but is there way to plot ( this ) signals to chart ?

for example get session chart and link it to div by id ... etc

this small step can make a super up level to this amazing code