[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 99
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
It's not worth it. Donating 'for something' is a consolation to one's ego, nothing more.
Real charity is always unaddressed.
How's that? Transferring money... Where? To whom? Why?
Good afternoon! Please help me with the ArrayMo function (it returns the maximum of the density curve).
The following questions have arisen:
1.What is the purpose of creating a temporary array
2. It's not clear what the values of the temporary array will be taken from, and therefore it's not clear how this array may be searched:
3. And then generally for me the truth is deeply hidden))))) Once we have ascertained that there is no value, we start to determine the size of the array of "incomprehensible values".
I would really appreciate a ray of light in this story))))
Hello! Here's the trailing stop function, check if it's correct. Because my code will change drastically, it will be hard to deal with errors when I start changing it
Hello! Here's the trailing stop function, check if it's correct. I will change my code drastically, it will be hard to deal with errors when I start changing it.
You do not take into account the Stoplevel, so if you have not ECN/NDD, you may get the error "wrong stops".
And in general, after OrderModify it is better to handle all errors, just in case.
Foxy, how about the code of ArraySearchDouble function, is it there? Without it, it would be much harder to understand what the program does)
These are all functions from KimIV, which is what I'm trying to figure out. Here is the code:
This function searches for an element of an array using a value of type double and returns the index of the found element or -1. The function finds only one element and stops searching if the result is positive.
does not work. PreBars is equal to the number of bars on the previous tick. Maybe I put it in the wrong place or in the wrong function?
Professionals, can you tell me what I'm doing wrong? I need to redraw the indicator window when a new bar appears. if (Bars != Prebars) WindowRedraw();
it doesn't result in anything. Maybe I put it in the wrong place or something is wrong?
You have to draw it first in order to redraw something.
To redraw something, you have to draw it first.
Everything is drawn perfectly, the indicator is based on a zigzag, but when new bars appear, the curve should be redrawn all over, but it only adds the value of the indicator in a new bar...
int init() {
SetIndexBuffer(0,ZZ);
SetIndexStyle(0,DRAW_SECTION);
SetIndexEmptyValue(0,0.0);
Everything is drawn fine, the indicator is based on a zigzag, but when new bars appear, the curve should be redrawn all over, but it only adds the value of the indicator in the new bar...
int init() {
SetIndexBuffer(0,ZZ);
SetIndexStyle(0,DRAW_SECTION);
SetIndexEmptyValue(0,0.0);