shickman
-
Posts
320 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
Articles
Posts posted by shickman
-
-
can someone convert mq4 to mq5 here?
thank you
-
Hello coders
I have 2 indicators that I really rely on and need them so much
not a very complicated one at all but very important to me
I ask you to PLEASE PLEASE help me and convert them to mql5
I can't thank you enough for this
thank you
here is the first one:
/*
Generated by EX4-TO-MQ4 decompiler V4.0.225.1g []
Website: http://purebeam.biz
E-mail : [email protected]
*/
#property copyright "Copyright © 2008, 2hrfx.com"
#property link "http://www.2hrfx.com"
#property indicator_chart_window
#property indicator_buffers 3
#property indicator_color1 Red
#property indicator_color2 White
#property indicator_color3 Magenta
#property indicator_width2 4
#property indicator_width3 4
extern int Price = 0;
extern int Length = 20;
extern int Displace = 0;
extern int Filter = 0;
extern int Color = 1;
extern int ColorBarBack = 1;
extern double Deviation = 0.0;
double g_ibuf_108[];
double g_ibuf_112[];
double g_ibuf_116[];
double g_ibuf_120[];
double gda_124[];
int g_index_128;
int gi_132;
int gi_136;
int gi_140 = 4;
double gd_144;
double gd_152;
double gd_160;
double gd_168;
double gd_176;
double gd_184;
double gd_192 = 3.1415926535;
int init() {
IndicatorBuffers(4);
SetIndexStyle(0, DRAW_LINE);
SetIndexBuffer(0, g_ibuf_108);
SetIndexStyle(1, DRAW_LINE);
SetIndexBuffer(1, g_ibuf_112);
SetIndexStyle(2, DRAW_LINE);
SetIndexBuffer(2, g_ibuf_116);
SetIndexBuffer(3, g_ibuf_120);
IndicatorDigits(MarketInfo(Symbol(), MODE_DIGITS));
string ls_0 = "SaneFX(" + Length + ")";
IndicatorShortName(ls_0);
SetIndexLabel(0, "SaneFX");
SetIndexLabel(1, "Up");
SetIndexLabel(2, "Dn");
SetIndexShift(0, Displace);
SetIndexShift(1, Displace);
SetIndexShift(2, Displace);
SetIndexEmptyValue(0, EMPTY_VALUE);
SetIndexEmptyValue(1, EMPTY_VALUE);
SetIndexEmptyValue(2, EMPTY_VALUE);
SetIndexDrawBegin(0, Length * gi_140 + Length);
SetIndexDrawBegin(1, Length * gi_140 + Length);
SetIndexDrawBegin(2, Length * gi_140 + Length);
gd_144 = 3.0 * gd_192;
gi_132 = Length - 1;
gi_136 = Length * gi_140 + gi_132;
ArrayResize(gda_124, gi_136);
gd_176 = 0;
for (g_index_128 = 0; g_index_128 < gi_136 - 1; g_index_128++) {
if (g_index_128 <= gi_132 - 1) gd_160 = 1.0 * g_index_128 / (gi_132 - 1);
else gd_160 = (g_index_128 - gi_132 + 1) * (2.0 * gi_140 - 1.0) / (gi_140 * Length - 1.0) + 1.0;
gd_152 = MathCos(gd_192 * gd_160);
gd_184 = 1.0 / (gd_144 * gd_160 + 1.0);
if (gd_160 <= 0.5) gd_184 = 1;
gda_124[g_index_128] = gd_184 * gd_152;
gd_176 += gda_124[g_index_128];
}
return (0);
}
int start() {
int li_12;
double ld_16;
int l_ind_counted_8 = IndicatorCounted();
if (l_ind_counted_8 > 0) li_12 = Bars - l_ind_counted_8;
if (l_ind_counted_8 < 0) return (0);
if (l_ind_counted_8 == 0) li_12 = Bars - gi_136 - 1;
if (l_ind_counted_8 < 1) {
for (int l_index_0 = 1; l_index_0 < Length * gi_140 + Length; l_index_0++) {
g_ibuf_108[bars - l_index_0] = 0;
g_ibuf_112[bars - l_index_0] = 0;
g_ibuf_116[bars - l_index_0] = 0;
}
}
for (int li_4 = li_12; li_4 >= 0; li_4--) {
gd_168 = 0;
for (l_index_0 = 0; l_index_0 <= gi_136 - 1; l_index_0++) {
if (Price == 0) ld_16 = Close[li_4 + l_index_0];
else {
if (Price == 1) ld_16 = Open[li_4 + l_index_0];
else {
if (Price == 2) ld_16 = High[li_4 + l_index_0];
else {
if (Price == 3) ld_16 = Low[li_4 + l_index_0];
else {
if (Price == 4) ld_16 = (High[li_4 + l_index_0] + (Low[li_4 + l_index_0])) / 2.0;
else {
if (Price == 5) ld_16 = (High[li_4 + l_index_0] + (Low[li_4 + l_index_0]) + (Close[li_4 + l_index_0])) / 3.0;
else
if (Price == 6) ld_16 = (High[li_4 + l_index_0] + (Low[li_4 + l_index_0]) + 2.0 * (Close[li_4 + l_index_0])) / 4.0;
}
}
}
}
}
gd_168 += gda_124[l_index_0] * ld_16;
}
if (gd_176 > 0.0) g_ibuf_108[li_4] = (Deviation / 100.0 + 1.0) * gd_168 / gd_176;
if (Filter > 0)
if (MathAbs(g_ibuf_108[li_4] - (g_ibuf_108[li_4 + 1])) < Filter * Point) g_ibuf_108[li_4] = g_ibuf_108[li_4 + 1];
if (Color > 0) {
g_ibuf_120[li_4] = g_ibuf_120[li_4 + 1];
if (g_ibuf_108[li_4] - (g_ibuf_108[li_4 + 1]) > Filter * Point) g_ibuf_120[li_4] = 1;
if (g_ibuf_108[li_4 + 1] - g_ibuf_108[li_4] > Filter * Point) g_ibuf_120[li_4] = -1;
if (g_ibuf_120[li_4] > 0.0) {
g_ibuf_112[li_4] = g_ibuf_108[li_4];
if (g_ibuf_120[li_4 + ColorBarBack] < 0.0) g_ibuf_112[li_4 + ColorBarBack] = g_ibuf_108[li_4 + ColorBarBack];
g_ibuf_116[li_4] = EMPTY_VALUE;
}
if (g_ibuf_120[li_4] < 0.0) {
g_ibuf_116[li_4] = g_ibuf_108[li_4];
if (g_ibuf_120[li_4 + ColorBarBack] > 0.0) g_ibuf_116[li_4 + ColorBarBack] = g_ibuf_108[li_4 + ColorBarBack];
g_ibuf_112[li_4] = EMPTY_VALUE;
}
}
}
return (0);
}
and this is the second one needed:
#property copyright "eevviill"
#property link "http://alievtm.blogspot.com"
#property version "3.0"
#property strict
#property indicator_chart_window
#property indicator_buffers 8
#property indicator_color1 clrRed
#property indicator_color2 clrDeepSkyBlue
#property indicator_color3 clrRed
#property indicator_color4 clrDeepSkyBlue
#property indicator_width1 4
#property indicator_width2 4
#property indicator_width3 1
#property indicator_width4 1
//yell
#property indicator_color5 clrYellow
#property indicator_color6 clrYellow
#property indicator_color7 clrYellow
#property indicator_color8 clrYellow
#property indicator_width5 4
#property indicator_width6 4
#property indicator_width7 1
#property indicator_width8 1
extern int Number_of_candles = 3;
extern int Candle_shift = 5;
extern bool use_revers = false;
extern ENUM_TIMEFRAMES Time_frame1 = 1440;
extern ENUM_TIMEFRAMES Time_frame2 = 240;
extern ENUM_TIMEFRAMES Time_frame3 = 60;
extern ENUM_TIMEFRAMES Time_frame4 = 1440;
extern ENUM_TIMEFRAMES Time_frame5 = 1440;
extern ENUM_TIMEFRAMES Time_frame6 = 1440;
extern ENUM_TIMEFRAMES Time_frame7 = 1440;
extern ENUM_TIMEFRAMES Time_frame8 = 1440;
extern ENUM_TIMEFRAMES Time_frame9 = 1440;
double body_up[];
double body_down[];
double shadow_up[];
double shadow_down[];
//yell
double yell_body_up[];
double yell_body_down[];
double yell_shadow_up[];
double yell_shadow_down[];
datetime prevtime;
ENUM_TIMEFRAMES Time_frames[9];
/////////////////////////////////////////////////////////////////
int OnInit()
{
if(Number_of_candles>9) Number_of_candles=9;
Time_frames[0]=Time_frame1;
Time_frames[1]=Time_frame2;
Time_frames[2]=Time_frame3;
Time_frames[3]=Time_frame4;
Time_frames[4]=Time_frame5;
Time_frames[5]=Time_frame6;
Time_frames[6]=Time_frame7;
Time_frames[7]=Time_frame8;
Time_frames[8]=Time_frame9;
SetIndexBuffer(0,body_up);
SetIndexStyle(0,DRAW_HISTOGRAM);
SetIndexShift(0,Candle_shift+Number_of_candles);
SetIndexBuffer(1,body_down);
SetIndexStyle(1,DRAW_HISTOGRAM);
SetIndexShift(1,Candle_shift+Number_of_candles);
SetIndexBuffer(2,shadow_up);
SetIndexStyle(2,DRAW_HISTOGRAM);
SetIndexShift(2,Candle_shift+Number_of_candles);
SetIndexBuffer(3,shadow_down);
SetIndexStyle(3,DRAW_HISTOGRAM);
SetIndexShift(3,Candle_shift+Number_of_candles);
//yell
SetIndexBuffer(4,yell_body_up);
SetIndexStyle(4,DRAW_HISTOGRAM);
SetIndexShift(4,Candle_shift+Number_of_candles);
SetIndexBuffer(5,yell_body_down);
SetIndexStyle(5,DRAW_HISTOGRAM);
SetIndexShift(5,Candle_shift+Number_of_candles);
SetIndexBuffer(6,yell_shadow_up);
SetIndexStyle(6,DRAW_HISTOGRAM);
SetIndexShift(6,Candle_shift+Number_of_candles);
SetIndexBuffer(7,yell_shadow_down);
SetIndexStyle(7,DRAW_HISTOGRAM);
SetIndexShift(7,Candle_shift+Number_of_candles);
return(INIT_SUCCEEDED);
}
//////////////////////////////////////////////////////////////////
int OnCalculate(const int rates_total,const int prev_calculated,const datetime &time[],const double &open[],const double &high[],
const double &low[],const double &close[],const long &tick_volume[],const long &volume[],const int &spread[])
{
//new bar
if (Time[0] != prevtime)
{
ArrayInitialize(body_up,EMPTY_VALUE);
ArrayInitialize(body_down,EMPTY_VALUE);
ArrayInitialize(shadow_up,EMPTY_VALUE);
ArrayInitialize(shadow_down,EMPTY_VALUE);
ArrayInitialize(yell_body_up,EMPTY_VALUE);
ArrayInitialize(yell_body_down,EMPTY_VALUE);
ArrayInitialize(yell_shadow_up,EMPTY_VALUE);
ArrayInitialize(yell_shadow_down,EMPTY_VALUE);
prevtime = Time[0];
}
int i2=0;
for(int i=0;i<Number_of_candles;i++)
{
i2=i;
if(use_revers) i2=Number_of_candles-i;
double open_=iOpen(Symbol(),Time_frames,0);
double close_=iClose(Symbol(),Time_frames,0);
//main
if(close_!=open_)
{
yell_body_up[i2]=EMPTY_VALUE;
yell_body_down[i2]=EMPTY_VALUE;
yell_shadow_up[i2]=EMPTY_VALUE;
yell_shadow_down[i2]=EMPTY_VALUE;
body_up[i2]=open_;
body_down[i2]=close_;
if(close_<open_)
{
shadow_up[i2]=iHigh(Symbol(),Time_frames,0);
shadow_down[i2]=iLow(Symbol(),Time_frames,0);
}
if(close_>open_)
{
shadow_up[i2]=iLow(Symbol(),Time_frames,0);
shadow_down[i2]=iHigh(Symbol(),Time_frames,0);
}
}
//yell
if(close_==open_)
{
body_up[i2]=EMPTY_VALUE;
body_down[i2]=EMPTY_VALUE;
shadow_up[i2]=EMPTY_VALUE;
shadow_down[i2]=EMPTY_VALUE;
yell_body_up[i2]=open_;
yell_body_down[i2]=close_;
yell_shadow_up[i2]=iHigh(Symbol(),Time_frames,0);
yell_shadow_down[i2]=iLow(Symbol(),Time_frames,0);
}
}
return(rates_total);
}
that's it, thank you for this
-
it just Trendline edu it not complet edu file!!!
ya I can see that
it's more of a tool than an indicator
-
I only see one indicator added
is that all it has?
-
-
this is a simple sar indicator applied with another sar at a bigger value
I can't believe people are paying so much money for indicator that are built in every platform ha!
odd
- Flash_Trader and ⭐ nadjib
- 2
-
MarketAnalyzer is not protected so you can import it as is
don't really know how to use this Market Analyzer but I see that there's no protection there
enjoy
-
- birdshoof, RICHI, Flash_Trader and 11 others
- 14
-
many other uploads were done since that are still alive
-
my list of ncat Indi
ncatRSD
ncatRollingerMACD
ncatSpreadScalper
ncatVolatilityBreackout
ncatVolaitlitySuperTrend
Nothing very special as I still trying to find the right charttype for the difference instruments, tick,range,time etc...
could you please put them all in a zip file and share them on forexupload as it's not one that deletes after a day :)
thank you paulhaus
-
I have no idea, this work was done by admis
I wish I knew myself how to reverse back to cs file with no errors
anyhow what other indies do you have of them?
do you have the one for the workspace?
-
ohhh I see you have few ncat installed already, that explains why only you won't see anything ploting
which one do you have of them?
-
OK look
before anything shut down Ninjatrader
make sure you don't have any ncat. in these folders:
Custom
Indicator
MarketAnalyzer
then just import this one and hopefully, this should work cause this is no dll file but cs file
there's no reason in the world why this time it shouldn't work or else your computer is spooked :)
-
but I've uploaded a working version what's all the fuss there?
-
yep, did that and got lot's of errors
didn't know how to fix them :)
thanx man
-
As I see, license begin to work after ShowStartupMessage = true, so I change it to false at the begining and license not performed (as I understand during 5-10 min, when looking into code. It may be wrong, but it work in aplication on that dll). To educating I mostly use dnSpy, coz find it more usefull. You can chose interested line or area, right click and change IL instructions more simple way, than via another programm. It all IMHO :)
WOW now I see what you mean, dnSpy rocks, nothing to compare with the others
and I can change the code within as usual, just amazing
tell me, do you know by any chance how to reverse the dll back to cs???
-
search the file was educ dont need de make other post
this has nothing to do with educating the indie, it has to do with learning how it's done :)
-
I am delete "VendorLicensing" from Initialize, after check how work bool variable "ShowStartupMessages",
and change "value" to "false" on "set" line. That all I do on that dll.
thank you for your reply
I understand the first part as for the licensing
but what does the ShowStartupMessage got to do with the license?
and how in the world do you change it to false there's no reference to false in reflexil
thank you
-
Just educate as I can, so it show profiles and worked buttons on up side of the chart.
ohhh wow Kit
how did you do that???
there were so many lines containing "license"
which one did you deal with?
I'd appreciate a reply so I can learn more
-
here you go:
https://www.forexupload.com/66b
BUT if you have one installed already go to:
File/Utility/Remove NinjaSccript Assembly and remove the indicator
then close Ninjatrader and check that the dll file is deleted from Custom folder cause sometimes it stays there as I noticed
copy the patched file to Custom folder and voilà :)
- paulhaus, ⭐ ESVepara and OsmanIM
- 3
-
it would be so much easier to educate if I could ONLY convert the dll to cs file, then everything is just DAMNNN easy
-
OK guys lets see who can educate this one
it's a bit too complicated for me, so far I can educate only simple one, not this one
-
and been testing it against other super trend indicators this one is not who knows what
TS_Supertrend is already 10 times better than this!!! far better
-
Hello paulhaus,
Well I managed to get hold of a copy of the uneducated Ncat Volatility Super Trend indicator from Eric Nathan before he left for his personal trainer obligations in Vancouver.
I have uploaded it to Sendspace for you.I read you can educate NT7 indicators too. I hope you will be able to educate this indicator too for us at Indo.Many thanks.
Download Page Link
I don't get it, it works on my computer, I get to see the indicator with all it's features, though I don't know what bolinger macd is, it's not included in this indicator
I've educated this one too and it looks the same
Put Your UNEDUCATED Decompiled MQ4 File Here - I Will Give It A Good EDUCATION 4 You!
in MetaTrader Indicators
Posted
I actually have a couple of indicators to convert