Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 134

 
chief2000:

You can see the results I gave earlier for the 4 loops, there the innermost loop is triggered once to get 1234.


I looked it up. But the rest of the results are chaotic. It's not clear what follows what...

Here's the cycle:

2013.09.09 23:22:11     2013.08.14 09:42  massive_fffffffff EURUSD.GI,M5: Combination = 2   4
2013.09.09 23:22:11     2013.08.14 09:42  massive_fffffffff EURUSD.GI,M5: Combination = 2   3   4
2013.09.09 23:22:11     2013.08.14 09:42  massive_fffffffff EURUSD.GI,M5: Combination = 2   3
2013.09.09 23:22:11     2013.08.14 09:42  massive_fffffffff EURUSD.GI,M5: Combination = 2
2013.09.09 23:22:11     2013.08.14 09:41  massive_fffffffff EURUSD.GI,M5: Combination = 1   2   4
2013.09.09 23:22:11     2013.08.14 09:41  massive_fffffffff EURUSD.GI,M5: Combination = 1   2   3   4
2013.09.09 23:22:11     2013.08.14 09:41  massive_fffffffff EURUSD.GI,M5: Combination = 1   2   3
2013.09.09 23:22:11     2013.08.14 09:41  massive_fffffffff EURUSD.GI,M5: Combination = 1   2
2013.09.09 23:22:11     2013.08.14 09:41  massive_fffffffff EURUSD.GI,M5: Combination = 1
2013.09.09 23:22:11     2013.08.14 09:41  massive_fffffffff EURUSD.GI,M5: Combination = 4
2013.09.09 23:22:11     2013.08.14 09:41  massive_fffffffff EURUSD.GI,M5: Combination = 3   4
2013.09.09 23:22:11     2013.08.14 09:41  massive_fffffffff EURUSD.GI,M5: Combination = 3
2013.09.09 23:22:11     2013.08.14 09:41  massive_fffffffff EURUSD.GI,M5: Combination = 2   4
2013.09.09 23:22:11     2013.08.14 09:41  massive_fffffffff EURUSD.GI,M5: Combination = 2   3   4
2013.09.09 23:22:11     2013.08.14 09:41  massive_fffffffff EURUSD.GI,M5: Combination = 2   3
2013.09.09 23:22:11     2013.08.14 09:41  massive_fffffffff EURUSD.GI,M5: Combination = 2
2013.09.09 23:22:11     2013.08.14 09:41  massive_fffffffff EURUSD.GI,M5: Combination = 1   4
2013.09.09 23:22:11     2013.08.14 09:41  massive_fffffffff EURUSD.GI,M5: Combination = 1   3   4
2013.09.09 23:22:11     2013.08.14 09:41  massive_fffffffff EURUSD.GI,M5: Combination = 1   3
2013.09.09 23:22:11     2013.08.14 09:41  massive_fffffffff EURUSD.GI,M5: Combination = 1   2   4
2013.09.09 23:22:11     2013.08.14 09:41  massive_fffffffff EURUSD.GI,M5: Combination = 1   2   3   4
2013.09.09 23:22:11     2013.08.14 09:41  massive_fffffffff EURUSD.GI,M5: Combination = 1   2   3
2013.09.09 23:22:11     2013.08.14 09:41  massive_fffffffff EURUSD.GI,M5: Combination = 1   2
2013.09.09 23:22:11     2013.08.14 09:41  massive_fffffffff EURUSD.GI,M5: Combination = 1
2013.09.09 23:22:11     2013.08.14 09:41  massive_fffffffff EURUSD.GI,M5: Combination = 4
2013.09.09 23:22:11     2013.08.14 09:41  massive_fffffffff EURUSD.GI,M5: Combination = 3   4
2013.09.09 23:22:11     2013.08.14 09:41  massive_fffffffff EURUSD.GI,M5: Combination = 3
2013.09.09 23:22:11     2013.08.14 09:41  massive_fffffffff EURUSD.GI,M5: Combination = 2   4
 
hoz:


I looked it over. But the rest of the results are chaotic. It's not clear what follows what...

Here's the cycle:


How many times did you run the indicator? Seems to be several times (your results show cyclicality).
Add one more print to deinit with some "separator", set input condition or redo it in the script to run not more than one time, then it will be clearer.
 
The indicator: #property indicator_chart_window // The indicator is drawn in the main window

//--------------------------------------------------------------------
int start() //special function start()
{double priceMA0=iMA(NULL,0, 12, 144, 0,0);

Comment("ValueMA0 ="+DoubleToStr(priceMA0, Digits));

//--------------------------------------------------------------------
return; //exit special function start()
}
//--------------------------------------------------------------------

What and where should I add when pasting the indicator on the chart, so that in its settings you could set the level shift on the y-axis and not only 1 level but as many as you want?

 
Danila_mactep:
This is what you get from the indicator: #property indicator_chart_window // The indicator is drawn in the main window

...

To insert the code correctly here, click SRC and then the code there.

Throw this EA on the quote window.

int init() 
{
  return(0);
}
//--------------
int start()
{
  double priceMA0=iMA(NULL, 0, 12, 144, MODE_SMA, PRICE_CLOSE, 0);
  Comment("Значение МАшки = ",DoubleToStr(priceMA0,Digits));
  return(0);
}
//--------------
int deinit()
{
  Comment("");
  return(0);
}
 

Can you tell us how to install an Expert Advisor on a chart, written in MetaEditor in MT-4 terminal?

Thank you

 
toolsydas:

Can you tell us how to install an Expert Advisor on a chart, written in MetaEditor in MT-4 terminal?

Thank you

In the navigator window, click on the EA and drag it to the quotes window and confirm with OK.

 
Good day everyone! Who has experience with service signals, help. Here i decided to try what it is. I tried free signal yesterday with ecn demo alpari account, but when I choose a broker in the signal properties there is no such server, who has tried so far just search but that's something stupid.
 
Desead:
Good day everyone! Who has experience with the signals service, help me out. Here i decided to try what it is. I tried free signal yesterday with ecn demo alpari account, but when I choose a broker in the signal properties there is no such server, who has tried so far just search but that's something stupid.
Go to
 
yosuf:

Excuse me, please, who can answer this question or point me to where to turn?

"Please to the owners of the resource: the system periodically "bans" me for a few minutes or hours, and I calmly go to the private area, everything is normal there, but no access, then access is suddenly restored, as if nothing had happened during the next authorization under threatening warnings to prohibit access. Please find out the reason and relieve me of this inconvenience, if possible. Respectfully, I am your humble servant.

Have you tried contacting the administration?
 

Good day, if it's not too difficult, please advise a newbie:

1) How to declare an array of size equal to the value of some variable? (if i=7 declare array double Muss[7] and so on);

2) Why is an array in a user-defined function considered declared and used adequately if the condition is always false?

while (false){

Alert("aaaaaaaaaaa" );

static double Buf_max [9000000];

static double Buf_min [9000000];}

3) Is there a difference in the user function and in general between just an array and a static array?

Reason: