Quantcast
Channel: MQL5: MetaTrader 5 trading, automated systems and strategy testing forum
Viewing all 75046 articles
Browse latest View live

Condition based on iForce of previously closed candle

$
0
0
YES !!! Thanks a lot this did the trick :)

MQL5 Cloud Network launched

$
0
0
Did you use genetic algorithm? If yes, that might be a case. Sometimes I try do optimizations via my hardware only and there was a situation when some cores wait for others. If you don't like that try full (slow) optimization.

Traders Joking

Signal : Ask & Say Anything & Everything About MQL5 Trading Signal

$
0
0

Ops ,sorry you miss understood me.

I meant if you want to make millions out of 50k, there gonna be hellowa  jumps to make. Therefore you will be in same hole with 50k as you are say with 1k now.


As for returns I would be crazy happy If could get asset yielding 10% annually without any risk at all. even without leverage I could beat inflation. But with leverage it just got mental. ;)

On forex there is crazy leverage so I kinda need to get 100% annual return to feel safe.



btw: Sorry for being so harsh, I did wirte text only after finishing i noticed that you mentioned  that you are getting out of here. :D


Good luck with long therm investments!


strategy tester speed

mql5 cloud network

$
0
0

put it there

Add your relaxtrading where I did put CeleronS.


How to detect the source when a custom indicator is called?

$
0
0

Hi,

I found this trick while I was playing in mq5:

On your OnInit code of your indicator try this piece of code:

int OnInit()
{
   //Assume your indicator name is "SSK"
   if(ChartIndicatorGet(0,0,"SSK")>-1)
   {
      Alert("I'm placed by the user on the chart.");
   }
   else
   {
      Alert("I'm called by iCustom function with an EA.");
   }
....
   


payments for signal provider

$
0
0
blackx79:

Yes, true, this is new but that does not mean a profitable strategy should be available for a few bucks, I mean come on we are talking here about real money and unbelievable gains and at this moment I see absolutely no reason to be here, my performance is a"merely" 40% on a real account in about 4 months and is a stable and well designed strategy that by the end of the year would probably be above 200% gain and I could trade all by myself with a decent capital however I was searching for investors because I do not have the 50K needed to live out of trading alone and with a few thousands it can not be done unless i start the gambling mode all or nothing. The single real possibility I perceived is with some broker that offers this in a much more "serious" way, with real accounts only and another system of paying in terms of % of profits - the manager gets a % of profits that is, now that i think looks and sounds serious for anyone. You did not ask yourself why in the world would someone in his right mind believe that paying 100$/month can double his money in 6 months even if he has 100000$???? The concept is totally wrong, if i were an investor with a lot of capital available I would run when someone would tell me that for a fee of 20 bucks/month he will  double my 100K!!!! just do the math, lol; OK i am just pushing the amounts here but i think you get the point.

Truth is that most people look at this as gambling and expect 1000%/month and while it can be done with luck is actually equivalent with playing Russian roulette with your capital, that is why no serious investor would consider placing his capital here and because of that no real professional traders will either...just my 2 cents

Hopefully this will become a little bit more serious also since the idea is absolutely great, unfortunately coming a little to late as for years there are on the net such possibilities I`m sure we all know them, trouble is that one is counting pips like amateurs, another has no option for volume or no investors like this one. So I`m a bit confused and disappointed when I see that there's nobody around here taking this seriously, 100$ for 150% performance in 6 months? You people at MQL5 should really do something to get some real capital around here, I did not study very close his strategy as i said but there are not even comments on it...so the fact is that besides a few traders on demo accounts trying the ocean with their finger there's nobody around here yet

As for myself I am busy trading not testing anything and I was looking for investors, I will get back here every now and then to see whats the feeling however hard to believe I will share anything more than demo testing strategies risky as hell in which I would not put my own money, as real trader I need a % of profits for my work if I am to share real strategies and make money for investors. Wrong concept here that will attract a lot of amateurs.

I respect your position, but do not agree with your vision and I see mql5.com trading signals as a great service which is evolving with the providers competition for the best signals.

Note that the uncertainty of future decrease the signals price and for me there is no stable and well designed strategy with year returns exceeding 25%.

For instance, if you have a strategy with 200%/year, you don't need search for investors and 50K to transform it in miillions, since with just 1K in 10 years your equity would be near 6 millions !!!

Note also that subscribers are not required to choose only strategies with higher or top growth, but can select using various criteria and choose changing provider anytime, and I think this opens the opportunity and attracts all kind of investors with different profiles and expertises.

So, as a provider, the main challenge for me is that past performance not guarantees future performance, and this makes trading signals prices fall to a fair price, that will respect the laws of supply and demand, and that seems still unclear as I stated before. 

 


Moving Average With Direction Color Change

$
0
0
You need someting like xpMA? I'm working in its mq5 version.

what is a realistic goal of pips/month

Say & Ask anything/everything

$
0
0
CeleronS:

Not gonna work, PR rating so low, they won't even register as actual agent. :D

Even intel atoms are too slow to get a job.


Al right, happy hunting CeleronS.

But i were you, I'll wait till there's plenty 3Ghz AMD/Intel in market before buying 

Coders' Guru MQL5 lessons.

$
0
0
I published an indicator in the code base yesterday.
What do you think about starting by step-by-step studying the code?

ParameterSetRange

$
0
0

That part of your code looks exactly the same as mine. I also placed the ParameterSetRange() function inside the OnTesterInit() function ...

I still can't untick the variable box in the optimiser yet, because if I do that it gives me an error in the Journal tab saying that I need to select at least one input to optimize, so I clearly haven't got it working properly yet.

When you say that the inputs are defined as "normal", do you mean just like "double wo0;" or are you defining them as inputs like "input double wo0;" or as externs like "extern double wo0;" ? (I get what you mean by the "global area", before any functions).

Where are you placing the OnTesterInit() function in the code ? (Although I suppose this doesn't really matter, as long as it is outside any of the other functions).

This is the code I am using:

input double w_H1_1_In_1;

void OnTesterInit()
{
ParameterSetRange("w_H1_1_In_1", true, 0.0, -1.0, 0.1, 1.0);
}

// then OnInit() and the rest of the code ...

When I set the inputs to default values (by right clicking in the Inputs tab of the Strategy Tester and selecting Defaults), and leave all the variable boxes unticked for optimization in the Inputs tab then I get the following error in the Journals tab:

2013.02.12 00:01:18    Tester    no optimized parameter selected, please check input(s) to be optimized and set carefully start, step and stop values


How to detect the source when a custom indicator is called?

$
0
0
But this input is true by default!
Did you try my approach?

How to use ParameterSetRange?

$
0
0
I still can't get it working. I replied and posted my code in the other thread.

MQL5 Cloud Errors!!

$
0
0

Hi there,

I experienced weird errors while using the cloud with some of my EAs... I first thought my EAs included errors so I tested the ExpertMACD, which is an example EA provided with MT5 and hopefully bugfree ;-)... And... I still get similar errors. Most of them are:

pass 21958 tested with error "critical runtime error in OnInit function (error 517, module 0, file 65535, line 29, col 49152)" in 47 ms (PR 79)

pass 15941 tested with error "critical runtime error in global initialization function (error 520, module 0, file 65535, line 3, col 0)" in 63 ms (PR 70)

pass 6246 tested with error "history processing error" in 4196 ms (PR 90)

But sometimes I get other errors involving other functions (eg. ontick function)

So I m wondering why do I get such errors, even from bugfree EAs and if it affects the optimization process...  I guess the pass affected by such errors completely fails (no result), but is another attempt with same tested parameters is done ?

Thanks in advance !






Best method learning MQL5

$
0
0
My friend who voted for "another approach". Could you tell me what is it?

Indicators: TrendLine Touch Alert

Moving Average With Direction Color Change

$
0
0
phi.nuts:

Ah yes, I didn't check that yesterday :(

Will be back later. 

Find this code

//--- indicator buffers mapping
   SetIndexBuffer(0,ColorLineBuffer,INDICATOR_DATA);
   SetIndexBuffer(1,ColorBuffer,INDICATOR_COLOR_INDEX);
//--- get MA handle
   MA_handle=iMA(Symbol(),0,10,0,MODE_EMA,PRICE_CLOSE);
//---

Replace with this

//--- indicator buffers mapping
   SetIndexBuffer(0,ColorLineBuffer,INDICATOR_DATA);
   SetIndexBuffer(1,ColorBuffer,INDICATOR_COLOR_INDEX);
   PlotIndexSetInteger(0, PLOT_SHIFT, MA_Shift);
//--- get MA handle
   MA_handle=iMA(Symbol(),_Period,MA_Period, 0,MA_Method,MA_Price);

 And please reply back for the err.

Sorry about that. 

technical indicator values not matching chart

$
0
0
jshumaker:
I moved the code to the OnInit section but I only get 1 row written.  That being the first candle of the time period.  So I then tried moving that to the OnDeinit and that also gave me only 1 row but the last candle of the time period.  I would think that OnInit would not work because all of the data has not been loaded, correct?  At least trying OnDeinit would be after all data is loaded.  Or maybe I am misunderstanding how the base functions work

How many row you'd like to have ?

Your code below only write one row

int hfile;
   hfile=FileOpen("D1.csv",FILE_READ|FILE_WRITE|FILE_CSV|FILE_COMMON,'|');
   if (hfile!=INVALID_HANDLE)
      {FileSeek(hfile,0,SEEK_END);
      FileWrite(hfile,time[1],dema5[1],dema11[1],dema21[1],dema55[1],dema200[1],bbLow[1],bbHigh[1],macd[1]*100000,signal[1]*100000,open

                 [1],close[1],high[1],low[1]);
      FileClose(hfile);}}

 

Viewing all 75046 articles
Browse latest View live