[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 503

 
M25A1:

Can anyone suggest how to combine two indicators in one window?

create a third indicator that objects the buffers from the first two.

and how to add/exclude items in the indicators in general

more than an odd question.
 
Hello, perhaps someone has a piece of code which from the posterior combinations (can be placements) finds the right ones?
 
ask: Hello, perhaps someone has a piece of code which from the posterior combinations (can be placements) finds the right ones?
Go to the telepaths.
 

When we move the mouse cursor to an object, a rectangle appears with its description.
For example "Moving Average" / "Time" / "Value".
- Is it possible to prevent them from appearing?
I've removed "Show Object Descriptions" in the settings, but nothing has changed.
Thank you!

 
Good afternoon.Help find a bug in the code

This is the starter program in the tutorial .

It doesn't count ticks . Why is it like this?

Thanks

//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int Count=0; // Global variable.
//--------------------------------------------------------------------
int init() // Special init()
{
Alert ("The init() function worked at start"); // Message
return; // Exit init()
}
//--------------------------------------------------------------------
int start() // Special init()
{
double Price = Ask; // Local variable Count.
Count++; // Tick counter
Alert("New tick ",Count," Price = ",Price);// Message
return; // Exit start()
}
//--------------------------------------------------------------------
int deinit() // Special function deinit()
{
Alert ("Deinit() triggered during upload"); // Message
return; // Exit deinit()
}
//--------------------------------------------------------------------
 
chief2000: - Is it possible to prevent them from appearing?

I've unchecked "Show Object descriptions" in the settings, but nothing has changed.

I doubt it will work. I don't have a tick mark either (in the character chart settings), but it shows the descriptions.

Well, maybe you can somehow with WinAPI...

 
greysoldier:
Good afternoon .Help me find an error in the code .

This is the initial program in the tutorial .

It doesn't count the ticks. Why is it like this .

1. there is no trade as it is the weekend. Ticks are not coming in, he has nothing to count.

2. You may have put this expert in the wrong place. You should put it in the \experts directory.

 

Mathemat, thank you for responding.

1. The test was done on Friday.

2.C:\Program Files (x86)\Alpari MT4\experts

 

Good afternoon. Please help:)

Task: build MA for any TF (including non-standard!!!) on top of any TF without stretching, squeezing. Just to have another TF on top of the chart.

Algorithm: Suppose we need to plot M5. From simple logic it is clear that one bar of M5 consists of 5 bars of M1. Therefore:

-Fill an array (in this case two arrays)with M1

   for(int ii=0;ii<bars_amount*TF_in_minutes;ii++)
   {
     Bars_M1_H[ii]=iMA(Symbol(),PERIOD_M1,1,0,MODE_SMA,PRICE_HIGH,ii); 
     Bars_M1_L[ii]=iMA(Symbol(),PERIOD_M1,1,0,MODE_SMA,PRICE_LOW,ii); 
   } 

-then make it into M5 for clarity

double max=0;
   double min=100000000;
   int n=0;
   for(ii=0;ii<bars_amount*TF_in_minutes;ii++)
   {
      if(ii%TF_in_minutes==0 && ii!=0)
      {
       Bars_Se_H[n]=max;//искомый массив с М5 для HIGH
       Bars_Se_L[n]=min;//искомый массив с М5 для LOW
       n++;
       max=0;
       min=100000000;
      }
      if(max<Bars_M1_H[ii])
      {
       max=Bars_M1_H[ii];
      }
      if(min>Bars_M1_L[ii])
      {
       min=Bars_M1_L[ii];
      }
   }

Logically it's correct, but in reality it creates a shift that only increases with time. Ignore the parabolic.

What might be the problem? Or we have to say goodbye to non-standard TFs after all.

Mb there is already some function that returns a series with a non-standard TF. It does not have to be MA.

Thank you in advance.

 
Mathemat:

I doubt it will work. I don't have a tick mark either (in the character chart settings), but it shows descriptions.

Well, maybe you can do it somehow with WinAPI...

On the other thread you can contact the developers - I'll describe everything there, maybe they'll fix it.
Thanks!