Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1055

To post a new topic, please log in or register
Hi I cant seem to set the Fibo levels once I draw it using code. I am on Version 4 Build 224 ObjectCreate ("MyFibo", OBJ_FIBO,0,left, bottom, right,top) ObjectSet("MyFibo",OBJPROP_FIBOLEVELS,4); The above 2 lines work fine. The below lines for setting the Level and Description do absolutely nothing...
as the subject says, i need a script that will place a trade at a certain time... can this be done with scripts? or do i need to program it into an ea...
I hate looking over a backtests data with the close times and prices on seperate rows. Is there a way to save a backtest to look just like a forward test?
I'm getting order modify errors on this, not sure why - any ideas?    //steppedtrail   int FirstTP = 10;   int SecondTP = 25;   int ThirdTP = 50;   int FourthTP = 100;   int FifthTP = 200;   int SixthTP = 300;   if (usingsteppedTrail==true) {TradeTargetPrice=SixthTP;}      if...
  Bans (5)
jordank was banned for spam.
Is there a way to find the timeframe selected on a chart? I want to only execute code if the timeframe is on the 1 hr chart.
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...
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.
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...
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...
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,...
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
Simone Ambrogio
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
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....
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...
  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...
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...
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?
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...
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
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...