Errors, bugs, questions - page 781

 
papaklass:

Would that not work?

Tol64:
ArrayMaximum() and ArrayMinimum() won't work?
Thank you! I'll have to study arrays! Haven't used them yet... Thought it could be easier without them. Why is there such a limitation in mcl4 and mcl5?
 
borilunad:

Who can explain why Mach and Min are limited to searching only from 2 numbers and not from a larger number as in other languages? Because I have to do cumbersome formulas to find the searched for... Thanks!

Will eight be enough?

//+------------------------------------------------------------------+
//|                                                       MinMax.mqh |
//|                             Copyright (c) 2009, Vladimir Gomonov |
//|                                            MetaDriver@rambler.ru |
//+------------------------------------------------------------------+
#property copyright "(c) 2009, Vladimir Gomonov"
#property link      "MetaDriver@rambler.ru"

double fmin(double a,double b,double c,double d=DBL_MAX,
            double e=DBL_MAX,double f=DBL_MAX,double g=DBL_MAX,double h=DBL_MAX)
  {
    return (
       fmin(a,
       fmin(b,
       fmin(c,
       fmin(d,
       fmin(e,
       fmin(f,
       fmin(g,
       h))))))));
  }

double fmax(double a,double b,double c,double d=DBL_MIN,
            double e=DBL_MIN,double f=DBL_MIN,double g=DBL_MIN,double h=DBL_MIN)
  {
    return (
       fmax(a,
       fmax(b,
       fmax(c,
       fmax(d,
       fmax(e,
       fmax(f,
       fmax(g,
       h))))))));
  }
Files:
MinMax.mqh  2 kb
 
borilunad:
Thank you! I'll have to study arrays! Haven't used them yet... Thought it could be easier without them. Why is there such a restriction in mcl4 and mcl5?
There are no restrictions. MetaDriver showed you an example. ))
 
MetaDriver:

Will eight be enough?

Thank you too! I use almost the same, but in the general code, for example, I find from 4 pairs, then from 2 pairs and from the final one, well, like in a cup draw:

x = fmax(fmax(fmax(a,b),fmax(c,d)),fmax(fmax(e,f),fmax(g,h)));
For now, I prefer to have everything at my fingertips. This way I can react faster to market whims. There is little optimisation. And I'm always looking for new solutions in the programme. Profit to all!
 

Scale by points per bar, if fractional numbers, blow the roof off the price scale (Yen in the screenshot)

PS used to be fine, this has come with some of the latest updates.

 

Is it possible to change not only SL and TP but also comment or magic on an open position.

 
gpwr:

Is it possible to change not only SL and TP but also comment or magic.

No, a position's magic is the same as the magic of the opening order,

The comment, on the other hand, is the same as the last order in the position.

 
Urain:

No position magik is equal to the magik of the opening order,

but the comment can, it is equal to the last order in the position.

This is good. Thank you.
 
Silent:

scaling by points per bar, if fractional numbers, blows the roof off the price scale (yen in the screenshot)

PS used to be fine, this has come with some of the latest updates.

Thanks for the post. Will fix it.
 
TheXpert:

Will I still see my zigzag published in the English part of the kodobase?

3 weeks is already a hammering.

There are several factors at play here:

  1. Why didn't you submit your code for review? Moderators don't look at drafts.
  2. Why did you make the English version of the indicator as a separate publication? We do all translations ourselves. That variant of yours in the English part of the Code base was found by accident.
  3. The picture in the draft is bad. It's not the first time you've submitted a code base. And besides, there are always recommendations on how to prepare an example in Code Base in a new publication template. But people here are more of a writer than a reader.

The translation of the Perfect ZigZag indicator will be done and published.