[Deleted]
Hi, I am brand new to the programming of Expert Advisers, and I need some help with my trailing stops. I can write a simple step up tailing stop, but my strategy requires me to be able to be stopped out x amount of points from the highest point of profit and not move my stop by x once the market has...
if i want ordersend ten of sell_limit tickets at the same time,so i want konw what i to do this,the slleep can help me? the sleep() fucion is mean?
[Deleted]
Why do ordersend as market needs buying price? Ain't i getting the asking price on market at the same moment no matter what?
Is it possible to “selectively use” lines of a conditional,based upon whether certain external boolean variables are TRUE or FALSE? (I’m not even sure what to call this problem, so it hashindered my attempts to find an answer by searching so far. Perhaps someone alreadyknows whether it is even...
I have been trying to program an EA that uses some custom indicators. When I compile my EA I do NOT get any errors. However, when I back test it no trades are ever placed so I am guessing I called iCustom wrong. Here is my code: #include <IncludeExample.mqh>// External variablesextern bool...
[Deleted]
Hello, I'm looking for an associative array with MQL4 (also called map or dictionary) http://en.wikipedia.org/wiki/Associative_array This is a really useful collection (abstract data type) but I don't see it "out of the box" Is there someone here who ever implement this (with hash table) ? Kind...
Hello I need MetaTrader Terminal builds between 187 to 190. I would appreciate if someone can help
Hi, I tried the attached EA in market execution broker. But an error130 comes when EA try to open trade. This problem will solve when we use post fix SL and TP. Please help to modify the EA to fix SL&TP after the order. Regards, Jasim
[Deleted]
i'm sending this code ticket=OrderSend("EURUSD", OP_BUYLIMIT, 1, NormalizeDouble(MarketInfo(symbol_,MODE_ASK),digits_),0,0,0,"",magic_,0,ordercolor_); and i get error 130 invalid stops, why is that?
I went to the backtesting screen and tried to run a test on several EAs. I went to tools and history center then downloaded the data for the EUR/JPY and selected the time frame and optimization box. I'm about to give up on this.
[Deleted]
perty copyright "Copyright © 2011, Etasoft Inc. Forex EA Generator v4.1"#property link "http://www.forexgenerator.com/"#include <stdlib.mqh>#include <WinUser32.mqh>// exported variablesextern double BuyLots4 = 0.1;extern int BuyStoploss4 = 20;extern int BuyTakeprofit4 = 30;int rsi15 =0;int...
#property copyright "Copyright © 2011, Etasoft Inc. Forex EA Generator v4.1" #property link "http://www.forexgenerator.com/" #include <stdlib.mqh> #include <WinUser32.mqh> // exported variables extern double BuyLots4 = 0.1 ; extern int BuyStoploss4 = 20 ; extern int BuyTakeprofit4 = 30 ; int
[Deleted]
Hello, Can I change the default location of the "experts" directory MetaTrader4 install ? The idea would be to install directory "experts" in a sub-folder of Dropbox so I can more easily share mq4 code. I am under Windows 7 Regards, Pierre8r
Hi, I want to calculate the average volume of the 5 bars (no. 2-6) and I did it this way: double vol2=iVolume(NULL, 0, shift+2); double vol3=iVolume(NULL, 0, shift+3); double vol4=iVolume(NULL, 0, shift+4); double vol5=iVolume(NULL, 0, shift+5); double...
Anyone know something that will email me when there is a new mail in the internal MetaTrader mailbox? The internal mailbox that says if you have a FIFO violation. I want MetaTrader to send me an email to my gmail account if I get that.
[Deleted]
hey there is it allowed to ask about spacific broker? i would like to get VPS especially for my EA, anyone know reliable and not too expensive one?
Hello, I want to trade from the charts, is it possible with MT4? Sure one can right click and open the trade. But I would really like to be able to grab the stop loss and take profit with my mouse and move them. Also need a faster one click solution to close the trade. Any ideas? Thanks in...
Hi Guys can anyone help me to create a expert advisor fullly automated base on awesome oscillator.
I am trying to finish an EA that watches manually placed trades with enough protection built in to prevent stupid errors on use. Got to the deveopment area of protecting against use of Period Change the F7 key and schedualed computer restarts. So no magicnumber. Situation to cope with is same symbol
Anyone got any idea why this happens ? In my EA I test if an order stoploss has been modified like this: if(sl > openprice+5*Point) if that is true it should mean order was not already modified because the original stop loss was much larger than that so then I modify the order to the same sl as the...
[Deleted]
I have an EA which uses three moving averages . When I start increasing one of them to values above 5000 (periods) the modelling quality starts to decrease and the EA stops making transactions. Can any one shed a light on what I am doing wrong and what would be a way to fix it? Does this have to do
[Deleted]
hello i'm doing a test on my EA on history data, let's say from 01/01/2010 - 01/01/2012 on EURUSD pair and i get some results then without changing dates or anything in the code i run the same test again and i get totaly different results. any solution to this problem or is there other reliable tool
Okay, so I have been able to merge indicators successfully while on the chart. One has 0 to 100 values and the other has standard price values. So far, so good. I then merge the indicator code to fit my purpose - of having either a zero-line(macd type) or 0 to 100(rsi type). Compilation is a success...
[Deleted]
Hi everyone, why in the name of god do a=NormalizeDouble(Point,Digits); Alert(a); returns 0 ??? It should return Point value for that instrument i.e. EURAUD = 0.00001 etc. Yeah I know I can use DoubleToStr .. actually that DOES returns the right value but I can't work with string, right? What I'm...
[Deleted]
Hello,I wrote a Program that creates Screenshots (by the WindowScreenShot function) whenever there is a new Order. When I run it, it'll create them in the Folder: terminal_dir\experts\filesBut when I test the Program there is nothing to be saved. Not in the: "terminal_dir\tester\files"- Folder, nor...
Hi, If you push F8 and go to the Common tab, you can check the box to Scale fix One to One. This means that your chart will no longer automatically scale to the best fit of your monitor, but simply show the movement in an objective way. Now, if you want to relate the number of pips (vertical...
I want to know the date/shift of the last history bar. Is there any way to do this?
Hi Everyone, How to add more symbol or chart in MT4. In my MT4 there only 13 symbol or chart with different currency. I want to add more different symbol to my MT4. Where can i get the symbol or chart?
Hello guys, how can I check if terminale.exe runnig or not ? I tested by ShellExecuteA but :-( Thank's
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.