MQL4 and MetaTrader 4 - page 1286

To post a new topic, please log in or register
It seems every time i reference a library in an expert advisor or indicator, inputsare no longer shown for edit when putting it on the chart. And yes, i use #propertyshow_inputs . You guys know why ?
Hello, I would alter this script periodgen.mq4 'periodgen' to get a range of data based on the 2 dates? Where should I insert this "IF" test to cut data (generated by periodgen.mq4) - before the starting date dateStart and - after the ending date dateEnd Which datetime's variable should be...
Please find attached indicator and EA. Original thread for this system located here: https://www.mql5.com/en/forum/176710 This system trades a breakout (on the close) of the previous bar's highest high / lowest low readings over n-periods. Profitable and robust over all major pairs testing a number...
I wrote a small EA to find how. int start() {//---- double MACDCurrent,MACDPrevious; MACDCurrent = iMACD(NULL,0,5,13,1,PRICE_CLOSE,MODE_MAIN,0); MACDPrevious = iMACD(NULL,0,5,13,1,PRICE_CLOSE,MODE_MAIN,1); Print("MACDCurrent is " + MACDCurrent + " and MACDPrevious is " +...
I had many code program in mq4 file extension and want to compile all of them withbulk mass compile to ex4 in a time not one by one. Anybody how to do it ?
mean OP_BUYSTOP always stay at 4 order, if miss one of OP_BUYSTOP order, deleteand order again all pending order. no of OP_BUY have any guide to teach me. i am the begining. newbie ^^| thanks tytian
for example buy + buylimit totals in record and drop -1, how to execute? if(buy + buylimit totals > buy + buylimit totals && 0 < buy + buylimittotals) { execute>>> }
  Firts EA (1)
Can somebody help me with code? I'm writing an EA (my first) it can sell yet. I don't want to put stop loss ortrailing stop but i would like to put a buy order, opposite 50 pip distance fromsell. Thanks in advance.
Hello, Is anybody has an idea how to solve this problem? I have some customers that areusing MT4. I don't want to trade individial accounts. Some companies use MT3 they have a PLAMMas well, I just trade the master account once. But I will have 20+ customers using MT4.This will a problem for me....
  MQII Question (4)
I realize that this is not the correct site for MQII questions, but, I wasn't surewhere else to go to get support. I'm trying to create an expert which both closes part of an order and then movesit's SL to B/E at nearby levels. But, I'm running into the 10-second limitation.Is there any known...
I would need GBPUSD M1 data from January 31 (actually from February) 2007, excusivelyfrom IBFX, but they only store 1 month of M1. :( Anybody maybe using M1 charts a lot, and have the data on his PC? It would be agreat help for me. Both History Center's exported .csv and the .hst file in...
  EA Needed : Ride the MA. (37   1 2 3 4)
Dear fellow TSD Team members, I need an EA based on manual trading i currently test successfully. (Based on Eagle method found on FF website) Rules and indicators : TimeFrame H1, need to be tested with H4 and M30 too 1 SMA 100 1 SMA 9 1 RVI 100 1 CCI 14 Entry rules : LONG - When the 9 crosses above...
I'm using ObjectCreate with OBJ_TREND because it seems to be the only thing to draw a line from A to B,but it goes past B forever. Any way to just draw a finite line? Thank You
"The biggest secret about success is that there isn't any big secret aboutit, or if there is, then it's a secret from me, too. The idea of searching for some secret for trading success misses the point." Ed Seykota One of the characteristics of a complex system is that highly variable...
Hi... coming again need help and ask some question.. the scripts net yet finish delete the order, above script to execute!! how can do the scripts wait to finish and turn the next return above? example stoplevel=5, sell sellstoptotals 5 drop 1 to execute to delete sellstop,selllimit and buystop,...
i downloaded the pivot history from the web, modified it to show the high and lowof the last trading session but it doesnt behave properly, it creates an odd lineat the present time and doesnt continue into the future, help appreciated...
My EA has a problem identifying open orders correctly, and to test the logic I madea small program that checks if there is an open order and if so, is it buy or sell. The program is as follows: if (OrdersTotal()==1) { if (OrderType()==OP_BUY) Comment("Buy"); if (OrderType()==OP_SELL)...
Hello, I am using a custom indicator which works perfectly when added to a chart. It looksand operates normally. I am attempting to call it within my expert and it onlyreturns the number 2147483647. I have included the code I use to call the indicatorwithin the expert and the code of the indicator...
  need help.... (1)
Hi.. anyone have idea, close all the order and leave last one order stay? example order below buy profit, close all and stay last one 1, ticket 1111 lot 0.1 time 9.00 <close order 2, ticket 1112 lot 0.1 time 9.02 <close order 3, ticket 1113 lot 0.1 time 9.03 <close order 4, ticket 1114 lot 0...
Currently an EA has to be attached to a chart and the "start" method getstriggered for each ticket. How could I write an EA with it's own timer, and excutepiece of code at certain timeframe, for example, every second. Thanks!
how do i rename an object with scripting. i know its not ObjectSetText(), that puts a lable on the object, i am trying to rename objects that equal to the object color. thanks in advance
Hi everyone, Does any body here know any company or anyone that can write the code for my ForexStrategy for Expert Advisors? I NEEED IT URGENTLY! Plese let me know... John
I wonder which type of model(every tick, control points, open prices only) is morenearly to the real time result? Is it possible the EA gain profit in strategy testing& loss in real time prices?
Hello. In one articles it´s described the maximun numbers of indicators allowed in the folder is 100. In another post this numbers is set to 250. In another forum the number to watch is the size of the folder. In another forum the number is set to 400. My personal experience says 400...
Some brokers like IBFX have small daily bars when they start their servers Sundaynight. This screws up the daily range and other indicator calculations. Is therea SIMPLE workaround that MT4 developers can come up with to avoid this issue?
Hi i have a question for the strategy tester. When i use the strategy tester with my system, why do i get extraordinary returns?Is the data not accurate? Do other people have this problem? The historical datacannot be accurate, or am i not selecting a certain option. Please anyone tell me what i...
How to set my MA in EA with 'apply to' is 'previous indicators data' ? When I set MA indicator in the chart, its there. Thanks for your help.
Hi Guys , need your Help Basically i know alittle bit C++ language , but i am not sure how to write codein MQL . Well i want to write code to perform a task described below . Task : to place and "Order" , buy or sell of a "x" amount(LOt e.gone dollor), at "x" Time (like e. g place it at 10...
If anyone has any records as to what news releases move the markets and how much they move the markets it would be nice to have someone share this with everyone. I have enclosed what reasearch I have here but would like to know also what European News Reports move the currencies as well. Hope this...
Where can find the meaning of theat indexs like 0.0982862174 in SATL.mq4? 0.0982862174*Close[i+0] +0.0975682269*Close[i+1] +0.0961401078*Close[i+2] +0.0940230544*Close[i+3] ...............................