|
Josh McCormick
2020-07-05 17:46:53
|
|
Is there a document which describes the most important variables to use when creating at technical indicator? What range of values need to be updated? (I'm currently updating from 0 to numBars but I'm sure that overkill causes a performance hit). I'm also seeing different variables to use if they're on an IntraDay chart? There seems to be so many things going on, I'm hoping you can point me to a quick document (or create one) which covers what variables I should be looking at and how far many bars back I should be filling in data for (if it is going to be plotted)?
Thank you,
Josh McCormick
|
|
|
|
Josh McCormick
2020-07-05 23:09:03
0
|
|
I figured out a few variables, but by no means all (or how much I need to update under what circumstances).
TotalBars() represents the total number of bars or ticks from beginning to end.
Count() returns the id number for the bar that you're currently hovering over
I still haven't found the variables which tell me what range of Bars is on-screen right now. If I want to re-scale just the amount of data that I have on screen (so the smallest item is "0" and the largest item is "100"), I don't know where I'm supposed to begin and end. Hopefully someone can help! :)
|
|
|
|
QuantShare
2020-07-06 12:34:23
0
|
|
Depending on the technical indicator you want to create, you will end up using different functions.
Some of the popular ones are:
SMA
HHV
LLV
All functions/indicator you create will be calculated based on all the data (not on the on-screen data).
If you use:
a = sma(14);
Then this will calculate 14-bar simple moving average based on all data. You should not both with on-screen data.
In the formula editor (right click on a chart then select "Edit formula"), click on "Add Indicator" and you will see all indicators by category with the description and the different parameters it accept.
|
|
|
|
Josh McCormick
2020-07-14 11:11:39
0
|
|
Are there any functions that I can use to determine the following?
1. How many bars across the pane (chart) is
2. Which bar is the first one?
3. Which bar is the last one?
As an example use, I might want to display the trading volume range that's currently on-screen. But I can't make that computation without knowing the current starting point and range of the chart.
Your thoughts?
|
|
|
|
QuantShare
2020-07-18 11:10:49
0
|
|
no, because the formula is applied once to all bars.
You can create custom drawing tool for that.
https://www.quantshare.com/how-367-how-to-use-a-custom-drawing-tool
The drawing will get the appropriate information and display a text information with the volume range.
|
|
|
|