[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 1130

 
fx_max:

Please explain why nothing is displayed in the indicator window as a result.

Try it like this:

while(i>=0){ 
  Buf_0[i]=Close[i]/Close[i+1];
  Print("Buf_0[",i,"] = ",Buf_0[i]);
  i--;
}

And see exactly what the indicator tells you

 
fx_max:

Please explain why in the end nothing is shown in the indicator window.

This is how it is drawn, but if you normalise the division result to digits, the indicator buffer will always show 1, because the divisor and the divisor are very close and the division result is very close to 1.

#property indicator_separate_window
#property indicator_buffers 1
#property indicator_color1 Red
//---- buffers
double ExtMapBuffer1[];

int init(){
  //---- indicators
  SetIndexStyle(0,DRAW_LINE, STYLE_SOLID,2);
  SetIndexBuffer(0,ExtMapBuffer1);
  //----
  return(0);
}

int start(){
  int    counted_bars=IndicatorCounted();
  int limit;
  if(counted_bars==0) {limit=Bars-1;}
  if(counted_bars>0) {limit=Bars-counted_bars-1;}
  for(int i=limit;i>=0;i--){
    if(Close[i]>0 && Close[i+1]>0){
      ExtMapBuffer1[i]=Close[i]/Close[i+1];
    }
    else{
      Print("Close[",i+1,"] = ",Close[i+1],"  Close[",i,"] = ",Close[i]);
    }
  } 
  return(0);
}
//+------------------------------------------------------------------+
 
 
Can you tell me why the detailed report (as well as the report) from the real account history is not saved to disk, from the demo account is saved - in the "account history" tab of the terminal, after clicking the right mouse button selected "all history" there and there, then "save as detailed report" - all the same do there and there while with a real account report for some reason is not saved (file names specify different in the same directory on the desktop)?
 
Roman.:


Easy - your template is off. I have attached the template archive to this post. Close the terminal, open the terminal folder. There is a templates folder in it - open it and replace the files there with the ones in the archive of this post.

For example, the path to my folder is D:\Other\Net\MetaTrader 4\templates\.

Files:
1_2.rar  6 kb
 
drknn:


It's easy - your template is messed up. I have attached an archive with templates to this post. Close the terminal, open the terminal folder. There is a templates folder in it - open it and replace the files there with the ones in the archive of this post.

My folder path is D:Other\Net\MetaTrader 4\templates\, for example.


Thank you, everything worked, hurrah!
 

tested the advisor at the end of testing is as follows

Any advice?

5492010.11.19 22:59close at stop1750.801.597840.000001.63074-2281.6010062.04

5502010.11.19 22:59close at stop1740.401.597840.000001.63074-1160.808901.24
5512010.11.19 22:59close at stop1730.201.597840.000001.63074-590.40

8310.84


 
evgenii_7:

tested the advisor at the end of testing is as follows

Any advice?

5492010.11.19 22:59close at stop1750.801.597840.000001.63074-2281.6010062.04

5502010.11.19 22:59close at stop1740.401.597840.000001.63074-1160.808901.24
5512010.11.19 22:59close at stop1730.201.597840.000001.63074-590.40

8310.84



close at stop

The order is closed forcibly at the end of the test...
 
Please explain to a newcomer why Open[] Close[] Low[] and High[] might be needed, since we are trading by Ask and Bid?
 
labirint:
Please explain to a beginner why Open[] Close[] Low[] and High[] might be needed, since we trade by Ask and Bid?


To analyze the current price trend and decide what to do next. You can't argue that there is no trend. Right? Then the price has inertia. How can we track the inertia, if we do not have anything in our hands, except the array of tick data of Bid and Ask?

Generally speaking, this is not the only reason why these price arrays may be needed. The field of application is quite wide.

 
labirint:
Please explain to a newbie why Open[] Close[] Low[] and High[] may be needed, since we trade by Ask and Bid?


I am a beginner, why do I need audjpy charts?

I am only working on eurusd ...