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

MT4 on FCM Help me please I have spent hours trying to get this thing to load indicators and EA's


Building Array if Indicator Values based that contains previous 8 values

$
0
0
Having trouble going about building an array for an Expert Advisor. My goal is to build an array program holds the values of the designated indicators which will be diffreniated by time ie candle sticks.  Does that make any sense?

Show off your picture-sreen terminal!

$
0
0
I do not have anywhere near the screen size to even show that at normal size, damn laptop.

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

$
0
0
Pavel Valenta:

Hi LivenFX,

no I didnt, because for some unknown reason the subscription had been started even though the maximal volume were still different. So I didnt cancel the subscription, and later the signal(AOS) crashed.


Liven, have you ever tried to carry out return the money from signal provider? Have you ever been succeeded?

 

Pavel 

I am not sure if there is even a before or after on the signal subscriptions past the first time, but I do know (from reading on other posts from mods mostly) that a refund on a partially used subscription is not possible, even if you stop using it part way through the subscription time frame.

As it says on https://www.mql5.com/en/signals/rules

Section V. Payments

7.  Paid subscription canceled by Subscriber is not refunded.

Admiral Markets Broker

Discussion of article "Who Is Who in MQL5.community?"

$
0
0
Dua Yong Rew:
and I don't see my name
How long have you been a part of the MQL5 community (as in, what date did you start)?  Because judging by the championships, the last one they posted about was back in 2012.  Nothing on there if they had one in '13, '14, and if they are having one now in '15.

Why are MT5 ENUM_TIMEFRAMES fubar?

$
0
0
data46:

Perhaps there is; what if I wanted to check timestamps:

To state there's 'no point' seems like you're not embracing coding creativity.

I say this because using CopyRates or any derivative of that function such as CopyClose, CopyTime, etc absolutely hammers CPU. The fastest way to access data is using the MqlTick structure.

I presume CopyRates does a lot of processing in the background, such as checking raw files if the data exists and then polling the server to retrieve missing data. Caching tick data seems a way around this bottleneck, but there's not enough info in the MqlTick structure, as it's a pure sequential stream of data that has no concept of open, closes et al.

Hence my question was to somehow compare timestamps using MqlTick.

What makes more coding sense?  Using the constant name in your coding, or trying to use the values themselves?  I do not call doing that "coding creativity", I call that making the job harder than it has to be.  In programming (at least the courses I have taken) you use the constant name specifically because it is just that, a constant.  If you need to calculate values from that, it is easier to use the constant name in your equations.  I agree that the constant values need to be correct for what they are trying to figure out, but that is how MQL is working currently, apparently.

NEED EA to be programmed Its a very simple strategy

$
0
0
Brian Cramer:
its a simple strategy i tried to build a EA but failed. it wont take long to program this simple bot if you could DM me here or on skype we can discuss the strategy

Dear Brian,

 

I want to work on your project.

Please, send me an email to: pablo.barbero.m@gmail.com

Thank you very much.

 

 

Kind Regards,

 

Pablo Barbero. 


How to execute reverse.mq4?

$
0
0
Chi Yan Leung:

I note there is a script call reverse.mq4 can be download at https://www.mql5.com/en/code/12660

 I downloaded it. How can I use it for trading?

I should put it into MQL4/script directory? Or put it into Expert directory?

How to execute it?

Thanks a lot for your help. 

I think you should put into script directory. 

Need help with this piece of code, should be simple.

$
0
0

Hello,

 

Thank you in advance for looking this up.

Im looking to get the the StdDev cross of the upper bollinger band on my ea like the picture bellow:

 

 

 

So far i wrote this code but i cant get the upper bollinger band(always return 0) value to compare the variables... Could anyone point me in the right direction?? Thank You 

 

extern int StdDevPeriod = 14;
extern int StdDevBolPeriod = 21;
extern double StdDevBolDeviation = 1.5;

double StdDevBuffer[],BandsStdDevBuffer[];

int init()
{  
   int StdDevCount = MathMax(StdDevPeriod,StdDevBolPeriod);
   ArrayResize(StdDevBuffer,StdDevCount*2);
   ArraySetAsSeries(StdDevBuffer,true);   
   ArrayResize(BandsStdDevBuffer,StdDevCount*2);
   ArraySetAsSeries(BandsStdDevBuffer,true);   
}

int StdDevSignal()
  {

   int StdDevCount = MathMax(StdDevPeriod,StdDevBolPeriod);   

   for(i=0; i<StdDevCount*2; i++)
     {
      StdDevBuffer[i]=iStdDev(NULL,0,StdDevPeriod,0,MODE_LWMA,PRICE_MEDIAN,i);
     }

   for(i=0; i<StdDevCount*2; i++)
     {
      BandsStdDevBuffer[i]=iBandsOnArray(StdDevBuffer,0,StdDevBolPeriod,StdDevBolDeviation,0,MODE_UPPER,i);             
      Print("StdDevBuffer for ",i," = " , StdDevBuffer[i]);
      Print("BandsStdDevBuffer for ",i," = " , BandsStdDevBuffer[i]);
     }

   Print("StdDevBuffer[0]  = ",StdDevBuffer[0] , "|| BandsStdDevBuffer[0] = " , BandsStdDevBuffer[0]);
   
   if(StdDevBuffer[0] > BandsStdDevBuffer[0]) return(1);
   else return(0);
  }

 

I also have this results from the terminal when running the code... 

 

 2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: BandsStdDevBuffer for 17 = 0

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: StdDevBuffer for 17 = 0

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: BandsStdDevBuffer for 16 = 0

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: StdDevBuffer for 16 = 0

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: BandsStdDevBuffer for 15 = 0

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: StdDevBuffer for 15 = 0

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: BandsStdDevBuffer for 14 = 0

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: StdDevBuffer for 14 = 0

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: BandsStdDevBuffer for 13 = 0

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: StdDevBuffer for 13 = 0.001

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: BandsStdDevBuffer for 12 = 0

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: StdDevBuffer for 12 = 0.001

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: BandsStdDevBuffer for 11 = 0

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: StdDevBuffer for 11 = 0.0011

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: BandsStdDevBuffer for 10 = 0

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: StdDevBuffer for 10 = 0.0011

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: BandsStdDevBuffer for 9 = 0

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: StdDevBuffer for 9 = 0.0011

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: BandsStdDevBuffer for 8 = 0

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: StdDevBuffer for 8 = 0.001

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: BandsStdDevBuffer for 7 = 0

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: StdDevBuffer for 7 = 0.0009

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: BandsStdDevBuffer for 6 = 0

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: StdDevBuffer for 6 = 0.0008

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: BandsStdDevBuffer for 5 = 0

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: StdDevBuffer for 5 = 0.0007

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: BandsStdDevBuffer for 4 = 0

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: StdDevBuffer for 4 = 0.0006

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: BandsStdDevBuffer for 3 = 0

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: StdDevBuffer for 3 = 0.0005

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: BandsStdDevBuffer for 2 = 0

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: StdDevBuffer for 2 = 0.0004

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: BandsStdDevBuffer for 1 = 0

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: StdDevBuffer for 1 = 0.0004

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: BandsStdDevBuffer for 0 = 0

2015.06.24 17:18:13.959 2013.11.20 18:24  SESSIONS EURUSD,M30: StdDevBuffer for 0 = 0.0007


Pivot indicator which allows backtesting

$
0
0

Hi 

 Do you know how to tackle this isuues of pivot backtesting.I have had coder who did Pivot EA for me but I cant backtest it.Any ideas how to sort it out? 

Which Trading Strategy Types Do You Use and Why?

$
0
0
 Price Action Trading make good open position

EA locking

$
0
0

I'm using the following code ...

//===============================================
int      LiveAccountNo = 1234567890;
datetime   Demo_Expiry = D'2015.09.30 00:00';
//===============================================

In the Start() ... Type the following ...

   if(!IsDemo() && AccountNumber()!=LiveAccountNo){
      Comment("The EA is not licenced to this live account ...",
              "\nContact .......@gmail.com to get a license ...");
      return(0);        
   }
   
   if(IsDemo() && TimeCurrent()>Demo_Expiry){
      Comment("The EA Demo test copy has expired...",
              "\nContact .......@gmail.com to renew the license ...");
      return(0);        
   } 

You can play around the live or demo expiry date ...

 

For using the EA for multiple live accounts ... use ...

   if(!IsDemo() && (AccountNumber()!=LiveAccountNo1 || AccountNumber()!=LiveAccountNo2 || AccountNumber()!=LiveAccountNo3)){
      Comment("The EA is not licenced to this live account ...",
              "\nContact ........@gmail.com to get a license ...");
      return(0);        
   }

Why do many traders lose?

$
0
0

lack of efforts.

finding signals instead of self trade.

listen to others instead of use your own brain.

rely on what other people says.

rely on entry. no money management.

believe what you see not what you think.

Copy trader EA on signal account?

$
0
0
If they subscribed to the signal, is it really a copy of a signal though?  Wouldn't that be covered under the 5 uses they have?  Or is that the EAs that do that that I am remembering?

Array out of range. Please help. Please help.

$
0
0
One possible issue I can see, just from a person who knows little to no MQL programming (but I have other programming language knowledge) is check your code for open and closing braces and brackets and parenthesis.  Not going to get into any more specific on your example.  I saw one, but will let you find it for yourself, Jason.

MT5 - Python binding

$
0
0
morvitez:

Hi. For MT4 there is https://github.com/rmawatson/PyMT4 which is IMHO the right way to integrate with Python. Does anybody know if that library has been or is being ported to MT5 somewhere? Thanks!

Being that MT4 and MT5 both use an almost equivalent portion of MQL, I would think that this would be doable if someone who knew MQL (which basically is not me, unfortunately) and Python (again, not me) had it in their mind to try.

something funny

$
0
0

Just to have fann for a moment.

I heve never seen something like this before.

The price goes up on two down candles and then go down on up candle.

See the picture.

Can someone help me with this indicator?

$
0
0

Thank you very much!

You were very kind :) 

Experts: LacusTstopandBE

$
0
0
Lacus1977:

Hi ZaLdY,

 

stoploss cannot be zero. If you open order manually, you don't have SL and TP values. Next step is setting SL and TP with Ordermodify() function, but brokers have minimum distance between OrderOpenPrice() and SL and TP, for example 5 pips(or 50 points). If you set SL or TP to zero, Ordermodify error occurs. (invalid stops).

Lacus 

Thanks Lacus for the reply. Well I see that this EA works with the function of SL, it kinda my mistake for not knowing that if i don't use SL dan it would be useless for other function (trailing stop etc.)

Well i will try it more this EA with some other settings, Still not getting the right settiings for my account :)

But nice works, keep it forward.


Rgds,


ZaLdY

Viewing all 75046 articles
Browse latest View live