do anyone here have source code for spread filter?
if ((Ask - Bid) / Point >= ThresholdValue)
//Your code here...
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 a lot omelette, its works
ExpertsDllConfirm in start.ini seems not to work
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?
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:
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.
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));
Returning the # of orders on a certain chart
How do you
Return the # of orders on a certain chart?