Who double posted? This is a seperate file.
Don't double post
Don't install in \program files* on Vista/Win7
Hello
8/1/2012
I have another file I need compiled, If someone could help me that would be great.
As mentioned, I am not able to compile on win7 and have tried to correct this but have not been able to do so.
Here is the file that I need put into EX4 format so I can use it.
https://www.mql5.com/en/code/9857 I have also copied and pasted it directly below.
Thank You so much.
//+------------------------------------------------------------------+
//| Level Sensor.mq4 |
//| Copyright © 2005, Sfen. |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2005, Sfen"
#property indicator_chart_window
// input parameters
extern int MAX_HISTORY = 500;
extern int STEP = 1;
//----
string OBJECT_PREFIX = "LEVELS";
int ObjectId = 0;
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
int init()
{
return(0);
}
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
double CSH(int shift)
{
return (MathMax(Open[shift], Close[shift]));
}
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
double CSL(int shift)
{
return (MathMin(Open[shift],Close[shift]));
}
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
string IntToStr(int X)
{
return (DoubleToStr(X, 0));
}
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
string ObGetUniqueName(string Prefix)
{
ObjectId++;
return (Prefix+" "+IntToStr(ObjectId));
}
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
void ObDeleteObjectsByPrefix(string Prefix)
{
int L = StringLen(Prefix);
int i = 0;
while(i < ObjectsTotal())
{
string ObjName = ObjectName(i);
if(StringSubstr(ObjName, 0, L) != Prefix)
{
i++;
continue;
}
ObjectDelete(ObjName);
}
}
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
int deinit()
{
ObDeleteObjectsByPrefix(OBJECT_PREFIX);
return(0);
}
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
int start()
{
string S;
ObDeleteObjectsByPrefix(OBJECT_PREFIX);
double HH = 0;
double LL = 1000000;
int History = MathMin(Bars,MAX_HISTORY);
int i, j, k;
for(i = 1; i < History; i++)
{
HH = MathMax(HH, CSH(i));
LL = MathMin(LL, CSL(i));
}
int NumberOfPoints = (HH - LL) / (1.0*Point*STEP) + 1;
int Count[];
ArrayResize(Count, NumberOfPoints);
for(i = 0; i < NumberOfPoints; i++)
Count[i] = 0;
for(i = 1; i < History; i++)
{
double C = CSL(i);
while(C < CSH(i))
{
int Index = (C-LL) / (1.0*Point*STEP);
Count[Index]++;
C += 1.0*Point*STEP;
}
}
for(i = 0; i < NumberOfPoints; i++)
{
double StartX = Time[5];
double StartY = LL + 1.0*Point*STEP*i;
double EndX = Time[5+Count[i]];
double EndY = StartY;
string ObjName = ObGetUniqueName(OBJECT_PREFIX);
ObjectDelete(ObjName);
ObjectCreate(ObjName, OBJ_TREND, 0, StartX, StartY, EndX, EndY);
ObjectSet(ObjName, OBJPROP_RAY, 0);
ObjectSet(ObjName, OBJPROP_COLOR, Red);
}
return(0);
}
//+------------------------------------------------------------------+
Hi wfws,
Build 419 and 432 inside ;)
I install my MT at C:\Program Files\Trading Platform\MetaTrader - Alpari UK (1)\ and I put your file at C:\Users\Public\Public Sent Away\MQL\Level_sensor_116\level_sensor_116.mq4
Try this : I open command prompt, and type this "C:\Program Files\Trading Platform\MetaTrader - Alpari UK (1)\metalang.exe" "C:\Users\Public\Public Sent Away\MQL\Level_sensor_116\level_sensor_116.mq4" and hit Enter with hammer, and see if this works with you or ... :(
:D
- Don't install in \program files* on Vista/Win7
- Put your source in terminal\Experts or terminal\Experts\indicators. And Compile
- " I am not able to compile on win7 and have tried to correct this but have not been able to do so." Don't tell us you can't. Tell us WHY, so you can FIX YOUR problem.
- And for the Nth time
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello
My metatrader editor does not work. I have tried everything suggested.
I can not compile files to get them into EX4 format.
I am hoping someone would please do it for me and load the EX4 file up here so I can have access to it.
I need the Market Profile for MetaTrader 4 and it can be found on this page.
http://www.earnforex.com/metatrader-indicators/MarketProfile
Thank you in advance.
Mark
WFWS