OrderCommission() is negative or 0, but never +positive value right? double True_Profit = OrderProfit()+OrderSwap()+OrderCommission(); current_balance += True_Profit; this is correct?
Hi to all community, i'm a new member of big Forex world, in the last month i've been searching through the network about some strategy and i've learned that there a lot of them and i don't know which one to apply on demo account. I'd like to know which is the simpliest but effective strategy which...
Hi, I need to read The base currency . So I would like to read only first 3 chars of current Symbol() and paste it to the other string parameter in MQL4 code. For example if current Symbol() is EURUSD I need to read only EUR value (first 3 characters from left). Has anybody any idea how to resolve
Dear 'Forumites', I've been backtesting this indicator called Symphonie_Extreme_Cycle_Indikator2 or Cycle identifier. And I noticed a very unique form of diversion that happens very rarely. I wonder if someone out there could help to modify the indicator so that it draws trendlines at these...
Is there such a tool to move my stop to BE at a given price ? I would ultimately like a line i can set like the take profit line, if price hits it stop is moved to entry price .......... can anyone help me out? cheers onis
I downloaded MQL4 demo account. The symbol list is very limited and doesn't include the EUR/USD. There's a tab for the EUR/USD below but when I click on it it only says "Waiting for update". Please advise how to get the EUR/USD for the demo account.
Hello @all, im looking to use a renko chart and want to run an expert on this chart. as far i understood, renko is running on an offline chart, this chart will be updated with every tick by the periode converter function with a normal 1M chart.. so now i want to use an EA on this chart, my...
[Deleted]
Hi guys, I´ve programmed a very simple indicator. It should return the value a, which is previously defined. Here it is: //+------------------------------------------------------------------+//| EaTestEa.mq4 |//| Copyright...
[Deleted]
hi all, Does anyone know of a way to program an EA to calculate the maximum or current drawdown in your trading account balance or equity? ie what your current ACCOUNT_EQUITY is relative to your 'account peak equity'. if there is no built in way to do this, could you trawl your order history pool...
Hi all, as you know, renko chart depended on price changes and is independent from Time. The Renkocharts are constructed as follows: the close price of the current period compared with minimal and maximal prices of the previous. In this thread you give the renko chart ea. Today i want to make some...
I run my developed EA from laptop. problom is when internet disconnected the EA placing order again and all trailing stops collapsed. How to solve this issues? Is there any method to avoid re orders when EA restatrs?
[Deleted]
Very good, as I can modify this code so that only data download me a week ago? //+------------------------------------------------------------------+//| output_history.mq4...
Hi forum, I have no idea why this script works sometimes and sometimes it doesn't. If I use it on NZDUSD H1 it looks fine but if I use it on EURUSD there are a lot of lines missing. Also when I change timeframes there a many lines missing. Additionally JPY-pairs cause some trouble. I have three
Is it normal when compiling an EA while its on a live chart that all the arrows and dotted lines showing closed orders all delete? thx.
[Deleted]
i have question my mt4 stop moving it is connected but looks like is not connected
[Deleted]
hi, folks I'm really impressed with the deep knowledge expressed in the forum my qustion is about error 4108 that kills my trade. i get the order ticket by orderslect and then issue the ordererdelete function to kill a pending sellstop order. most of the times i get the 4108 error, now is this ea...
Greetings! Recently joined this forum and am glad to see activity here. I have to modify a sample code, in an Expert Advisor article posted at mql5, link given below. Very recently have I started mql4 coding and still very much learning. Is there an mql4 version of this code. I am facing...
I'm looking cross between Money Flow Index: iMFI(Symbol(),0,2,0) and On Balance Volumen: iOBV(Symbol(),0,PRICE_CLOSE,0) only if (iMFI == 0 || iMFI == 100) please check the example: Here the template clic thanks for any idea
Hi, I have coded an indicator that runs perfectly. Now I have written a script that loops though the variables and calls this indicator (several thousand times): double toOpti = iCustom(sym,tf, "myIndi",var1,var2,var3,var4,3,0); While running the script (= looping: for(var1.. for(var2..)) once and a...
I just finished my EA and have tested it in back test it a couple of days ago but then I did everything the same and it gave 1.000.000 $ different in result. I used the same unmodified EA. I used the same parameters or setting. I used the same symbol, time frame and back test length. My EA only...
[Deleted]
Hey guys, i have a very simple problem and it makes me crazy that i cant solve it. I wrote a small EA which should Modify the Oder every 10 pips to a new SL of 20 pips. But it always says: "invalid ticket for OrderModify function". Here is the code: OrderSend(Symbol(),OP_BUY,0.01,Bid,10,Bid-0.002...
[Deleted]
Hi, In my fisrt EA that I am writing, I am checking some conditions from indicators in 1D, 4H and 1H. All the indicators are written on its respective time frame. The problem that I am having is that, when using test strategy, I check the conditions to place a sell/buy order, and it does not work....
[Deleted]
Is there an event for dragging orders from the Trade or Account History Tab onto the chart? I would like to be able to select an open order from the Trade tab and have an ea use the ordernumber I selected in the tradetab for custom code.
Hi, I tried history centre on mt4, where i don't get for 1 year history for 1 min tick chart, showing only 1 month. i like to test my strategy with 1 min tick chart. can anyone has idea to get history for 1 min tick chart from instaforex. Advance Thanks.
Hi, I was wondering if there is a limit of amount of graphical objects that are present on a chart. My EA is creating arrows to show Entries and Exits of trades so it is esier for me to later analize those. Is there a limit for those, I have 11 pairs running at the same time. Also my second question...
Hello World! ;) I wish to let my Pivot Point (PP) indicator display a preview of tomorrows' PPs. Neatest label is in my view provided by OBJ_ARROW_LEFT_PRICE. The Problem is, that object type is anchored by time (and price). I wonder whether there is a way to align the display to the right corner?...
hi every one i have an EA which works completely OK when i run in in demo environment it is the same when i run back testing. it works great with back test but in real it does not delete pending orders when it should have you encountered such problem so far?
Dear All, I have experience in MQL4 programming for more than 2 years. Today I loaded my EA to USDCHF,M30 Chart and after 4 hours it stopped working although I see the smiley face. I searched in the log file I didn't find any Alert like Zero division or log like uninit. it is just disappeared. Can...
Hello guys i wonder why when i try to attach an indicator from the "navigator" tab i get such problem: https://charts.mql5.com/7/679/usdjpy-h1-octa-markets-inc.png Here is an example with stoch, but it gives me the same errors with every indicators. Anyway, if i choose the stoch from indicator...

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.