Explanation of a Ae
texcs: Of this program I would like to know: 1) What is the function that brings up the arrows on the chart? 2) What does this line: CrossUp [i] = Low [i] - Range * 1.5 / Crossdown [i] = High [i] + Range * 1.5; what is the use? 3) I spiegatr function "bool NewBar ()"? 4) "Time [0]" is the last bar ? |
|
| Verbose coding | Simplified |
|---|---|
if (ArrowType == 0) { SetIndexStyle(0,DRAW_ARROW); SetIndexArrow(0, 233); SetIndexStyle(1,DRAW_ARROW); SetIndexArrow(1, 234); } else if (ArrowType == 1) { SetIndexStyle(0,DRAW_ARROW); SetIndexArrow(0, 225); SetIndexStyle(1,DRAW_ARROW); SetIndexArrow(1, 226); } else if (ArrowType == 2) { SetIndexStyle(0,DRAW_ARROW); SetIndexArrow(0, 241); SetIndexStyle(1,DRAW_ARROW); SetIndexArrow(1, 242); } else if (ArrowType == 3) { SetIndexStyle(0,DRAW_ARROW); SetIndexArrow(0, 221); SetIndexStyle(1,DRAW_ARROW); SetIndexArrow(1, 222); } else if (ArrowType == 4) { SetIndexStyle(0,DRAW_ARROW); SetIndexArrow(0, 217); SetIndexStyle(1,DRAW_ARROW); SetIndexArrow(1, 218); } else if (ArrowType == 5) { SetIndexStyle(0,DRAW_ARROW); SetIndexArrow(0, 228); SetIndexStyle(1,DRAW_ARROW); SetIndexArrow(1, 230); } else if (ArrowType == 6) { SetIndexStyle(0,DRAW_ARROW); SetIndexArrow(0, 236); SetIndexStyle(1,DRAW_ARROW); SetIndexArrow(1, 238); } else if (ArrowType == 7) { SetIndexStyle(0,DRAW_ARROW); SetIndexArrow(0, 246); SetIndexStyle(1,DRAW_ARROW); SetIndexArrow(1, 248); } else if (ArrowType == 8) { SetIndexStyle(0,DRAW_ARROW); SetIndexArrow(0, 67); SetIndexStyle(1,DRAW_ARROW); SetIndexArrow(1, 68); } else if (ArrowType == 9) { SetIndexStyle(0,DRAW_ARROW); SetIndexArrow(0, 71); SetIndexStyle(1,DRAW_ARROW); SetIndexArrow(1, 72); } | int Arrow0[] = { 233, 225, 241, 221, 217, 228, 236, 246, 67, 71 } int Arrow1[] = { 234, 226, 242, 222, 218, 230, 238, 248, 68, 72 } SetIndexStyle(0,DRAW_ARROW); SetIndexArrow(0, Arrow0[ArrowType]); SetIndexStyle(1,DRAW_ARROW); SetIndexArrow(1, Arrow1[ArrowType]); |
Explain to me better "
- Tells the terminal if and where to draw the arrows
texcs: Explain to me better Tells the terminal if and where to draw the arrows
| If you leave a buffer element empty (EMPTY_VALUE) it doesn't draw the line or arrow If you put a value in the buffer, it draws the line or arrow at the price. |
And explain to me how they are drawn green arrows?
1) What is the function that brings up the arrows on the chart?
2) What does this line: CrossUp [i] = Low [i] - Range * 1.5 / Crossdown [i] = High [i] + Range * 1.5; what is the use?
3) I spiegatr function "bool NewBar ()"?
4) "Time [0]" is the last bar ?