Coding a Renko chart (Renko chart settings)
Here is some important feedback for developers. The Renko chart implementation in Upstox makes it highly difficult for a trader to use it at the moment. Here are some concerns:
- In my current chart setup, I have four charts for different assets visible simultaneously on the screen. Each chart will take up 1/4th of my screen space. Suppose I want to take a closer look at one of the charts and I use the maximize button so that the chart fills up the entire screen. To my surprise, the brick size changes and I see a completely different chart even though I have not changed the interval at all. This is a great deterrent to renko chart usage. Needless to say, the brick size should remain the same at all zoom levels.
Please see attached images for illustration. In the First image below, GoldM has a brick size of 0.11%.
The second image below is the full screen version of the same GoldM Chart, but note here that the brick size has automatically changed to 0.05% and as a result we see a completely different chart.
- It is vitally important for a trader that the brick size should remain constant for the duration of his trade. Say I take a long trade in Gold at 11AM in the morning, based a brick size of 25. I plan to exit when renko chart shows a reversal. In the meantime, say by 8PM in the evening, the brick size has changed based on your caveman algorithm to say 30. Now the chart which I see in Upstox based on this new brick size, will be totally different to the one I had seen when I had taken the long position at 11AM in the morning. This will completely mess up my exit.
Please do something so that the user can freeze the brick sizes for a particular asset. We cannot have a chart changing brick sizes in the middle of a trade. It would be preferable if you could give the user control over brick size of each asset. Then the user can enter brick size for a particular asset and it remains the same for that asset until its altered.
Amibroker bridge for API
When will we get amibroker bridge for upstox API?
Will quote updation be done by DDE method or COM method?
I am new to API. I have sunscribe. Can Upstox provide me good example to generate Authorization code using localhost as my URL (127.0.0.1) . Or provide really good step by step example video.
@sacjan2002 Hi, You can follow the authorization process as mentioned in our docs. You can see the example code on the right side panel of docs.
For using localhost, just enter the redirect URI as 127.0.0.1, while creating an app in the Developer Console and use the same redirect URI for generating access token.
For a good example video, watch our webinar on Youtube
Amibroker bridge for API
We've also created a separate forum topic for Bridge to Amibroker -- https://upstox.com/forum/category/5/bridge-to-amibroker
Dim strURL As String = "https://api.upstox.com/live/orders" Dim strResult As String Dim objResponse As WebResponse Dim objRequest As WebRequest objRequest = HttpWebRequest.Create(strURL) objRequest.ContentType = "application/json" objRequest.Headers.Add("x-api-key: your_api_key") objRequest.Headers.Add("authorization: Bearer your_access_token") Dim mycache As New CredentialCache mycache.Add(New Uri(strURL), "Basic", New NetworkCredential("your_api_key", "your_api_secret")) objRequest.Credentials = mycache objRequest.Method = "POST" ''objRequest. objResponse = objRequest.GetResponse() Using sr As New StreamReader(objResponse.GetResponseStream()) strResult = sr.ReadToEnd() sr.Close() End Using