Download MetaTrader 5

MQL4 and MetaTrader 4 - page 728

To post a new topic, please log in or register
Sorry if already answered here, but for a reason I need to analyze individual ticks for a symbol for a certain (not so long) period of time due to tuning up EA parameters. Pls, how can I get the values of individual ticks or how can I collect them? Can MQL4 export to excel? Thanks
  Click4pips (1)
Is anyone using this ea, I can not get it to trade, or to back test on Oanda's mt4 platform. one thing I have noticed is that the ea's that work are colored blue, but click4pips is colored gray. Can anyone help me with this issue.
After studying up on MQL4 for a few weeks, I decided to create my first EA. The principle is to look for a pin bar (hammer) to form within the trend (prices vs 20EMA) and buy on the open of a new bar with 2 pips to TP for each pip to SL. After some initial hiccups, I finally got the EA to compile....
I want a stop loss order automatically open and close at a specific time. Which script is suitable ? Many thanks
Hello, I have a new EA. If the BID is above a 200 period moving average and the %B indicator is below 50% 1 period ago then buy at market. The following code does compile but in MT4 under the Journal tab it says "divide by zero" --- which I interpret as an attempt to divide by zero -- but nowhere...
Hi guys, I run the same EA on several currency-pairs. Will the EA's perform on higher speed if I'll duplicate the executable and let each currency-pair to run a different file? Thanks, James
Hi, I haved read some topics about this problem but i don't find a solution. in my c++ code i have: void __stdcall DLL_EXPORT exportdata(std::string [1] data); and : void DLL_EXPORT exportdata(string [2] data){anotherfunction([3]data[4]);} in mt4: #import "mt4_dll1.dll"   void      exportdata(string...
Thanks for any help you can give :) I want to use 2 indicators that trigger a trade. the 1st indicator is the precondition the 2nd indicator is dependent on the first I must set the 1st indicator with a shift since the 2nd indicator (2nd condition) will happen sometime after Would this be the...
I'm testing a new expert I've developed. What I don't understand is why are results in backtest absolutely different if I backtest it in 1M or in 1H? I thought that when backtesting 1H charts, backtester uses History of 1M, 5M, 15M, 30M and 1H. And that the most detailed history file is, always, 1M...
By checking the Skip Useless information option in Strategy Tester it hides negative results. But is it a good idea to see the worst case scenarios Optimization as these results may happen if the Optimization is not set correctly in the EA?
  scriptor (6)
hi all., does anyone know this guy by the name SCRIPTOR?,how can i contact him via e-mail? thanks.
Hi I am newish to Trading and Forex but am also a real idiot with Computers..Once I am set up I am fine...However I need someone to sit with me, (I live near Northampton) and explain the basics of MetaTraders, set up wht I need and to integrate another system onto this...Any recommendations for good...
Hello, I'm having trouble passing trade comments to and from a C++ dll. Basically I'm trying to pass an array of string values back and forth between a C++ dll. Any body know if this can be done? Thanks so much for any help! Tradingbigboy
  Text problem (1)
I have an issue with my indicator which I dont understand. I have a makelabel function which is supposed to create a text by each bar with a number. the alerts are just for my testing while trying to figure out this error void makelabel(int index){string name,cnt,period;  static int...
int init() { SetIndexBuffer(0, Uptrend); SetIndexStyle(0, DRAW_ARROW, EMPTY, 2, SkyBlue); SetIndexArrow(0, 158); SetIndexLabel(0, "NgepeBarak"); SetIndexEmptyValue(0, 0); SetIndexBuffer(1, Dntrend); SetIndexStyle(1, DRAW_ARROW, EMPTY, 2, Gold); SetIndexArrow(1, 158);...
All - I appear to be getting an Error Code 130 with the following code on a 1-minute candle chart: RefreshRates(); currOrderTicket = OrderSend(/*1*/Symbol(), /*2*/OP_BUY, /*3*/LOT_SIZE,...
i have seen https://www.mql5.com/en/code/10370 curIndex = utils.periodToPeriodIndex(Period()); do this means mql4 support OOP object function? thanks
is there a way to code into the EA to display the defined indicators within visual backtesting? I know I can drag the indicators over and display them but the results differ quite a bit from my EA.
Hi There, I have recently started using MT4 and after a laptop gave up on me I tried to reinstall the program on the new laptop. However I got the same 'invalid account' error as some searches threw up, none of the fixes worked however and when I uninstalled and reinstalled the software the most...
//+------------------------------------------------------------------+ //| Single Pair Buy leave Email.mq4 | //| | //+------------------------------------------------------------------+ #property copyright "o_0" #property link ""...
Sorry for asking these, this is weird for some person. But after asking some modification, it bcomes un-workable. May b i am not coder and screw up all things finally. Can anyone pls help to write a simple script that : Once switch on the eA/Script, it will place SELL orders immediately with 1lot,...
ive just come up with very useful /for me/ idea..... is it possible to declare a lets say a var in such format var field_1 (x,y,z,a,b,c) var field_2 (d,g,h,i,j,k) ... ... of ur trading parameters so this are visible in expert as a fields to fill up in sort of password like. lets say ive got few...
Hello - I would like some clarification about OrderSend() and OrderModify() with regards to OCO tickets. If I execute the following command: EXAMPLE ------> ticket=OrderSend(1. Symbol(), 2. OP_BUY, 3. 1,...
I am a trader who is trying to step into the EA world. I used a free online EA builder to create a buy strategy when one MA crosses up and over another MA. That works. I then was able to create the sell strategy EA when the MA crosses down. But when I try to create the buy and sell strategy together...
How do you write a script or ea to track prices of multiple brokers? for instance: right now, the prices of 2 brokers for CHFJPY are as follows: FXDD 96.790 GFT 96.795 I would like to track this difference and see if it gets much wider, and also to seek ther could be some way to profit from it...
Suppose I determine that a stop loss has occurred. In the start() function, how would I determine the number of pips I have lost? is it as simple as determining the price of the original order and determining the difference between either the Ask() or Bid() (depending on whether the original...
FREE Real Time FOREX Depth for EURUSD (From More than 70 Global Banks) http://iticsoftware.com/forex-depth.html
Hi, I have some ideas for expert advisor but I dont know how to create it, please can you tell me where can I find some tutoirals here or can you post here some links / instructions ? Thank you !
Hi guys, I know that multi currency EA cannot be tested on the default strategy tester. Maybe anyone heard of some workaround ? Thanks Mike