Download MetaTrader 5

MQL4 and MetaTrader 4 - page 572

To post a new topic, please log in or register
Hi everyone. I have a question. I am working on a EA and the idea is to have as an input parameter the symbol i want the EA to run. I though on a combobox but i understand that mql4 doesn't allow a combobox. Am i right? I'm trying right now using an extern string variable. But it's not sending any...
Hi all, I am new to trading and MT4 so please forgive the new-ness. I am making it a habit of printing charts and put my comments on them but have been encountering problems printing them. Here's what happens: 1. Print preview is good. 2. It's only when I click "print", which whether printed as soft...
Is there any way to takeprofit in pips? My base currency is GBP and im trading EURUSD. If I set my takeprofit as 25, it will close the order at 25GBP profit when i really want 25pip profit. ticket=OrderSend(Symbol(),OP_BUY,1,Ask,3,Ask-25*Point,Ask+25*Point,"My order #2",16384,0,Green); Thanks for...
Is there any way to make function iLowest() to return the most *recent* bar's shift when analyzing a series of bars, and more than one bar is found with identical low price values? Currently it seems to be returning the farthest away bar's index instead of the newer one... Thanks!
Hello, I am relatively new to Forex trading, but not to programming. I just started to write a few programs in order to understand some concepts of Forex trading better and in order to be able to backtest some of my ideas. You might consider the following issues to be insignificant, because they are...
I would suspect that most of us at this forum do not yet havea winning program. Why? I don't think it's a lack of programming skills. Thepeople at this forum are very generous in helping solve programming problems. Perhapsit's because we can't observe the market clearly enough to come up with...
Hello Everyone, I know that the smiley face is only ever sad when Allow Live Trading has not been selected when loading the EA. I would like to make it sad if the input parameters are wrong to highlight the problem, not everyone checks the experts tab, and some of the indicators already use the...
The EA I am programming uses an include file that come with the mt4 platform from IBFX and arrow colors were CLR_NONE but they were changed to red longs and blue shorts but the lines that stretch between the orders placed on the chart in a forward test represent the opposite as you can see in the...
I have a question about log of fix bridge. I would appreciate if someone could give me answers. Please to refer the following schematic system image. 1: start point of flow of price feed. 2: order 3: order execution My question is about display timing between price feed log at Fix Bridge (1)...
Seems like every other color of line can be changed, even the arrow color as part of OrderSend and OrderClose, but not the dotted line that joins the arrows after an EA has closed a trade. Anyone know if both the color of the line can be changed and the line style?
sam
Hi, Everything is in the title, I have a script to put severals orders in one time, I search to set an alert on at least the first takepofit of my orders with the same script, but I want to see the alert in the Terminal. Can I find a way to do this? Thanks
Hello all, I'm relatively new to MT4 but was a long time user of strategy trader for you FXCM clients out there. Anyway I'm having an issue with my historical data that I just can't seem to shake. When i try to back test, it says something like this: 2012.07.11 19:43:19 TestGenerator: unmatched...
Any idea how to retrieve the order profit/loss at the close of an earlier bar in an EA?
if I sell one currency and now I want to close the operation, and make a profit,I must closing the operation with an amount more or less than what I sold. . .
Hello, I have an EA that triggers an indicator. In that in that indicator I write to a file a number of values that I calculate. Then when the indicator is complete and return is passed back to the EA. I want to read that file and analyze the values that were written by the indicator. I can't seem...
Hi all, I am having some trouble with the dreaded "'\end program - unbalanced left paranthesis" error, I have been through the code several times now and I can't for the life of me figure out whats going wrong, I have attached the code in the hope a fresh pair of eyes could look at it and possibly...
  Steady EA (14   1 2)
Hello everyone, I wanted to post an EA I been working on, perhaps we can improve it together as right now it is very bare bones. I do ask that if anyone borrows any code from this ea and modifies it or improves it to please post it back here. The Ea is simple, it is a combination of candle patterns...
I need to write MLQ4 code in which I would like to know how I can count the number of closed Order by Stop Loss. If it closed by OrderClose() command it is possible to identify closed order but if it closed by Stop Loss not sure how would I know that Order is closed by SL? I would appreciate if...
Hi guys!! I planned to use the AC indicator in my EA. I want to know if the current bar on the AC is green or red. I also found out that it is green if the current value is of higher value than the previous bar. Which also means that the bar will be red if the current bar has lesser value than the...
When I load the ea and allow it to run a few days nothing happens. But if I do a back test up to current date, trades are recorded. what does it take to get the ea to trade going forward?
Hello, Has anyone already coded a function that computes the average price for open long positions and the average price of its open short positions, and would be willing to share this code? Also with the calculation of the gain / loss potential if closing all positions. Thanks, Pierre8r
Hi guys, Is possible return whole array from function? My test code idea: double Array1[500];//+------------------------------------------------------------------+//| Custom indicator iteration...
Dear all, 1. Is there a way I can link up an order with a protect profit order or stop order so that I can use orderselect to find out whether this order has correspondent protect profit order or stop order opened or not? 2. Is there a way to let indicator use a result of a calculation from EA and...
Hello, can MQL4 programs also be compiled in batch mode? Dobrek
i tried to make an EA from an indicator..but got 3 problems: '{' - initialization expected 'EachTickMode' - comma or semicolon expected '}' - unbalanced parentheses could anyone help me with this problems >.< all the problem is at "extern bool EachTickMode = {EachTickMode};" extern int...
Hello in mt4 strategy tester you can improve test credibility by changing history settings and downloading more history data. My question is does mt5 also have this option or is its tester already ensured to be credible to the max without changing settings?
I am using the "Birt Patch" in my metatrader app. In my previous version, I believe it was version 406, I had no problems with running my tester program. Now I cannot run it as I get an error message "TestGenerator: internal error because the file not opened". Does anyone out there have a remedy...
Hello. I am using the fallow code: #define OF_READ 0 #define OF_WRITE 1 #define OF_READWRITE 2 #define OF_SHARE_COMPAT 3 #define OF_SHARE_DENY_NONE 4 #define OF_SHARE_DENY_READ 5 #define OF_SHARE_DENY_WRITE 6 #define OF_SHARE_EXCLUSIVE 7 #import...
I need to write each row in File 3 (below) to a new file (File 4) if the Column 2 value in the row from File 3 is found in Column 4 in File 1 or File 2. The first row from File 3 will not be placed in File 4 because Black is not in Column 4 in File 1 or File 2. All other rows in File 3 will be...
1...565566567568569570571572573574575576577578579...1245