[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 629
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
For example, search for max=0 by closing (conditional, the main thing is to understand the reason why the algorithm does not work).
The point is, max=0, why?
OOPS! Found the error!
Instead of
for (i=24;i<1;i-- )
need
for (i=0;i<25;i++ )
P.s. Who needs - good example of how to look for extrema without "tails". ;)
double max;
int k=0;
//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int init()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
int i,j;
//----
if (Hour()>5 && (k==0) )
{
for (i=24;i<1;i-- ) <---- тут исправить..
{
if ( TimeHour(iTime(NULL,60,i))==23)
{
max=Close[iHighest(NULL,0,MODE_CLOSE,24,i)];
k=1;
}
}
}
Comment ("макс дня ",max,"\n","Время по терминалу- ",Hour());
//----
return(0);
}
//+------------------------------------------------------------------+
I cannot find the script, I remember someone asking me how to add OBJ_ARROW or OBJ_TREND and then use SLEEP(.....) to remove the objects, I need a loop which adds objects from specific levels and removes them after a certain time
search engine gives OBJ_ARROW & OBJ_TREND & SLEEP(50) - not found or frequent requests make it go away
I can't understand the difference between balance and equity. How are they different?
I can't understand the difference between balance and equity. How are they different?
Hi all! I would like to draw an OBJECT - a slanted section of a finite length. Draw it from an EA. Does anyone know how?
Hi all! I would like to draw an OBJECT - a slanted section of a finite length. Draw it from an EA. Does anyone know how?
Draw OBJ_TRENDLINE, set OBJPROP_RAY to false
Thank you, I will try it now.
You should draw an OBJECT - a slanted section of a finite length. Draw it from the EA...
There is no such object in MT4.
There is no such object in MT4.