MQL4 and MetaTrader 4 - page 1115

I have spent hours searching for code samples showing how to retrieve a single value from MySQL. All samples are returning complete rows. They work. But I want to do qualified retrivals like "Select xxx from table1 where yyy equals zzz". Tried a few variations but could not get it working
[Deleted]
Could someone please help because I am planning to switch to windows7. TIA
[Deleted]
I tried to buy a lot of size 4.024 . I got an error because my broker will only allow lots of in increments of .10 If I were to buy a lot size of 4.024 how can I make sure I it will automatically round to 4.000 or if I were to buy a lot size in my EA of size 4.386, it would round to 4.40. what...
Is my understanding correct that someone could compile a different language within a general purpose IDE (Integrated Development Environment)? Example compiling Mql4 from Note-Pad++, I think it'll be a matter of setting the path and checking error messages in windows shell...But I'm not sure if it's
[Deleted]
Hello, I am newbie, and I dont know about programing, I take a e.a. that close every order in loss. I only need that this e.a. do this every xxx minutes, not every time, only each xxx minutes (for example 120 minutes). //+------------------------------------------------------------------+ //|...
Hi I'm writing an expert that runs on M2 off line chart. Now I'm trying to recall a double from M3 off line chart, but it doesn't work. I would expect to write the following iCustom(NULL,PERIOD_M3,"Pippo",0,0) but I don't find "PERIOD_M3" in the choice window. How can I solve? Thank you!
Hello all, I don't seem to be able to get the overlaycharts indicator to work? I've added other indicators with no problems but when I try to add the overlay to a chart nothing happens. I've tried changing colors and values etc. but still nothing? Has anyone else had this problem with perhaps a...
The problem for me is that i don't know what was last order MagicNumber. - I need to check open price of the last order even when I close and start again computer. If I know what was the magic number, than I could use this code... int OPrice; for(int...
[Deleted]
Ok so just recently managed to get pip data recording with the currency pair EUR/USD with excel 2007 on a workbook i had prepared from MT4 using DDE. I am having some difficulty though as i am trying to formulize the pip data first by totalling it per hour as thats the time frame im looking at, but
As you know, new is well forgotten old! So, while leafing through my archive, I came across a rather curious principle of trade management. And this principle applies to almost any trading system. Of course it must be at least marginally profitable, and it must have periods of account growth
Hi, Experts, Can this EA result be real? Will any broker allow it to be used without doing something to make it lose?
Hi, im trying to check for realtime profit levels during trade. Here is my code it gives profit after trade close. for(int i=0;i<OrdersTotal();i++) { if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)==false) break; iTotalTrades = OrdersTotal(); if (OrderType()==OP_BUY) {Profit=Bid-OrderOpenPrice();} if
Ive been a client with this broker for some time and pretty happy.. until now. They decided to replace 'instant' orders with 'market' orders.. whats the difference you ask? Well an instant order allows you to preset all of your order parameters (stoploss, takeprofit) and send that order using the...
[Deleted]
I have been working on this simple EA to get the hang of the programming language. It's not intended to be super profitable but more of a get rich slowly scheme while I suplement it with my trading expertise. My problem is that i can't get the trailing stop to be executed even when I set...
[Deleted]
Does the AccountBalance() function show the current equity balance in real time? For example, lets say I have 1 ea running and currently it is making a profit of 100.00 and lets say the opening balance in the account before the ea ran was 500.00. Will the AccountBalance() function show a value of...
[Deleted]
Hi I'm trying to create an indicator that shows the difference between the current (or last bar) OSMA value, and the maximum OSMA value over the last 5 bars. So far I've got the following: #property indicator_separate_window #property indicator_buffers 2 #property indicator_color1 Yellow #property...
Hi, The subject line pretty well covers it: I am trying to figure out how to calculate the absolute Angle/Slope of the actual 'Line' of Line Charts as opposed to the CandleSticks or Bar charts: both in real time on every tick as well as being able to specify the number of ticks or to calculate the...
[Deleted]
hello every one i'm enterested in mostafa belkhyate and i hear that he is using center of gravity and the timing indicator recently i dicoverd that he was using something called (( gausian filter ))) can any one help me and bring me this (( gausian filter )) and...
Hi You All Been working on a code where the Trailing Stop is not working. The code is built so that it will SELL only. The liquidation of positions is by trailing stop, or by a Moving Average cross, which ever occurs first. But the Traing Stop (TrailStop) is not recognized. Code is attached, but...
[Deleted]
  Hedge grid EA  (1)
I'm looking for simple Hedge grid Ea to open lots on both sides of the 1st grid level.No indicators required.Put 2 opposite pending orders at grid level 2. This level to be located on each side of level 1.When market moves to grid level 2, either above or below level 1, close the other level 2 which...
Hi all, I've found out that one of my EAs cannot put High[] and Low[] values into an assigned variable which is also a double typed array. I've taken out that coding and rewrote a very simple program to test it again with the source code as follows: //--- Input parameters//--- Global...
[Deleted]
Guys, Could someone tell me how i can cut down first 15 minutes of data in the daily candles. Help someone. Regards
[Deleted]
Hello, I'm trying to set my MACD/OsMA this way : But with MT4 I only get this: I want to set the MACD and the signal as a line and the OsMA as needles. Is this possible with MT4? (I used another software before and so I'm a newbie in MT4) Thanks. bimbes
[Deleted]
hi,sorry for my english I have put this russian robot on mt4 youtradefx(I have a real account) with demo account it work well with microlot:0.01lot,with the same"setting than demo" it doesn't work no trade,please how to change than it will work well? my setting is on eur/usd ;0.01lot exponentlot:1...
[Deleted]
i cant understand about that indicator can you explain about that indicator sir.....?
[Deleted]
Is possible to open and read existing file (txt or csv) saved on my ftp server using MQL4 syntax ? If YES please for any example, how to do it.
My questions are: 1/. Where can I find when each markets are opened/closed? 2/. How to recognize the break-even on every trade using MQL4?
Hi, I have a few questions about the ZigZag indicator : How many bar it is repainting in maximum? What does the variables ExtDepth ExtDeviation ExtBackstep exactly mean? Thank you very much
just a small error to fix and then I can keep working on this project. error is wrong parameter count I feel kinda rusty on this programming //+------------------------------------------------------------------+ //| Ordering Trades.mq4 | //|