Download MetaTrader 5

MQL4 and MetaTrader 4 - page 609

To post a new topic, please log in or register
I'm dealing with integers and I want to get the result of my calculation as simple double value, below my simple code which using int i, xH and xH to get my double Buffer[], When I test it, suppose that at certain location (i-xL)=26 and (xH-xL)=7, The result is only 3 not 3.714! What should I do to...
I have downloaded several EAs; none has ever made a trade. I have the smiley face. What did I miss?
hi, i wrote an EA. when test, it just do few trade but don't go on. please anyone have a look at it and let me know the mistake? thanks.
A quick question for anyone interested in answering. 1) Have you sometimes got slippage in your favour? That is, you have on occasion got your order executed at a price more favourable than you asked for? (Yes or No) 2) How many slippage points or pips do you usually allow for in your orders? 3)...
One area that is not clear in the book or documentation is what the return codes should be from init(), deinit() and start() under the condition of success and failure? Should we always return 0 from these?
Carl Lema
Doesn't that create an illusion of how the price is changing seeing as the window dimensions are the same?
My Broker doesn't support OrderCloseBy() and my current strategy adjusts its position size each bar. For example at 10am it may be +3 lots, at 11am it may be +4 lots and at 12noon it may be +2 lots. My problem is how to implement this as cleanly and cost effectively as possible. Based on the...
Carl Lema
Hello, I'm trying to calculate the angle of a trend. I've tried using the price difference in points as the height of the triangle formed and the number of periods as the base then finding the tangent inverse but since the height and the base are fundamentally measured in different units i feel my...
Hello All, Plz! help me regarding to subject. Actually I want to compare current price with price before 100 seconds, to check price volatility. Thnx! in advance.
Hey guys, This is my first stab at trying to program an indicator - could someone please verify for me that it is doing what I think it should be doing? It is supposed to calculate the slope of price over X amount of periods(rise: difference in last close and close X periods ago divided by run:...
Hi need a help on programming it. I am not so good in MQL.I have lack of basic knowledge in here. So need your help. Thanks Here is my program please correct me where is am wrong. //+------------------------------------------------------------------+ //|...
Carl Lema
Can someone please show me how to find the inverse tangent of a value. Thanks in advance
I think that is a error from backtester.
Dear Friends, may I ask you for help with a custom indicator? 1. I would need the value of the indicator displayed on the right axis - what should I do? 2. Is there a way how to change the color of the indicator line depending on the value? Eg. the line would be green and ONLY the parts where the...
Hi all, this is probably a stupid question but my broker in their infite wisdom has added an "i" at the end of each pairs symbol, eg : AUDUSDi and GBPUSDi . Problem is that this is preventing my ea's from placing trades as the server does not recognise the symbol. The ordersend function in the ea...
When you close out half of a postion does the rest of it retain the same ticket number and does the closed half of the position make an entry in the history pool showing a closed order with the same ticket number as the other half which is still open ? Reason I ask, I need to keep track of positions...
Before my EA works well, but 20 days it does not work anymore, do not buy, not sell whether the market is still volatile. someone help me see the EA need to fix faulty nowhere. Now : 2012-05-18.
forexparvenu
as i mentioned above, i wish to make ea with stochastic coding. the problem is how to add indicator code into ea ??
Hello, I've been testing out a new system that I made and I wanted to try it out among different brokers. However, it's a really big pain to set up the workspace over and over again. If I would like to put the same setup on another platform, I would have to open up 60 charts and 60 eas each time....
I'm sorry for my bad english * lets skip :P I using Martiangle system this code delete all pending order at > 01.00AM How to make some code so just close pending order at 01.00AM - 17.00PM with condition : 1. Close all BuyLimit if there is no Open Position for buy [Delete all OP_BUYLIMIT when there...
Please can someone help with a guide on how to import the previous day Open, Close, High and Low into excel, i tried using DDE but while it opened i noticed it only show the High, low, Close and Ask but dosen't show the open . Better still Can i get an indicator that shows on the chat this 4 list...
  Rounding issues (10)
Hello I try to find a way to eliminate the Tick from a given price without rounding. For example: 1.29346, I'd like to work with the figure 1.2934 However, whatever command, NormalizeDouble, MathRound, DoubleToStr seams to work according to rounding rules. In this case I receive a value 1.2935. My...
  Can u fix it? (10)
i have an EA its very good. giving 100% in 2 weeks. i use it on 2 pairs gbpusd m5 and eurusd H1, some time it close all trades in profit after that it does not open new trades again for 1 pair...i need to attach it ahain then i open trades .. please modify it. this is real really good if some make...
Trying to close a trade NZDJPY on Alpari MT4 and get the following message: Prohibited by FIFO rule Anybody know what that's about? Thanks.
Kindly help me creating two buffers TimeH[] and TimeH[] for each Period() as following: Taking into consideration that, DeltaT=Time[i+1] - Time[i]=Time[i+1] + Period()*60; where x the main parameter (in seconds) within the period starting from x=0 to x=Period()*60 so that, How can we use such index...
Dear all, I would like to try Jobs service, but when I opened a new job, the website didn't allow me to input the fields of budget and time required (even after I had entered all other fields). Does anybody know what's the problem? or where can I raise this question? Many thanks! tobw2011
properkhunt
I only have a micro account, so I frequently buy or sell many lots of 8. Is there a script that will open multiple lots of 8? Ideally I would like to open 10 or 20 at a time.