MQL4 and MetaTrader 4 - page 1149

[Deleted]
For example, if the last order type is to close an order or opened a order,etc, thanks.
  Orders Closed  (2)
hello i need a script For close my All open positions when All open Positions P/L is +x $, But I Want it have very fast speed, insomuch i have some time over 500 Open positions and Must Close all on some seconds, it must when the open positions P/L is +x $,turn off the all Expert adviser and close...
[Deleted]
Hi I am new to this and have just downloaded and installed metatrader 4. I have set up a demo account but I cant seem to place any trades, also when ever I open a new chart i would like it to open in my settings how do i make this the default. Is there anywhere I can get some help with these...
trying to convert some easy language code to mql4, anyone know if AbsValue(Error) in easy language would be the same as mathabs(Error); in mql4 ?
hi I am not able to find a pivot indicator that will allow me to do what I want. I hope someone can point me in the right direction. I wish to be able to put daily, weekly and monthly pivot points on my charts, but not have the S + R lines, or at least be able to colour them so that they are not...
Dear Forum Members, I am trying to call iFractalEx.ex4 indicator from another indicator so that it alerts me when it returns a down arrow (indicating a Sell) when there's a fractal and rsi value is greater than 50; and also alert me for a buy when there's a fractal and rsi value is less than 50; I...
[Deleted]
How come in the Strategy Tester, the code below: double the_high, the_low;the_high = round(iHigh(symbol, PERIOD_W1, 0));Print("high: ", the_high);the_low = round(iLow(symbol, PERIOD_W1, 0));Print("low: ", the_low);double round(double val) {int decimal_precision = 5;return(NormalizeDouble(val,...
Hi! I have a pivot points file to the meta trader and i want to know according to what time setting the pivot were defined. I tried meta editor but i couldn't understand that from there. I attached the file. I want to know according to which time zone and which start and end time the pivots were...
[Deleted]
  Not Connected  (1)
I have just signed in to Meta Trader 4 and the candlestick chart i was hoping to set up says "Waiting for Update". Then I notice at bottom left it says "No Connection".I am connected or you would not receive this !Any help very much appreciated.Thank Yousaltydog
  No waiting for next 'tick'?  (13   1 2)
Hi All, Does anybody know how to code an EA, custom indicator etc; to be able to run a sequence without having to wait for the next 'tick' in start()? In its' simplest form let's say a horizontal line was added to a chart - grab the line and move it up and down the chart and produce an instant...
[Deleted]
Especially in forex currency online trading self discipline means being able to say no to a tempting short term profit for the sake of a much more profitable long-term gains. You need to have a clear vision of the goals you want to achieve. Instant gratification is not always the best choice, at
I don't quite understand it's mean when we talk about indiater like solar wind or other indicater,anybody can explain it to me,thx a lot~
[Deleted]
I am still somewhat new as a programmer of MQL4. Even though they usually are not profitable, I have wanted to make an Oscillator type EA. One in which is always in the market either Long or Short. I decided to give it a try. As I expected it doesn't work, or make any trades. I KNOW it needs more
Got one of my EAs' going last night but I just can't seem to make enough profit! Bars intest 3867992 Ticks modelled 37210107 Modellingquality 25.00% Mismatched chartserrors 0 Initial deposit 10000.00 Total net profit -3442.41 Gross profit 3070.79 Grossloss...
I know I cannot Delete Pending orders unless they're not within the Freeze-Level. I know I cannot Close Market orders unless they're not within the Freeze-Level. I Also know that I Can close market orders at Break-Even after a certain period of time. I find allot of conflicting information about...
Please somebody tell me why my EA does not open position when there is an active trade by another EA running on the platform. Even when all the conditions for it to open position are met. please, I need your help.
Hi, I need to obtain the distance from the last fractal , but I seem this code doesn’t work. Could you help me? Thank you! int start() { int u, Distance ; for(u=Bars; u>0; u--) if (iFractals(NULL,NULL,MODE_LOWER,u)>0) { Distance = BARS - u ; break ; } Print(Distance); }
Sry but the search funktion on this hp is - hmmmm - not so good if i start the search with the keyword "order" i always get "An error occurred. Please try again later" i'm the only one with search problems??
[Deleted]
Hi, I dont know the meaning and usage of MODE_TICKVALUE AND MODE_TICKSIZE, the docuemnt said as following: MODE_TICKVALUE16Tick value in the deposit currency.MODE_TICKSIZE17Tick size in points. and sometimes, MODE_TICKVALUE will be used to calculate the lots size in EA, such as...
[Deleted]
My broker doesn't allow setting expiration dates on pending orders unfortunately (Error 147). Is there an alternative to remove an order at x minutes if it didn't get filled? I was thinking I could do the following: Use OrderSend with no expiration date setSleep for x minutes after sending order...
Hello! I write and EA thet opens multiple buys and sell. It opens new buy every time last opened buy is x pips in profit and vice versa for sell. Problem I have is that when there are important news the EA can't open trades fast enough and sometimes there is 10-20 pips difference between trades. My...
I want to take in my EA signals from an indicator. How can I do that? Thank you for your help.
[Deleted]
I try to use these code to manage my money,but an problem is I don't know how to descirbe my initital money(priniciple) .my method is cotrol lot :use priniciple 's maximumrisk+3 times about of profit(or loss)'s maximunrisk as lot,it profit>0,it will enlarge,otherwise,the vise. double...
l found this EA on this site which l so much like,(sell_buy agr _EA)these l would like that you modify with some other features like:- 1.not just buy/sell routine as the present EA was,But it should study the trend,if its a buy, buy trade or buy, sell trade or sell sell trade or sell buy trade...
[Deleted]
//+------------------------------------------------------------------+ //| send_pending.mq4 | //| Copyright © 2004, MetaQuotes Software Corp. | //| http://www.metaquotes.net/ |...
Hello, I have an EA that not work on Oanda MT4, but it is working on Alpari, EA is on at the platform etc.. so it must work. Any idea? many many thanks. #property copyright "Tous droits réservés, Nicolas Tuffier (2011)" #property link "http://www.furyweb.fr/forex/" #import "stdlib.ex4"...
Hi, I am trying to test a strategy in SP500 index. after openning the first order (sell) the tester is closing the possition Immediately and close the testing session. where can i get the reason for this action? in the log file I see the following: 11:24:54 2001.12.12 00:00 MarketLib _SP500,Daily:...
[Deleted]
Hi all, I want to build a dll to send indicators values and prices to excel, process them in excell and send back orders to mt4 (I want short response rates). My question is related to the big concept of sending receiving data. Should I use c++ to build the dll? Many posts mention that c++ works...
[Deleted]
Hello MQL Community. I am a really new user of the MetaTrader and MQL4. I have been following the tutorial when I came across this problem. Data provided by Pastebin.com - Download Raw //+------------------------------------------------------------------+ //|...
[Deleted]
Hello, Iam new in programing EA, i need help in order to verify my EA According to EA which i build on :EAB site web http://sufx.core.t3-ism.net/ExpertAdvisorBuilder/ EA open buy if indicator above 0.5 and closeopenbuy below 0.5 line EA open sell if indicator is below and close after close buy...