MQL4 and MetaTrader 4 - page 1434

Hello, I 'm programming indicators and EAs and have a general question. How could I tell in code, if the Indicator EA is applied to a demo or live account? Is there some kind of standard for accountr numbers to determine this. I'm already can retrive the acount number and hopefully need some kind of...
When the buy order take place, how to show the data of:-\ a) Buying Price? b) If the order has been closed, no more showing the buying price? c) I get stucked at the writing below:- ObjectDelete(name_8); ObjectCreate(name_8, OBJ_LABEL, 0, 0, 0); lg1="BUY"; ObjectSetText(name_8,""+lg1+":...
  Trend Forex 2.0  (4)
Somehow, I happend to buy Trend Forex 2.0, and later discovered that it was just a strategy rather than EA. My mistake on the lack of investigation. My question, is there an EA for Trend Forex 2.0 ??? ckmoied
[Deleted]
Hello, i'm looking for a codebase that can active an alarm, when the RSI indicator breaks 50 (up or down), thanks in advance, bobo
Hi there, Can someone add a stop loss to this EA. Thank you in advance.
[Deleted]
If someone might take a little time (i'm relatively new to MqL4) How does one after compiling the MQ4 format with metaeditor transfer the file into the terminal to use, i had done it only twice it was automatic but for other files after formatting i do not know what to do to either create and store...
Hi, im having problems reading information out of a .dat file that an array has been saved into. i have two two dimensional Arrays, int GridTracker[100][15]; int GridStatus[10][10]; i have a funtion that is writing that infomation to file void write_arrays() // write data to a file to backup memory...
I am trying to write an EA to manage all my manually opened orders. Upon the appearance of a new bar an order needs to be closed if the close price of the bar just completed is less the EMA10 (in the case of buy orders), the opposite is true for sell orders. I was going to use the code below but...
[Deleted]
Hi, I am wondering if it is possible to attach EA to the chart (and enable live trading), via command line, or any other means besides actually opening chart and manually attaching EA to it. I would like to automate this process and do not want to have human interaction in this step. Any ideas are...
[Deleted]
Hi, i want my ea to close a buy order when my macd1 is less than macd2, and it should close a sell order if macd1 is greater than macd 2, but it does not,it closes the opened orders only at take profit and stop loss alone. please help me . the code as been attached. thanks.
[Deleted]
i am planning on writing a rather complex EA, and would like to break it up into parts. what's the best approach? thanks for your input.
[Deleted]
Does anyone have an EA or script that will buy or sell on a stop order at the high or low of the previous bar? It sounds easy, but I've searched for hour and can't find anything. Thanks for your help, Jim
  Historial Spread  (1)
How do I chart the historical spread on the chart, so that I can get it as a trendline and know at which point the spread increased. And this will also help me analyze the best trading conditions
[Deleted]
Not more trade than 2/3 in one hour how i can do it?? if i look in the orderhistory i can know the orderclos time, but how work it?? he give me the hour minute and second?? and after i stop it how i restar the trade the next hour?? i found this solution //FAIL1OrderSelect(OrdersHistoryTotal()-1,...
[Deleted]
hi all, I have build an EA that generates a sell/buy when the fast macd crosses the slow macd signal. But i want to build a new one. This new EA must generate a sell when macd is > than 0 and fast macd crosses the slow macd for the third time in a row, or at the third signal the macd crosses below...
Hi there, Can any body please clarify if the prices shown on the order number arrow 'markers', which are displayed in the visual charts produced by strategy tester when testing an EA, represent bid and ask prices at the moment in historical prices when the trade was executed by the tester? (see...
[Deleted]
Hi, How to create EA for the following conditions Long entry 1) Close below Bollinger Band using low as price with 10 bar period and 1.5 standard deviation 2) Buy on the next open bar. Long exit 1) Close above open price 2) If above condition is not meet, close after 20 bars. Thank you.
[Deleted]
Hey Everyone, I was wondering if someone can help me with some code for selecting the largest losing trade that is currently open, I've looked and looked and can't find anything. Obviously we need to loop through open trades and search via OrderProfit() but I can't seem to get it right, or find the...
when dll return false, after arrive to ex4 the value become true which is horrible ~~ i use below code in DLL bool __stdcall Do_trade_time_DLL(int hour,double GMT8_subtract_brokerT,int day_ofweek, int day_ofweek_HK, double fluctuate_level) { return(false) } and i print the value in ex4 directly,...
[Deleted]
hi im price i have an ea that i want made can some one help me with it. it a very profitable ea. i trade this indiacator every day with good profits heres a picture of my set. i need this done for free ill show you how my system works if you do it for me
[Deleted]
The MT4.00 build 220 can not be debugged?? i was developping some EA calls dll files,i was used to debug the dll functions via the visual studio C++2005,and it's ok when the version is MT4.00 build 218,but when i update my mt to version 4.00 build 220,it cann't be executed via the Visual studio...
[Deleted]
hi all i developed an ea based on rsi,i compiled it with no errors but when i foward test it doesnt take trades when the trading conditions are met.please somebody help me. below is the code for the ea: int start() { double RSI_0 = iRSI(NULL,0,14,PRICE_CLOSE,0); double RSI_1 = iRSI(NULL,0,14...
[Deleted]
HELLO GUYS, I've come to discover that the Heiken Ashi forex trading indicatotr is a very strong and important tool that really works.. This tool is over 95% accurate and i'm sure if it could be coded into an EXPERT ADVISOR it will do very well. Please i need an expert that can make me an expert...
Hello freinds, I need your help: If I have an open position of EURGBP, and I have also its openning time ( By OrderOpenPrice() ) (f.e. 2009.6.28 13:07:33 ), and I want to know NOW what was the value of USDJPY at this time (means at 2009.6.28 13:07:33 ) ? I will appriciate your kind help. Crossy
[Deleted]
  tick data import  (3)
Hi, I need to import historical tick data and I am quite confused. Has anybody successfully done that? What's the correct way of handling it? Thanks! SilverPrince P.S. By the way, where can I get cheap tick data? I have downloaded GainCapital ticks for free, but I have no idea if it s any good
Thankes, The tytle is my question..
Any ideas how to round the JPY pairs here? If price is at 85, I'm trying to find how far it is away from a number in the array, eg 80 and 90, it should round up. It works for the 5 decimal place pairs. I am trying to round to tens so 80, 90, 100, 110 even if price is at 85 bool SoundAlert =...
Leide bin ich auf billig Handelssystem reingefallen und habe hier mein lehrgeld bezahlt. Würde auch nur auf EAs zurück greifen die eine Top Performance aufweißen und auch schon mal z.B bei einer Championship mitgemacht haben. Es ist klar, dass gute EAs Geld kosten. Habe mir den Forex Deluxe gekauft...
Good Afternoon, dear Members, now that i have backtested my EA it look my thought were the right ones for the beginning. Before setting it ino the wild i want to do some more testing. now my questions... 1. how can i run really loooong backtests even with the m1 chart? is there any limitations? (2....
[Deleted]
Hi, I just purchased this program and I have NO idea what I am doing. I followed all of the videos and opened up a demo account but I can't even find the page that shows you if the robot is buying or selling, and what your profit is! If someone could tell me where I can find this info, that would be...