MQL4 and MetaTrader 4 - page 1450

I wrote the code like this: #property indicator_separate_window#property indicator_buffers 2#property indicator_color1 Red#property indicator_color2 Whiteextern int m=5;double roc[];double PosBuffer[];int init(){IndicatorBuffers(2);SetIndexBuffer(0,roc);SetIndexBuffer(1,PosBuffer);  SetIndexStyle(0...
[Deleted]
Hi, I am new in MQL4 programming. Please guide me - How to detect Signal changes ie Blue dot changes to red or red changes to blue. I'm using a indicator which calls iCustom function. Please reply.
[Deleted]
Hi, i am looking for 1M timeframe historic data of major stock indices (DOW, S&P, NASDAQ), major future contracts(GOLD, OIL, COPPER) and major currency pairs (EUR, GBP, JPY). Ideally i would need 5 years for testing my EA, but I know this is almost impossible to get for free. Can somebody recommend...
[Deleted]
I need ECN support added to my ea. It needs to be paramaterized so I have the option to turn it on or off. This currently doesn't use a TP so it just needs to be changed so it doesn't open orders with a stoploss if the ECN setting = true, and then it modifies the trade after setting just the stop...
[Deleted]
Hi - i am looking for an ea that closes all orders at a specific time. Can anybody help me out with this ea? - it does not do anything on my charts. Thank you very much. Maurice //---- input parameters extern int CloseHour=23; extern int CloseMinute=55; int start() { int cnt, ticket, total; if
[Deleted]
hi guy i am working with my EA on EUR/USD with timeframe 15min. i have only a question : how can i use more conditions inside the same EA ?? i mean... if ( cond1 ) ordersend ( buy...) if ( cond2)...
Hi, As I understand for a Buy order the trailing stop would move up if the price goes in our favour. Can the trailing stop be higher than the Order Open Price ? What is the dynamics between OrderOpenPrice(), OrderTakeProft() and StopLoss values ? regards skt
[Deleted]
Hi all! I am a mql4 programmer, I have already worked into NN EA's. I don't need to speak about me, rather about a project's of mine for active minds. I have a matrix of hundreds of samples of three inputs for an output from eur usd M5 history. Inputs are particular definitions of the properties of...
This indi looks good on chart but repaints...can someone re-codes it in way that it will stop repaint??? And i don't know what are "ExtDepth" "ExtDeviation" "ExtBackstep" in parameters ... Thanks
[Deleted]
hello, i was wondering if anyone can point me to a guide or just write down the different "ways" to comunicarte with the market, i mean: i need the integration with candles, ticks and all of the simple things.... i noticed the "bid" thingy, but i need some sort of table with the whole integration....
[Deleted]
hello all iam tring to perform strategy tester ( F6) on my expert but i did not get any results, no graph, no report, nothing at all, i though thats the error in my expert, but when i tried to perform back test on one of metatrader default EA, it gives me same results can any one help me on how to...
[Deleted]
  simple mq4  (2)
I need to find very simple mq4 that doing the next: 1. Open "buy limit" order at 0.1 lot volume and at 0.03 price, every ten minutes 2. Close this "buy limit" order after 5 minutes. I need it as I am using expert advisor, and my broker disconnect me after few hours without any new order. Someone...
Good Morning Everyone, Thank you for the help. An abundant amount of knowledge here. Here is a script I have been scracthing my head on. A check for insufficient funds prior to opening any position. 3 Errors, 0 Warnings 'total' variable not defined (14,7) 'total' variable not defined (15,12)...
Hi, I want to create an EA to send orders to a different pair. So, I want to attach the EA to a graphic and then the EA launch different Ordersend in different pairs, not only the one where is attached. Can this be done? When I try I have not success. Thanks for the feedback.
My EA didn't create any pending orders this morning. Kt ha sbeen working finr in the strategy tester. However, this morning nothing, no errors. I have EAs enabled and live trading setup. Any ideas? Maybe I should change the hours, minutes, and seconds checks to just check the hour and minute and...
Hello, i am newbie trying to write a EA based on signals given by QQE and I would like to trailstop the oppenned positions. My EA seems to use iSar correctly when it modify a stop for a long position, but the on a short, the EA doesn't modify the stop (the code is similar !!). Plus on the journal i...
[Deleted]
Can anyone spot my problem I've got? I'm trying to include the values of the positive and negative arrays in my EA from the Squeeze_Break indicator ('Squeeze Break Indicator'). For the sake of space, I'll not dupe any of it's code here (it's at that link), unless requested. All I'm getting is 0. I...
[Deleted]
Hi, I've been reading you for a long time and I've finally decided to post the results of my almost Beta version of my EA. So far it's working on EUR/CHF and GBP/JPY. On the other currencies it fails to be profitable but I know why (which is good) but haven't found a way to fix it yet (which is bad)...
In the window EURUSD is a program EA-1. And in the window GBPJPY is a program EA-2. How can data be handed over from EA-1 to EA-2
[Deleted]
Hi every body I have a question. I wanna know how and what abiblities my investor have? I mean I am working trading with a EA program and I want to know whether my investor with investor password have some abilites to access my EA progaram and can see it or not? and is there any way to make password...
[Deleted]
Hi, I need help to setup a multi display terminal for metatrader (4 displays on 1 pc)...how can i get 1 pc to run EUR/USD, another on USD/JPY, another on GBP/JPY and last one USD/JPY. Appreciate your help. TQ
[Deleted]
I have a quick question about closing an order after a set number of minutes/seconds. My code works up until the point where I'm ready to close the order. If the order hasn't reached its TP or SL after 15 minutes, I want it to close no matter what. There is only one order open at any given time and...
Will this code carry on the loop after the continue command or will it just skip it all if the magic number isn't 1       int total = OrdersTotal();      for(int i=total-1;i>=0;i--) //if no orders then it won't run through this again      {         OrderSelect(i, SELECT_BY_POS);         if (...
Can someone out there please lend me a finger with this programming thing.....its so confusing! I have been tinkering with those codes and i have never compiled a correct code of my proposed 15mins trading system..... Here i need some help and if someone could correct all the mistakes in my codes...
[Deleted]
Hi Everyone, This is my first post and I'm not sure it's the right place but here goes. I trade Cable manually using a "Grid" to capture Daily Ranges. I place Buy Stops every 10 points to cover 200 points set to take 10 pip profit. The same with Sell Stops. I also place Sell Limits on the "Buy" side...
[Deleted]
plus I have read tons of this forum and articles but I have not come across anything that says exactly what I am looking for. Please help? Regards, Joseph
Hi, I’m writing this code, but I obtain the message “OrderModify Error 1” because the system continue to see as valid the condition “Bid > TakeProfit_Long_1”. I need to modify the orders only one time, when Bid price cross TakeProfit_Long_1. How can I proceed? Thank you!...
[Deleted]
Hi, ist there any possibility to delete history entries on the server..? ore any option that my investor doesn't see, which exact trades the ea did?
[Deleted]
Am intensely interested in how you approach conditions in for and while statements and would appreciate your comments and what you do. I fear that must do the dreaded nesting stuff like with if's eg: if(a<b) if(c<d) do something; instead of simply: if(a<b && c<d) do something; //am assuming here...
[Deleted]
i want to build my own machine, but i cant find the basics anywhere... how can i withdrow information from the market? how can i knwo the corrent rate, and candles.. i need a guide to integrate with the basics of getting info from the market. help will be most apriciated and sorry for my spelling ....