[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 821

 
Forrim:

Something like this is also on my mind

for (i = period;i>=0;i--){

... temp1= iCCI(..., i)

temp2= iCCI(..., i+1)

if temp1 > temp2...

But I still can't figure out how to get one, the biggest value.


max=-10000;
for(i=period;i>0;i--)
{
temp=iCCI(...,i);
if(temp>max)
max=temp;
}

 
Forrim:

Something like this is also on my mind

for (i = period;i>=0;i--){

... temp1= iCCI(..., i)

temp2= iCCI(..., i+1)

if temp1 > temp2...

But I still can't figure out how to get one, the biggest value.


And ArrayMaximum() doesn't help, it only returns an index, not the value itself.
 
Dear programmers!

A question: how to attach a piece of code to the Expert Advisor that would set the Magic Number

Files:
prophet.mq4  6 kb
 
glasha:
Dear programmers!

A question: how to attach a piece of code to the Expert Advisor that would set the Magic Number


Some kind of Magic Number equals 74 is used there. I don't know why it is 74. I was mistaken though. There is one more one that equals 81. It looks like they assembled the Expert Advisor from different pieces and didn't properly check what's there. It happens.
 
glasha:
Dear programmers!

Question: how to attach a piece of code to the Expert Advisor that sets the Magic Number



Magic Number is a parameter of the OrderSend function

https://docs.mql4.com/ru/trading/OrderSend

 

Now one magician, the parameters are set to

Files:
 
Vinin:

So it uses some kind of magik equal to 74. Why 74 I don't know. My mistake, though. There's another one that equals 81. It looks like they assembled the Expert Advisor from different pieces and didn't properly check what's there. It happens.

Sometimes different magicians are used for buy and sell to speed up processing
 
abolk:

Sometimes different magicians are used to speed up processing for buy and sell

Oddly enough, it does not speed things up at all
 
abolk:

Sometimes different magicians are used to speed up processing for buy and sell

Wooooooo!!! So how does it speed things up?
 

Dim, I'll delete the redundant post. There's no need for repetition.

Reason: