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

 
danil77783:

So, to be honest, robots are not profitable? Is it easier to learn programming in general and go down the other line?

Yes, they do, but you have to put a profitable algorithm into it.

If there is no algorithm, there is nothing to put in it, and, consequently, you don't need to know the programming language.

 
Vitaly Muzichenko:

In order to write an EA, you don't have to open an indicator, and you don't even need the source code from it.

Read on:


Well, that's more or less what I did. I started to write an Expert Advisor based on this indicator but I got a hitch. Can I send you the code? (Expert Advisor)

 
danil77783:

Well, that's about what I did. Started to write an EA using this indicator, a snag has arisen. Can I send you the code? (Expert Advisor)

I'm sorry, I don't have time for code parsing, I have a lot of work to do and I've been chatting on the forum during the breaks

 
Vitaly Muzichenko:

Yes, they do, but you have to put a profitable algorithm into it.

If there is no algorithm, there is nothing to put in it, so you don't need to know the programming language.


The thing is that I've been trading with this system manually for a long time and it brings profit. I would not automate it otherwise, so I'm asking for your help. I thank you for it. You have helped me really well a couple of times, thank you very much)))))......... I would like further assistance

 
danil77783:

The fact is that I have been trading this system manually for a long time and it is profitable. I wouldn't automate it otherwise, that's why I'm asking for your help. I thank you for it. You have helped me really well a couple of times, thank you very much)))))......... I would like further assistance

You need to get the indicator buffers in the EA, that's the biggest difficulty, everything else can be written on the simplest template from kodobase if you don't have your own.

What's not working out for you?

 
Vitaly Muzichenko:

Replaced them with a normal array, they don't need to be displayed anyway, they are used for intermediate calculations.

Look at INDICATOR_CALCULATIONS.

It's not in documentation, but mql4 does not swear by it.

Well, as a last resort

   SetIndexLabel(1, NULL);
   SetIndexLabel(2, NULL);
 
Alexey Viktorov:

Look at INDICATOR_CALCULATIONS.

It's not in the documentation, but mql4 doesn't swear by it.

Well, as a last resort.

No, it's a hint when hovering over the line, instead of value, it outputs its

 
Vitaly Muzichenko:

Nah, it's the hints when hovering over the line, instead of displaying your

Vitaly!!! It's checked...

 
Alexey Viktorov:

Vitaly!!! It's checked...

Weird, I'll try spinning it.

Thank you!



P.S. Did it this way, the result didn't change at all

   SetIndexBuffer(0,Buf1,INDICATOR_CALCULATIONS);
   SetIndexBuffer(1,Buf2,INDICATOR_CALCULATIONS);
 // SetIndexStyle(0,DRAW_LINE);
 // SetIndexBuffer(0,Buf1);
  
 // SetIndexStyle(1,DRAW_LINE);
 // SetIndexBuffer(1,Buf2);

Here's a little video with sound:


 
Vitaly Muzichenko:

Weird, I'll try spinning it.

Thank you!



P.S. Did it this way, the result didn't change at all

Here's a little video of the sound:


Vitaly, it said about INDICATOR_CALCULATIONS... it doesn't mean it's definitely working. And then it was said.

Forum on trading, automated trading systems and testing of trading strategies

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

Alexey Viktorov, 2017.09.01 09:41

Check out INDICATOR_CALCULATIONS.

It's not in the documentation, but mql4 doesn't swear at it.

Well, as a last resort.

   SetIndexLabel(1, NULL);
   SetIndexLabel(2, NULL);
Checked!!!
   SetIndexLabel(0, "Pips вверх");
   SetIndexLabel(1, "Tick вверх");
   SetIndexLabel(2, "Pips вниз");
   SetIndexLabel(3, "Tick вниз");
   SetIndexLabel(4, "Tick всего");


Another option

   SetIndexLabel(0, NULL);
   SetIndexLabel(1, NULL);
   SetIndexLabel(2, NULL);
   SetIndexLabel(3, NULL);
   SetIndexLabel(4, NULL);

And all this at zero bar...

Reason: