MQL4 and MetaTrader 4 - page 1371

Hi everybody, I am little lost with how mql4 draw a histogram on chart window. The main thing I want to do is get the previous candle's Heiken Ashi values. Since it is a histogram, there must not be any High, Low, Open, Close values, but some histogram values. Where does the histogram values draw...
[Deleted]
  Count OrderTypes  (8)
Does someone know how to code the following Idea: If we have a hedged Situation (f.e.: 10 Sell and 10 Buy) AND a specific proft target is reached --> Close all orders My Problem is that i dont know how to count the amoung of open trades. UPDATE: I have a first idea but it doenst work fine. The EA...
[Deleted]
and iStoc.. for example. I believe it is kind of library but I don't find it. if it is than,Lately, I made my custom indicator, Is it possible to add it to the library(with the adjustment: " iMyIndicator"). Thanks all.
hi all how can i store a bool in global variable? thanks
[Deleted]
each time optimizer does next testing loop with a changed combination of extern values Does it start EA fresh from init()? ie, asif first time EA ran... iow, each new testing loop init() called?
[Deleted]
The challenges facing currency trading are being answered by only one software in this planet. The Ivy-Bot. The Ivy-Bot trading Robot is built to make money no matter whatever way the market turns. While many of the other systems were blowing out accounts, the Ivy-Bot team was actively adjusting...
Hi, I currently am able to develop EAs and indicators using pure MQL4 language only. May I ask what other languages can my MQL4 programs benefit from? For example, if I can program in C++, I can make my MQL4 code call the mentioned language and do amazing stuff like: encryption, http connection, web...
Hi guys! Please tell me how I can convert these lines into marks(preferrably down and/or up arrows) positioned at the current bar at price = HighE, LowE or CloseE.. Thanks in advanced!! =) void Draw() { name_8="High Estimate"; ObjectCreate(name_8,OBJ_HLINE,0,D'2000.11.01 10:30',HighE);...
[Deleted]
where am I going wrong? I open up a trade and immediately after I open a few stop orders. For some reason the code is not doing that. //open main trade SellOrder(Lots,Bid); //open supporting stop orders for(i=5;i>=0; i--)...
[Deleted]
Hello, anybody can help me? This is my very first code. I know absolutly nothing in c/c++ or mql4. I have this error: end_of_programme' - ending bracket '}' expected Thank's pgforex...
[Deleted]
I am a VT trader user & am fooling with some auto trading stuff that VT Trader can't use. I need CCI indicator with Over Bought line Oversold Line & center/0 point line. The standard one only has center line. New to MT4 .
I want to Draw an Arrow only when when the following swing is identified: If a low of 34 bar is identified then start searching for a 13 bar high (Starting From the previous 34 low) If yes then start searching for an 8 low bar (Starting From the previous 13 high) once the above is identified draw...
[Deleted]
Hello, this is my first post. A greeting all and congratulations for the good work of the forum. I have a small problem. I built the Bollinger Bandwidth indicator + SMA (50); it works, but the moving average has a poor stability. What is the error in the code? You can help me? Thank you in advance....
[Deleted]
Hi there Just introducing my expert advisor Here is how it works We have decided to lease the ea for 1k for 6 months The ea will return good profit and has the best sucess rate i have seen The ea wont trade every day nor every week but when it trades it trades to win We have been working on the ea
[Deleted]
Hey, I have a series of custom indicatios all of which have the IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS) set which displays on my chart to 5 decimal places however if I call the indicator in my EA using iCustom I only get a result returned to 4 decimal places??? I can use Doubletostr which...
[Deleted]
Could someone help point me to an article/code that can help me accomplish the following: I use Magicnumber to search history of orders so that I can remove pending trades. The downside is that each day(I set this up every evening for the asian/european session), I have to manually go into my EA and
[Deleted]
I'm not sure if it's my EA coding that is at fault or if there is something else I need to be aware of... In my EA, I open an order and save the OrderTicket number into a variable. I use this OrderTicket to display the OrderProfit and monitor progress. When I close the order and try to select...
[Deleted]
//+------------------------------------------------------------------ + //| // //| // How to draw a horizontal line with the lowest price within a given minutes ? // and follow the PRICE change ?...
I see many beginners making the same mistakes over and over again. And so I've decided to post my tips to help out the newbies here. If you are a pro, then you have a choice to go read something else. Anyway, my tip #1 is to always have a game plan in forex. This means you got to have a REALISTIC
[Deleted]
I am trading a Demo account .10 lot size Gold/USD Margin is over 2000% and I still am getting closed out automatically. Live trading is off. Any input would help
[Deleted]
Hello everyone, This is a question for those who have experience using the MT4 Mobile Trading SE (Smartphone Edition). I am looking into buying a smartphone - primarily for using with MT4, therefore needs to be under Windows Mobile. I would like to hear some feedback from experienced users. With the...
Can anyone help me to set up a sound alert for when market moves through a particular moving average ?Your help will be greatly appreciated as I am tired of sitting in front of the computer for 5-6 hours
HI does anyone have a Ea that works on a single ma ( or ema ) and the price ...so that i can be short if the price is under the ma and long if it's viceversa? thanks
[Deleted]
Hi, so I've been working on this EA and trying to test it but I've run into a problem. When I set lots to a high number, instead of buying/ selling the volume I am putting into the volume field, it just buys/sells 5.0 lots every time. Am I doing something wrong, is there some other way to enter this...
Hi all, Is anybody know why the attached file not working? In short I'm trying to use a dinamic MA_Period. And it's working in more simple codes below. "test.mq4" (attached) is not working, please pay attention to "int MA_Period = perd(y);" line. The dinamic MA Period is working in the codes below:...
If you are smart or a newbie, insist on MT4 and never migrate to MT5. Like the old saying, why change something that have always work? Change is not always good and not always beneficial. With the premises above, I question the NFA. NFA are obviously looking after themselves and are on the side of...
[Deleted]
Hello, Is it possible transfer the Elliot Wave objects from MT5 (they are standard on the platform) into MT4? denrus
[Deleted]
Hi everyone When I test my ea and i have 3 moving averages and all are in the red color-default... How to make every iMa after testing in different color??? I know I can change it after test on the chart but its tiring...
Hello Any coder here able to build an indicator shows the mid of each lunar month on MetaTrader chart? Thanx in advance
Within my EA I want to partially close all open trades (eg close 50% of all open trades). The problem is how to do it! If I do a for (i = 0; i < OrdersTotal(); i++) and then select orders by position when I close an order the system will open a new trade with the balance of the lots from the old...