[ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. - page 279

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Something is wrong with my function returning the value of elements of the same array. I will describe everything in order regarding this issue.
The global variables are:
int crossDir[3];
Functions used in this calculation:
I additionally print the value of array items returned by theGetStateMa(int& crossDir[]) function:
This is what is returned:
The values of the array elementscrossDir[] are returned are different, although they should all be with value 1.
This can be seen from the unsetting of expressions comparing Mach 4 periods and 365 periods. Can you tell me why the values are returned incorrectly?
Thanks for being specific, because the link I was sent didn't have these arrays in it, and I didn't pay attention to the column on the left because I was at work.
but no one will swallow everything you spit up but you ;)
How did you learn, if at all, from hints? Only active and inquisitive self-study will bear fruit! I've chewed you up and you're "spitting back" on sound advice! Get a babysitter to clean up your mess!
Good evening all, I have indicator B built from indicator A (through iCustom) . Both indicators are on the chart. When I change indicator A' s parameters, indicator B doesn't automatically rebuild, I need to recompile it forcibly. Why isn't indicator B rebuilt automatically? Please tell me my mistake?
You call indicator A (via iCustom) with certain settings, which do NOT depend on the settings of indicator A. It means that the terminal simultaneously calculates two independent copies of indicator A.
And what should be done to make the terminal calculate the second variant of the indicator A?
What should be done to make the terminal calculate the second version of indicator A?
How did you learn, if you learned, from the prompts? Only active and inquisitive self-study will bear fruit! I've chewed you up and you're spitting out sound advice! Get a babysitter to clean up your mess!
moderate your ego! I do not bounce back from that advice, I took it and thanked you, but I do not take it that way! I asked and answered in a civilized manner!
Hello!
The value of the Point variable needs to be used in the EA.
But it is equal to 0.
As far as I understand, this is because of the 5 digits after the decimal point in the quote.
Is there any way to determine this value?
Thank you.
Please make your task clearer.
Indicator A - normal AO (My_AO) - top one in the picture.
Indicator B-histogram(+1/-1) of AO indicator (My_AO) - middle one in the figure.
When you change the parameters of indicator A (the bottom one in the picture), indicator B does not change even if you recompile.
I showed two AO indicators (My_AO) at the same time just to illustrate what happens with the indicators, but in real conditions there should be one AO (My_AO).
The first code is indicator A.
Second code- indicator B.
Indicator A - normal AO indicator (My_AO) - top one in the figure.
Indicator B - histogram(+1/-1) of AO indicator (My_AO) - middle in the figure.
If you change the parameters of indicator A (bottom in the figure), indicator B does not change even if you recompile.
The two AO indicators (My_AO) at the same time I have shown just to illustrate what happens with the indicators, but in real life there should be one AO (My_AO).
The first code is indicator A.
The second code is indicator B.
And this order of things is normal (these are the principles of the terminal).
If you want to change the parameters of indicator A, make the exchange of information between indicators (may be a file, global variables of the terminal, RAM): indicator A passes the initializable parameters during initialization and indicator B periodically checks the changes of indicator A. When it detects changes, indicator B also should be initialized with the new parameters (forced init()).