MQL4 Learning - page 32

MANSTIR
300
MANSTIR  

do anyone here have source code for spread filter?

omelette
784
omelette  
MANSTIR:
do anyone here have source code for spread filter?

if ((Ask - Bid) / Point >= ThresholdValue)

{

//Your code here...

}

yaniv_av
108
yaniv_av  

MQL question

Hi all,

How can I get the higher/lower price for a symbol between 2 specific times?

Example: I want to get the EURUSD higher price between the 1.1.2008 00:00 until the 1.2.2008 00:00.

How can I do that ?

Thanks !

MANSTIR
300
MANSTIR  
omelette:
if ((Ask - Bid) / Point >= ThresholdValue)

{

//Your code here...

}

thanks a lot omelette, its works

fxtrader625
374
fxtrader625  

ExpertsDllConfirm in start.ini seems not to work

Hi,

The ExpertsDllConfirm in start.ini seems not to work:

ExpertsDllConfirm=false doesn't make this flag reset at start up. See attached options dialog window. Can anyone else confirm this is a bug for MT4? Is there a workaround for this?

Thanks,

Jeff

Files:
bugmt4.jpg 34 kb
Linuxser
5921
Linuxser  
fxtrader625:
Hi,

The ExpertsDllConfirm in start.ini seems not to work:

ExpertsDllConfirm=false doesn't make this flag reset at start up. See attached options dialog window. Can anyone else confirm this is a bug for MT4? Is there a workaround for this?

Thanks,

Jeff

Hi

maybe not a bug, check if don't have some files set RO. By only click out the option should be enough

Also, there is no start.ini file.

fxtrader625
374
fxtrader625  
Linuxser:
Hi

maybe not a bug, check if don't have some files set RO. By only click out the option should be enough

Also, there is no start.ini file.

Of course, the MT4 can be started with start.ini like this command:

terminal config\start.ini

This file contains a list of settings to login an account, to select chart, to switch options, etc... See MT4 manual for more info about this (Tools - Configuration at startup). It's only that ExpertsDllConfirm=false seems not to work...

Linuxser
5921
Linuxser  
fxtrader625:
Of course, the MT4 can be started with start.ini like this command:

terminal config\start.ini

This file contains a list of settings to login an account, to select chart, to switch options, etc... See MT4 manual for more info about this (Tools - Configuration at startup). It's only that ExpertsDllConfirm=false seems not to work...

Sorry, you're right.

Also EnableDDE and EnableNews does not work.

Michel
476
Michel  
yaniv_av:
Hi all,

How can I get the higher/lower price for a symbol between 2 specific times?

Example: I want to get the EURUSD higher price between the 1.1.2008 00:00 until the 1.2.2008 00:00.

How can I do that ?

Thanks !

Something like this:

string date1 = "2008.01.01 00:00";

string date2 = "2008.01.02 00:00";

string sym = "YourSymbol";

datetime t1 = StrToTime(date1);

datetime t2 = StrToTime(date2);

int b1 = iBarShift(sym, PERIOD_M1, t1, false);

int b2 = iBarShift(sym PERIOD_M1, t2, false);

//Assuming that date1 < date2

double HH = iHigh(sym, PERIOD_M1, iHighest(sym, PERIOD_M1, MODE_HIGH, b1-b2+1, b2));

double LL = iLow(sym, PERIOD_M1, iLowest(sym, PERIOD_M1, MODE_LOW, b1-b2+1, b2));

Dan7974
684
Dan7974  

Returning the # of orders on a certain chart

How do you

Return the # of orders on a certain chart?