Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1009

To post a new topic, please log in or register
Hi there, I am trying something simple: To draw on the 10:00 AM candle a rectangle spanning from the High of the first candle to the Low of the second (@ 11:00 AM). I am using the below code, but not working, no rectangle is appearing - cod below:...
Could you provide a function like OrderInformation() that retrieves the same information as OrderPrint() puts to logfile ? thank you (in the event of..)
Hi Is there a way to save an array in Global Variables? I don't think MT4 has that ability. Any alternatives to access a Global (alike) array by multiple EAs? Thanks Pankaj
Hello there, I'm coding an EA, but have the problem of the EA keep opening orders after a trade is close as long as the conditions are met. (i.e. supose 2 MA lines when cross is the condition to get in the trade. The EA opens a trade, and if it gets closed on its TP or whatever value, the EA will...
Hello, I would like to know something about the function Ordersend(). When I write : ticket=OrderSend(Symbol(),OP_BUY,1,Ask,3,StopLoss,ProfitTarget,"My order #1",16384,0,Green); How many orders this function delivers ? 1 or 3 (one executed order, and two pending orders ? ) Is it the same as this ?...
I need to be able to distinguish between normal buy and sell orders and balance deposits and withdrawals in the order history. Can some please tell me what the order type numbers are for deposits and withdrawals? I checked this documentation page but it's not listed.
I am using a loop to go through every object and deleting and creating objects while in the loop, and am having some difficulties. If I delete an object, what happens to the index array? If I delete an object with an index of 5, for example, would all object previously with an index of 6 and over...
hi guys, I have read about how to code indicators and can do quite a bit with them BUT I am at a loss with what i am trying to do now.... can some one please help me understand how to code and indy for a seperate window that will display values instead of lines or histgrams... For E.g :...
hey guys, i get this error: stopped because of stop out how can i calculate how many trades i can open to not get in this error? my trades have are using stoploss. best regards, mike
does anyone have a buy and sell method that can handle any issue that any broker may throw at you? I ask this because I have found that there are so many ways a broker can kill a trade by requiring that you do things like take a trade then modify it afterwards. then comes the freeze d uration....
Hi, I am trying to build a script that prints some info on the instruments when run, but I have a small problem. When running bidPLN=iClose("USDPLN",PERIOD_M1,0); for the first time I get no quote. (bidPLN=0). USDPLN isn't quoted on request, it is automatic. I get the same error when using another...
As an old stock trader, I would set my stops at 5% below trade entry and TakeProfit 20% above trade entry. I am attampting to do something like this here, but my numbers are not coming out right. I want to do this for buys and sells and on any currency pair I apply it too, but still having...
Hello, I saw that there is an OrderCloseBy method. I also saw that when using the UI of the MT4 (build 224) and creating a new order manually there is another type of order "Multiple Close By" (This option only exists if you have opposite trades opened, for example EURUSD buy and EURUSD sell). How...
can anyone see why this EA wont take a trade? i cant see anything wrong but maybe I ave been staring at it too long and cant see the wood for the trees... please help. I will add the EA and the indy it uses...
Within the strategy testor, when i run my EA, every time it show the error code in the Journal like this: "QWYSC EURUSD daily: load successfully QWYSC EURUSD daily: zero divide" QWYSC is the name of my indicator. however, if i add my EA into the EURUSD, in the journal, it shows no error: "Custom...
Hi, I would need to change the data in the .srv file configuration, I need to change the Broker IP address to a local Ip Address (ie 127.0.0.1) this because I need to tunnel the connection due firewall protection. I can't use the proxy because the firewall will block the destination IP, if I...
hey guys, i need your help! how could i calculate the free margin for a trade with a given stop loss? i want to open more than one trade and need to know how much trades i can open until i reach the maximum free margin. i think it would depend on the Brokers Marketinfo() variables but i didnt found...
Hello everyone, I'm new and I'm trying to open a position in reverse way when the trend is going oposit of what I tought it would, so I could control the loss. is it possible ?
Could some kind person please provide me with 2 scripts.  One that orders identical multiple buys (the number of orders to be defined within the code, but which can be easily changed by me in metaeditor). Each order has the same TP and SL (which i can change within metaeditor) and the same lot and...
hi there i been shooping around and alot of ea out there are garbage like fapturbo only works for broker i cant open an account with so anyone out there have a good profitble ea that will work with any broker ple3ase contact me willing to pay a good price for it willpower1688@hotmail.com thanks
Finally got my EA running well enough to start backtesting. I would think, perhaps incorrectly so, that if the only parameters you change between backtest runs are the SL and TP, then the EA should find the same number of trades in the same period of time and the only difference would be how many...
“I am starting this thread to get some feedback on myhistorical analysis of the various harmonic patterns and their ratios. I have spent about 5 years analyzing the historicalperformance of Gartley, Crab, Butterfly, Bat and AB=CD patterns. Basically Itook historical market data from a couple of...
want an indicator to show Amercian East time,Server time and local time at the timeframe.Can anyone be so kind as to write me the script or tell me where to downlaod? .contact me :mjmljqmjmljq@163.com
Hello Programmers! I have been an avid trader for a few years now, but things have changed, and I have to get a day job now that I have graduated. So I need I partner I can trust, that can help me automate my strategies, and improve them. I am new to the metatrader platform so first I need a...
Hello im trying to make a stop loss/ trailing stop system for an EA that could be used on any currency pair, the problem is that a pip on one pair is worth more than on another pair  (ie USDJPY pip is more than a AUDUSD). How do you get around this? thanks
can some one tell me why this EA stopped working there is still open trades but it will not trail it extern int TakeProfit=750; extern int TrailingStop=5; extern int StopLoss = 100; // check open possitions and place sl, tp int start() { int cnt, totalOrders; totalOrders =...
Is there a way to draw a simple line in metatrader without having it continue all the way across the screen or have it trend on? Quite annoying as I sometimes just want to draw simple target points or minor S&R lines.
Hi: I have an idea for a simple EA but i am not good in programming. So, i am wondering if anyone can help me develop this EA? regards, miki
Hello, I was wondering if anyone knew of an easy way to automatically close an order 3(which I can change as an extern variable) bars after the order was opened. I will have a stoploss in place as backup but the main idea is to open an order from a indicator and then close that order x bars after...
i have develop a EA to auto trail and place a SL and TP but i see that my broker will not let me trail less than 15pips can i rather than trail move my stoploss say every 5 pips or what else can i use for a tight trail
1...100210031004100510061007100810091010101110121013101410151016...1245