Please tell me who knows How to use an external indicator in mkl5?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
-aleks-
I was glad to help.
vitaliy9999999
thank you for your advice! apparently there should have been zeros) now I will know)
-aleks-
In the branch about ZZ, I gave You the code where the ZZ indicator is used, what is not clear there?
vitaliy9999999
In General, external is not included in the terminal. That is, handwritten. I have a problem with the ZigZag indicator, it is standard, but its handle can only be obtained through the iCustom () function.
Then, using CopyBuffer (), I copied its data to the buffer. But when displaying extremes in the log it shows some kind of heresy) defines either the first vertex that has not yet formed. Either 6 is also not yet formed-those are the current extreme.
Could you tell me the pros pliz!
alexx_v
Find out the short name and handle of the indicator, if it is not one-go through all the available ones on the chart in a cycle,
// – – – number of Windows on the chart (there is always at least one main window)
int windows=(int)ChartGetInteger(0,CHART_WINDOWS_TOTAL);
// – – – go through the chart Windows
for(int w=0;w
{
// – – – how many indicators are there in this window/subwindow
int total=ChartIndicatorsTotal(0,w);
// – – – let’s go through all the indicators in the window
for(int i=0;i
{
// – – – get the short name of the indicator
string name=ChartIndicatorName(0,w,i);
// – – – get the indicator handle
int handle=ChartIndicatorGet(0,w,name);
next, use the CopyBuffer() function to take values from the buffer of the selected indicator at the time of interest, and then do what you wanted with them.
Perhaps there is a simpler and more effective way.
vdev
Help knows
Or on the website
barabashkakvn
What is an “external indicator”?