Questions tagged [metatrader5]

Trading platform to provide brokerage services in Forex, CFD, Futures and equity markets.

211 questions
0
votes
1 answer

Alternative to MQL5

I am starting with Expert Advisors on MetaTrader Terminal software and I have many algorithms to use with it. These algorithms were developed in MATLAB using its powerfull built in functions ( e.g. svd, pinv, fft ). To test my algorithms I have…
ViniciusArruda
  • 828
  • 7
  • 22
0
votes
2 answers

How to get a trading account's history from any [ MetaTrader Server ] without using a [ MetaTrader Terminal ]?

Is there any way to get history for trading account from any MT server in C# without MT terminal? What we have: Server IP address Login (account number) Password
SYL
  • 327
  • 3
  • 16
0
votes
2 answers

How to make a Demo-version of an [EA] work on a MetaTrader live-account?

I have an ExpertAdvisor ( EA ), named Hedging Recovery EA, it works correctly on my demo MetaTrader account, now I'm about to create an account with a 5 USD deposit and about to deposit +1000 USD on it, but I'm not sure, if the EA will work,…
0
votes
1 answer

Get count and volume candle in OnCalculate

I would like to know how to pick up the candle volume and a "counter" the candle in question. When I caught the tick_volume[rates_total] is different with the volume presented to me when I use the indicator "Volume". Am I doing something wrong?
Matheus Velloso
  • 145
  • 1
  • 9
0
votes
1 answer

OnTesterInit works too long

When running an optimization on Metrader 5 I get the following error message : OnTesterInit works too long... This error occurs 5 times and is then followed the following : OnTesterInit works too long. Tester cannot be initialized. There are…
Freek Nortier
  • 710
  • 1
  • 10
  • 24
0
votes
1 answer

How to draw a trend line on the chart?

I want to draw a trend line on the chart in MQL5. I tried it with this method: ChartIndicatorAdd(0,0,handle); However, it did not work and getting below error:- runtime error (4107)
0
votes
1 answer

Metatrader5 prevent autotrade

I would like to prevent MetaTrader5 to be generating autotrades on my Demo Account at "MetaQuotes", i.e. for hedging reasons, I'd like to have multiple Buy and Sell Positions open. My problem is that sell positions are being closed when I open buy…
Michael
  • 368
  • 3
  • 13
0
votes
2 answers

MQL5: how do I automatically delete all un-triggered pending orders before placing new orders?

I am working on a Project that requires me to place a BUYSTOP and a SELLSTOP pair of orders and then on the next bar if those orders are not triggered, then delete them and place fresh ones. Here is my code: if(logic == true && OrdersTotal() == 0) …
mmdel
  • 1,219
  • 4
  • 18
  • 30
0
votes
1 answer

Metatrader 5 datafeeder

I try to write my own datafeeder for Metatrader 5 using Gateway API. I compiled Gateway API examples, but when I try to run them, my Metatrader test server says: "datafeeder status - offline". It just couldn't see my datafeeder. Does anybody have…
0
votes
1 answer

How to calculate the swap (rollover) in mt5 in term of account currency

Backgound: using mt5 "swap" (rollover) price is defined in points (0.00001/0.001) - 5-digit broker account currency: USD The question is: how to calculate the "swap value" in terms of acc. currency in mt5. With other words, how many cents i will…
cajwine
  • 3,012
  • 1
  • 17
  • 37
0
votes
1 answer

MQL4 - find the exact price and time for 2 MA crossover

I am trying to write MQL4 code to find the exact price and time for all the 2 MA (50 and 100) earlier crossovers that has already taken place in my MT4 charts. Would appreciate any pointers. Thanks,
XMarshall
  • 871
  • 3
  • 10
  • 21
-1
votes
0 answers

MT5 / MQL5: How to write code to trade for Multiple currency pairs?

I have not write code for long time and am very new to MT5. I am writing an EA to trade some currency pairs at the same time (same account of coz). There is only so few examples I can see but they are mostly tied to their own indicators which I am…
-1
votes
2 answers

Automatically obtaining market data from MetaTrader 5 using MatLab

I'm looking for a way to automatically run a script on MatLab which outputs price data from MetaTrader 5. Can anybody provide me a link to someone who has done this before or the best way to go about doing it? I've researched online and could not…
BWinter
  • 1
  • 3
-1
votes
1 answer

MetaTrader Terminal [ History Center ] section: missing data within the platform?

I have recently downloaded MT4 & MT5. In both of these platforms where the historical data section should be ( in the dropdown of the tools section ), it is missing in both and I cannot seem to find a way to access this function. It just doesn't…
joncreek
  • 11
  • 1
-2
votes
0 answers

How can I create a trading bot for metatrader 5 in c++ language?

I'm learning mql5 for create a trader bot for mt5.But I think It is better if It is possible writing that in c++ ,beacuase I worked with c++ befor,So how can I create a bot with c++ ,Does any one know How It is possible?
mohsen
  • 1,390
  • 1
  • 13
  • 37
1 2 3
14
15