[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 462
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
after the first function no longer works
What condition does it fail before?
What condition doesn't work at all?
the first condition stops closing orders.
And the second one doesn't work either.
i.e. if the conditions are fulfilled, the trades continue to be open.
- Is there any way to get rid of one buffer and still maintain the same functionality?
Thank you!
A little more advice. There is a loop that should search for the lowest price value for the period, but the loop ends and the StopLoss variable is 0 even though it should be equal to at least one price
The StopLoss variable is equal to 0 at the beginning
The loop does not assign the minimum value to the StopLoss variable, as far as I understood it.
The following code draws a line below the graph in a separate window, which is coloured green or red depending on the conditions.
- Is there any way to do without a single buffer and still retain the same functionality?
Of course, it is possible to apply objects, but it is another song.
So, I did my own thing with fractals - I wrote my own indicator... Well, it's easier for me. Here's the question-- I got a problem.
how do I move the arrows back 3 bars? :(
A little piece of code...
SetIndexStyle(0, DRAW_ARROW,0,1);
SetIndexArrow(0,217);
SetIndexBuffer(0, ExtMapBuffer1);
SetIndexEmptyValue(0, 0.0);
SetIndexStyle(1, DRAW_ARROW,0,1);
SetIndexArrow(1, 218);
SetIndexBuffer(1, ExtMapBuffer2);
SetIndexEmptyValue(1, 0.0);
IndicatorShortName("My_iFractals");
SetIndexLabel(0, "iFractalsUp");
SetIndexLabel(1, "iFractalsDn");
UPD
Вопрос снят, сорри опять за кривость свою, но может кому будет интересно ответ- SetIndexShift(0,-3);
I've seen different ways, but this one. Use SetIndexShift - upward curve
One buffer - one colour. It means that you can change colour at any moment, but the whole line will change colour along its length. All two-color lines in indicators are drawn with two buffers.
Of course, it is possible to apply objects, but it is another song.
Thank you!
I can't figure out how to sum up (Close[1]-Open[1])+(Close[2]-Open[2]) etc. for N periods (applicable to the indicator).