Error message is *timeframe more than a D timeframe.
hi guys, im trying to write an ea with fractals on sell side it work pretty decent however when i use reverse logic over 50% of time buys turn to fails, i tried in different time setting didnt much help. i appreciate if any insight or method you can suggest to help me to figure this out thanks in
[Deleted]
I 'm looking a way to close my open order by a certain amount of profit is it possible ?? or do i have to close my open order only when the price is above the orderPrice ?? here is my code that close an open order: for(PositionIndex=TotalNumberOfOrders-1; PositionIndex>=0; PositionIndex --)...
Hello Everybody, I am new to mql4 programming and trying to learn how to read and update csv file. Can somebody please help me out with this Lets say I have a csv file with sample lines like this 1, A, Y 2,B, Y 3,C,Y My requirement is to update Y to Z for all the rows, not sure how FileWrite()...
Hi, I'm having trouble with an EA I'm writing in the sense that my orders are being closed very quickly (ie: before SL or TP is reached). I've examined the orders using OrderPrint() and I've noticed something odd. The manual says that OrderPrint() returns the following: #ticket number; open time;...
In OnCalculate() I have a ArraySetAsSeries with reverse order .... ArraySetAsSeries (open, false ); ArraySetAsSeries (high, false ); .... Then I want the Lowest Value over a specific range. I do this with: x=low[iLowest( NULL , 0 ,MODE_LOW,IdLastBullish-IdLastBearish,IdLastBearish)] But this is not
[Deleted]
Hello! I am facing an interesting problem that I have not been able to figure out yet. If anyone could nudge me in the right direction I would be super thankful. Let's say I have a simple indicator that indicates when I should enter a buy trade (illustrated as a yellow line in the picture). When the...
Hi, Looking for some advice here. I'm trying to figure out how to automatically add SL, BE and TS to trades in MT4 that are triggered by a signal provider . I found a bunch of scripts that do this, but they need to applied to a chart, a currency pair, and I don't know how to apply it to a signal...
DECOMPILED CODE DELETED MODERATOR: Please do not post decompiled code again
[Deleted]
I want to create nice label at the right corner of my bar: ObjectCreate("(D)", OBJ_LABEL, 0, 0, 0); ObjectSetText("(D)", "(D)", 16, "Times New Roman", Blue); ObjectSet("(D)", OBJPROP_TIMEFRAMES, OBJ_PERIOD_H1); ObjectSet("(D)",OBJPROP_CORNER,CORNER_RIGHT_LOWER);...
[Deleted]
Hi all. Having a problem that I've never experienced before. On various demo accounts and even my live account platform (different brokers) history WILL not download from the history center. I go in, untwirl the pair, double click the m1, the available records load up, I click download and one...
[Deleted]
Hello, Just to make sure i'm not doing something wrong because i'm a bit confused: 1. When i want to open a BUY position, i use the Ask keyword in the OrderSend ? 2. The STOP LEVELS global variable would also be regarding the Ask price? so if it's 4 than the minimum i can set my SL is Ask - 4 *...
[Deleted]
I know how to create a obj_text and then attach it to the bar: ObjectCreate("z1", OBJ_TEXT, 0, X_TopRight(), Y_TopRight2()); ObjectSetText("z1", "z", 14, "Times New Roman", Maroon); ObjectSet("z1", OBJPROP_TIMEFRAMES, OBJ_PERIOD_M1); datetime X_TopRight(int fidge) {...
[Deleted]
Hi, I have problem with break. I'd like exit the loop through all orders after open one trade, but break doesn't work. I used loop because I was going to open different currencies. I used function call to trade individual currency. Has anyone any suggestion? for (int i=0;i<=OrdersTotal();i++){ if...
Hi all, I am new here, but have been reading for a few weeks. I am attempting to get into MQL coding in order to write my own EA for my trade ideas. I paid for someone to write one previously but wish to understand how to do this myself, and therefore would much appreciate some guidance relating to...
I just want to know if this is possible, to connect multiple accounts via an EA, all MT4 terminals operating on the same computer. Or would i have to make this happen via Python or R. I'm just looking to code a copier system, having one master account and two other accounts of mine copy the trades....
TA-Lib is well respected open source indicator library that has been used in products like Dukascopy's platform and MATLAB Toolbox. From the TA-Lib website: Multi-Platform Tools for Market Analysis ... TA-Lib is widely used by trading software developers requiring to perform technical analysis of...
As you can see in the code below I tried to overload the operator []. With that the polymorphism has to look at the result declaration. But it doesn't. One way to work around may be a index in one declared as double, but it's ugly. Is there a better way ? Code (not working because of: ''operator[]'...
Hi all) I would like to ask - who earns steadily on forex??? how many percent per month do you make??? and how do you do it? Teach me please
Hi, I will appreciate it very much if you could advice on how to save Default profile using MQL4. The problem is that it looks like it is saved only when MT4 terminal exiting correctly, but when it crashed or so, Default profile is not saved. Thanks, Dmitry
Hiii gus, My name is Mary and I'm loving develop MQL. I'm a big doubt. I'm programming that after the first order, wait 10 seconds if(OrdersTotal()==0) { ticket = OrderSend(Symbol(),OP_BUY,Lots1,Ask,0,0,0,NULL,NULL,0,Blue); Sleep(10000); ticket...
What can one do wrong on that simple code ? - But something is going wrong ! ArraySetAsSeries(arrValues, true); ArraySetAsSeries(bufCenterline, true); // ... newBegin = 1; for (i = newBegin; i >= 0; i--) { bufCenterline[i] = iMAOnArray(arrValues, rates_total, 13, 0, MODE_LWMA,...
Hi all, I have an ea on four pairs. At first, the ea is working well, but if I close the platform and open it again in one of the pairs multiple orders start to open. Could you show me what is wrong? Thank you in advance Luis
Is it possible for one EA to modify the External Variables of another EA? If so how could this potential be done? Many thanks.
Hey Guys, I have a new problem ... I'm writing a scalping bot at the moment and if I want to use the S/L and T/P I must be at least 40 points + spread away from the market. Is there a way to close a order, for example order 2 if the market is at x or y? So I must check if(Ask < x || Bid > y). But
Hi i live in India from birth. I have opened a International Bank account in London and especially for the Purpose of Forex Trading. My friend Deposited his money there who lives there as uk citizen. And I started doing trading from India but my all transaction places in uk and their bank. I...
Hey Guys, I have a problem. My code is calculating a Stop Loss. As you can see in the picture: My Bid is 1.13844 and my min. stop is 1.13794. So at least exactly 50 points. But why I get a 130 Error? And how can I print more variables in one print methode? In Java I just type System.out...
New article Graphical Interfaces III: Groups of Simple and Multi-Functional Buttons (Chapter 2) has been published: The first chapter of the series was about simple and multi-functional buttons. The second article will be dedicated to groups of interconnected buttons that will allow the creation of...
[Deleted]
Hi, Just finished my building my EA. I'm looking for a broker to trade WTI Crude Oil. Fixed spread. Max 5. Any Recommendations? Thanks
[Deleted]
Hello, everyone. I want to write a good EA for my purposes. I create an object: ObjectCreate("[I]", OBJ_BITMAP, 0, X_TopRight(140), Y_TopRight()); ObjectSetString(0, "[I]", OBJPROP_BMPFILE, "Imn.bmp"); ObjectSet("[I]", OBJPROP_TIMEFRAMES, OBJ_ALL_PERIODS);...
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.