Download MetaTrader 5

MQL4 and MetaTrader 4 - page 14

To post a new topic, please log in or register
My dear collegues , I have a perfect custom indicator(fx_snipers_ergodic_cci_trigger.mq4) that works perfectly, hereby the indicator: //+------------------------------------------------------------------+ //|                                       Louw Coetzer aka FX Sniper | //|...
Starting this thread to use it to post different types of trailing stop Ea's, would like to start it with my favorite Volty trailing stop on jurik Ea. This is a mod of Mladen's Ema trailing stop Ea changed out the ma with the volty on jurik, also added the atr risk calculation. This Ea you can...
Hello everyone, I have an array of symbols and I am trying to use current bid price using MarketInfo() for each elements of this array. string symbols[] =  {"AUDCAD", "AUDCHF", "AUDJPY", "AUDNZD", "AUDUSD", "EURAUD", "GBPAUD"};   int arraySize = ArraySize(symbols);   for(int i=0; i < arraySize;...
out there are a lot of very good editors, with a lot of features, more than the build in MQL4 Editor. it is a bad idea and a lot of work to modify the editor to make it as good as all the others out there. my suggestion is, to provide the compiler as standalone exe file, this should be easy to...
I've attached the mq4 file with the code I want to integrate into my own. My code is the Price Action 34EMA file and the other code I want to integrate is the CloseonProfit mq4 file. I'm just not sure how to integrate it. I assume I have to paste certain lines into certain areas of my mq4 file but I...
Hi, I am trying to make an indicator that can basically add a moving avg of other items than Price. So as an example, I would like to create a moving average of Volume. What I have been thinking is to add the iVol data to an array (although I dont know how to do this yet), and then to use iMAOnArray...
  Coding help (7706   1 2 3 4 5 ... 770 771)
Hi, Mr. Guru could you please help me to constantly refresh an ea after each tick movement. I have tried everything, But I just can't make it refresh constantly. What lines of code must I insert to keep an ea and indicator refresh after every tick? Tnx
Tradeing Trader
Hello, i had find out with the help of a Moderator that in the Strategy Tester the function OnChartEvent() does not work, i wanted to ask if somebody knows a trick or solution how i can get the chart event also in a Strategy backtest.
When doing this // MQL5CArrayInt myArray;myArray.Reserve(50);myArray.Resize(50);int size=myArray.Total();bool success=myArray.Update(0,10);  "size" woudn't be "50" as expected. In my Program size came out with "0" and "success" with "false". This is a total different Behaviour from "ArrayResize" and...
I am looking foir an indicator for MT4 that can calculate the annual average daily range of any currency pair. I have seen plenty out there with no inputs at all or some that can do up to 100 days etc, but want to be able to calculate the ADR for 1 trading year and have it just show in a corner as...
Hi all, I've begun coding a simple EA for opening a trade every time price crosses an EMA and closes when it crosses in the opposite direction. It seems to work to a certain extent, but when it closes it will not immediately open another position in the other direction. I thought that it would have...
Hi everyone..total noob here! You've been warned. I just want to say ahead of time that I did run a search on the forum and couldn't find what I was looking for, most likely because of the amount of information that is one here (A LOT!). With that said, what I am attempting to do is create, very...
  EA text cases (2)
I have an EA created by a freelancer here.  I don't understand the code, but perhaps someone here can provide some guidance. The (possible) challenge is this:   The EA not only obtains price history data for its calculations, it also obtains data from an external mysql database. That db contains...
Hello, I am using a third party software to write trading signals to a file and use an EA to keep monitoring and parse that file to execute those trading signals. In this EA, the logic looks like int start() { while ( true ) { RefreshRates(); // read and parse the trading...
Hello everyone, I have started writing some switch statements to hopefully fix some possible problems with my code running. I admit most of which I doubt I will ever come across, or in fact need to use. Now if more than one error occurs, where the solution to the first causes errors with others.  A...
Hello I have questions about using previous MT4 versions for backtesting. I found on internet old MT4 terminals, and I succeeded in creating a suggested patch allowing the old build 950 not to automatically update. It should be compatible with my also-old Tickstory software version, and I also...
Happy New Year everybody !! Hi experts,I have a question about how to code following trading condition. rule 1.Fast moving average cross up slow moving average 2.If RSI >70 within 50 bars after crossing  then open long It mean 50 bars after cross up ,just wait for RSI>70 but won't be under first...
I would like to modify this Fractal indicator that I attached so that I could modify the number of bars on side that has by default, this indicator that has the code open and can be modified, the number that I would like is 15/15, thanks
I'm developing an EA and I want be able to sell it via MQL5 services and via custom licensing codes. Is there a way inside EA code to know if it is running via MQL5 or not? I haven't found anything documented about this topic, thanks in advance.
Guys I am new to MQL4 and I need help with the following, please: 1. Say an order has been opened in the USDCHF chart, I would like to be able to close it and take profit when a price change occurs, for example, in the GBPUSD chart and place an order there. How do I take profit: Do I use OrderModify...
Hi All, Can anyone tell me how to convert the source code below from Bar to Candlestick? Right now it only shows bars even when I choose the Candlestick option in MT4. //+------------------------------------------------------------------+ //|                                                    Open...
I know that this question has been asked before, but I can't get it to work. I hope someone can help. From my custom EA, I want to programmatically add my custom indicator to a subwindow of the chart the EA was added to. I've managed to do this in MQL5 with ChartIndicatorAdd. So, I have my indicator...
Hi, I trade in the NSE (National stock exchange of India) and use MT4 for charting. I have developed a strategy to find out good entries and exits in the derivatives market, based on calculations using the day high/lows. However, the lines show up only the next day morning when the market opens up....
One more average and variations - key thread for MT4 One more average and variations for MT5 -  the indicators for MT5 are inside this MT5 thread  The following indicators can be found on the above mentioned threads: One more average - very advanced indicators with speed changing, with smooth...
Hello! I'm not sure if this goes in this section, but it seems like the best categorization to put it under. I'm looking for a tool similar to FXCM's proprietary "Zone Trader" located here: https://www.fxcmapps.com/apps/zone-trader/ So far, I've searched Google and the Market only to find EAs that...
If some order is opened with some specific magic number, later you can't change / modify magic number of already open order. you can only assign magic number at the time of opening order. for example: I have 10 orders open with my EA and with different SL/PT and magic number after a while 5 orders...
Hello! I want to develop a custom EA that I've not been able to find anywhere else. Does anyone know of a list or database of reputable, good and trustworthy MQL developers? I'm not sure where to look. Any help is appreciated. Thanks!
Is there any way to perform actions on the change of the chart window's zoom factor?  I can get the current chart scale and repaint the indicator/EA but it will only do that on the next tick after changing the chart scale. I guess my method would be called something like onChartScaleChange() (which...
I emailed boston technologies/meta quotes but got no reply so can someone from mete-quotes/bt answer the following 2 questions. 1.What is the monthly cost to lease a mt4 terminal? 2. Can you lease a terminal to a u.s.a. citizen?
Hi!  I Have a double number (1.0) and I try to divide by a double variable that is the rest of another two variables. Any one of this variables is a the number of a senkou Span A and Senkou Span B indicator ( From Ichimoku). When I show the numbers using comment, all goes well. But when I try to...