Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 825

 
Ghabo:

Isn't your version and what I have written the same thing?

At least nothing has changed on the graph.

Yes, it's the same.



Read it carefully

I was answeringto Sergey Nikolenko

 
Alekseu Fedotov:

Yes, it's the same thing.



Read it carefully.

I was answering toSergey Nikolenko.

I see, and the question why if close[i+1] is greater than the minimum of 10 bars the arrow is still set?

   for(int i=limit; i>=0; i--)
     {
      if(
         close[i+1] <Low[iLowest(NULL,0,MODE_LOW,10,2)]
         )
        {
         BufferUP[i+1]=low[i+1];
        }
     }
 
Ghabo:

I see, but in essence, why if close[i+1] is greater than the minimum of 10 bars the arrow is still placed?

The first thing you see (all in the style of "havoc") - and what does it return to you

iLowest(NULL,0,MODE_LOW,10,2)

Do you check this somewhere?

What does the help say about it?

Returned value

Index of the smallest found value (offset from the current bar) of the corresponding chart or -1 in case of error.

Are you sure you're getting the index?
 

When I insert this EA, it doesn't work at all for some reason

#property script_show_inputs
 
Lomonosov1991:

When I insert this EA, it doesn't work at all for some reason

This is not for EAs. It's for scripts - so that configurable parameters are displayed on startup.

 
Lomonosov1991:

When I insert this EA it doesn't work at all for some reason

This is for scripts, output not output properties window

 
Artyom Trishkin:

This is not for EAs. It's for scripts - so that configurable parameters are displayed on startup.

And how can I make thesettings in Russian instead ofStopTorg?
extern double StopTorg = 10;//Просадка для остановки торгов;
 
Lomonosov1991:
How can I change theStopTorg setting of an EA tobe written in Russian?
input double StopTorg = 10;//Просадка для остановки торгов;

You have already been answered:

Forum on trading, automated trading systems and trading strategy testing

Any questions from beginners on MQL4, help and discussion on algorithms and codes

Igor Makanu, 2019.05.02 18:25

input double StopNewOrder = 10;//Просадка для остановки торгов

 
Artyom Trishkin:
Tried it already. I don't know, it's like my software is glitchy
Files:
 
Lomonosov1991:
Tried it already. I don't know, it's like my software is glitchy

at the beginning of the code.

#property strict