MQL4 and MetaTrader 4 - page 1402

  How to code?  (1)
How do I code the stochastic cross above the zero line of my custom indicator?
[Deleted]
Hi all, I am looking for help from someone who can code the following trading system: This trading system is an "always in the market" system: To signal a long trade: Short MA > Long MA, RSI > 50, and MACD Fast > MACD Signal To signal a short trade: Short MA < Long MA, RSI < 50, and MACD Fast < MACD...
Hi, I am trying to write a verys simple script that carries out an action on the order that you have selected. And by selected I mean the order that you have selected with the mouse and cursor. At the moment the only way i know how to do this is manually type in teh ticket number into my code and...
[Deleted]
I have search all through the MQL4 for topics on auto optimization and have found only one but all download links do not work. Can someone post a link to some sample coding that shows how to optimize an Ea on the fly while it is running without re starting the trading platform . Help is really
I am trying to use SummaryReport.mq4 from the article "How to Evaluate the Expert Testing Results" (https://www.mql5.com/en/articles/1403), but I get different results for absolute, max and relative drawdown... Most of the time they are zero when using SummaryReport.mq4, but are different in the...
[Deleted]
How do you guys reduce volatility when trading mean reversion, is it just through diversification? Most MR systems have big stoplosses.
[Deleted]
I want an EA for my MetaTrader where the indicator Bulls is used for my opening and closing logic. Is there a way to do this on my own? With the FSB? (I tried, desn't seem to work, even if compiling shows no errors) Through the MetaEditor? Thanks for all input, new at this as you can tell.
[Deleted]
Looking for programmer for EA in MQL. Strategy already implemented in TradeStation EasyLanguage
[Deleted]
i just started to learn froex trading plz i need you guys to help me or teach me how or give me materials that can help me learn how to study the froex trade plz,i need help.
[Deleted]
I'm looking for a StochMACD indicator for MT4 that I currently use in Aminbroker. The Amibroker code is; StochMACD=100*( MACD() -LLV(MACD(),15))/(HHV(MACD(),15)-LLV(MACD(),15)); Plot(StochMACD,"StochMACD",colorYellow,1); I'm not a programmer but it looks like it should be quite simple. Does anyone
this ea performs very well before 2009 with huge profit . it can work on any pairs chart .
hi, i d like to know if this kind of loop is testable or not : (or maybe this loop is just crappy? ) if(TP_ameliore==true && OrderSelect(ticket,SELECT_BY_TICKET)==true) if (Bid>(OrderOpenPrice()+takeprofit*Point) && OrderType()==OP_BUY) for(int i=0;i<=1000;i++)...
[Deleted]
In the context of a script's while( cond ) { do something when new data tick received by terminal } My question is how do you detect a new data tick/changed price data IF you were going to mess about with a loop inside a script eg, could sleep xx microsecs in between polling Close[0] for newer value...
[Deleted]
hi i have expert advisor realizing I 2000 pip on 3 day only and without any risk my forward test realizing 20% http://efxexp.mt4stats.com/ expert.fx@hotmail.com
I had originally built an EA that worked on a 1 min chart collecting pips between bollinger bands, based on a stochastic crossover match. The darn thing was constantly going into the red and generating more losses than wins, this was mostly due to the currency not bouncing off the bollingers,...
Hi! I get of MetaEditor such Report: "end_of_programm-unbalanced parenthesis" Help please remuve this fault. pansa
I am having problems with alerts being repeated every time I change the chart period or reload metatrader. I though of using globalvariables but can you store datetimes in global variables? if (iIchimoku(Symbol(), PERIOD_H4, 9, 26, 52, MODE_TENKANSEN, 0) > iIchimoku(Symbol(), PERIOD_H4, 9, 26, 52,...
  manage trade bug  (12   1 2)
This only seems to manage the trade when the EA is running by itself. If I have the same EA running in another chart, it doesn't work. Have I done something wrong in the loop or is it something to do with the spread meaning it doesn't actually work after 20pips profit?...
Hi all I am still hoping someone here has much knowledge of MQL4 and can please help me program this idea i'm working on a trading system that requires me to use 2indicators.. 1) I need Hull MA applied to Linear Regression 2)I need Smoothed Moving average Applied to Moving average ROlling Applied...
  Logic help  (22   1 2 3)
I've searched for ordermodify error 1 but it still hasn't helped. The system keeps giving me order modify error 1 but there seems to be no logical reason... if(OrderType()== OP_SELL && Bid < SOOP30)                   {...
[Deleted]
I know the steps when applying one MA to value of another. It would simply be (1) Drag the MA to the chart then (2) Drag the second MA to the chart and in "Apply To" select "First Indicator's Data"... But I am trying to apply a custom "Hull MA" (which is not a standard MT4 M/A) to value of a...
[Deleted]
Hello! I'm trying to make a master EA that disables the trading of the other EAs when some requeriments have been acomplished. But in MQL4 there isn't any function to stop or disable trading, so I'm trying to by-pass this limitation using dll/winuser32 or something... my idea is to automaticly...
I am running this piece of code at the beginning of start() in an indicator on a 1H chart to ensure that M5 data is available for calculations. If its not available from the broker then it should return and wait for the next tick. I find that for most currency pairs this prevents the system from...
[Deleted]
Hi. Recently I've discovered that if you have an template file named same as one EA when you do the backtest of the EA the template autoloads in the chart. Well, this works fine but the problem is that if you change the expert's properties (related to the indicators it uses) indicators' properties...
Hello. Does anyone know if there is a similar code for Interbank FX's Elliott Wave indicator. I believe the indicator was written by Patrick Nouvion but I can't open it in Meta Editor to change the values - I'm sure that's to keep his indicator proprietary but I believe I heard that there is a
[Deleted]
Hello my friends 1590 pips in two day expert.fx@hotmail.com om
  inavlid price  (5)
I get an invalid price error when the target inhere is set as 0.00000 ANy ideas why? A zero target should just be sent without a TP? int ticket = OrderSend ( Symbol ( ) , OP_SELL , Lots , Bid , NULL , SenkouStop , Target , DoubleToStr ( Period ( ) , 0 ) , 255 , 0 , CLR_NONE ) ;
[Deleted]
Can anyone tell me how can I know when a MT4 begins calculating data and switches to a timeframe ? I want to reset my tick counter every time MetaTrader switches to the next bar or time frame? thanks
[Deleted]
Hello! My name is Josef and i write from Austria!! I have the following problem for the first time in MT4: It leaves me no orders to more, that means I can integrate neither T / P nor can I manually close the open positions! If I turn left at the bottom of the "Journal", then says: investor size...
1) In EUR/USD M5 time frame can't get EUR/USD H1 highest and lowest data(the data is wrong data)? 2) In EUR/USD M5 time frame can't get USD/CHF H1 highest and lowest data (the data is wrong data)?