Useful features from KimIV - page 70

 
WroC писал(а) >>
Igor, could you please advise how to remove the riddle extrema with your function GetExtremumZZPrice from any timeframe, not only the one the EA is attached to?

To do this, pass in the second parameter(tf) the timeframe you want. For example, for an M30 timeframe the function call would look like this:

double z=GetExtremumZZPrice(NULL, 30, 1);

For M5:

double z=GetExtremumZZPrice(NULL, 5, 1);
 

KimIV


Right. I missed it, it was in the description...)

 

I'm not very good with arrays...

*

Igor!

Do you have a function that will return high (or low) on a sample like this:

datetime.start <-> datetime.finish.

As ds use for example DateOfMonday

and df current TimeCurrent() ...

*

For example from 2009.01.12 00:00 to 2009.01.13 15:30

***

We would need another function to it which would:

function(selectHigh());

return the date and time of the high

(or low)

 

By the way...

Don't you clarify the great mission of this expression:

datetime dt=StrToTime(TimeToStr(TimeCurrent(), TIME_DATE))

which: translate dt to string then reduce string to dt...

Fact! if shortened to datetime dt=TimeCurrent();

Monday begins... (no, no, not Saturday! :))) at 13:16 instead of 00:00

 

Query


Registry access ?

RegOpenKeyEx ?


#define HKEY_LOCAL_MACHINE 0

#import "Advapi32.dll"
int RegOpenKeyExy(int,string,int,int,int);


int regkey1;

int init()
  {
Print( RegOpenKeyEx( HKEY_LOCAL_MACHINE,"HKEY_CURRENT_USER\S oftware\M etaQuotes Software\M etaTrader 4\S ettings","Language",1, regkey1));
}
 
kombat >> :

Don't clarify the great mission of this expression:

datetime dt=StrToTime(TimeToStr(TimeCurrent(), TIME_DATE));

TimeToStr(TimeCurrent(), TIME_DATE) discards the time component of the date.

That is, if it was "2009.01.16 08:25:31", it will remain "2009.01.16".

 
KimIV hello please advise what is this error slow_opens activated, open canceled!
 
Synax >> :

I tried it but I need to close positions without paying attention to total gain or loss. At opening of 14 different pairs one go in a loss we close them, those with plus we keep and do refill.

And then there is this product https://forum.mql4.com/ru/11287/page14#76108

>>And for the refill you can try to redo https://forum.mql4.com/ru/11287/page13#75008

 
Igor, you have a search for a zigzag by its number and you have a search for the last fractal (lower and upper). But there is no fractal search by number?
 
khorosh писал(а) >>
Igor, you have a search for a zigzag by its number and you have a search for the last fractal(bottom and top). But there is no fractal search by number?

Yes, there isn't... Because I couldn't decide how to number such fractals: