MQL4 and MetaTrader 4 - page 575

To post a new topic, please log in or register
Let me know how can I built a logic for  1. oscillator indicator (william % or force index)issue a buy signal when it comes from above a value to downside because logic like W%>80 or W%<-80 will not work.so what will be logic.like when it comes from above to level 80. &  2.Is it possible to input...
void PlaceOrder(int iSignal){   int iTicket;      if(iSignal == 1)   {      iTicket=OrderSend(Symbol(),OP_BUY,dLots,Ask,3,Bid-iStopLoss*Point,Ask+iTakeProfit*Point,"My First EA",iMagicNumber,0,Green);      if(iTicket>0){         if(OrderSelect(iTicket,SELECT_BY_TICKET,MODE_TRADES)) Print("BUY order...
Guys  There is some one called Mr.Gregory Mcivor  he is deceitful scam he got our E-mails from here and sent us E-mail offering to sell you EA for ECN scalper with very good result , well this is the E-mail Dear Trader, I got your email from MQL4 site. Did you got profitable EA for trading forex? I...
I want to place a Market Buy order and then pending orders (Buy Stop), since it is a ecn broker I have to use OrderModify with all orders  to add the stop loss.   The "Market orders", Stop Loss and TakeProfit is modified, and works well. But when I try to modify the Pending order it only modifies...
My ea enters an OP_BUYSTOP and an OP_ENDSTOP and assigns the “OrderSend(Symbol(),,,,,,)”(s)  to  int variables for short and long.  Can these orders be referenced to change the Stop Loss by the same variables once the price is hit and one of them is opened as a market order?
hi, there. i am newbies in writing mql4 expert advisor.. recently i'm writing about grid concept EA, however face some order management source code problems: 1) EA supposes to open only 4 orders, HOWEVER, at each tick, the EA is opening many and many same 4 orders.. 2) After an order is closed due...
  Pivot indicator (12   1 2)
This is my Pivot indicator. I'm sure you know very well the Pivots and its importance. The indicator calculates the daily pivot (the yesterday pivot) and draw it with the 3 Resistances and the 3 Supports. It use the Standard Pivot Formula: Pivot = (yesterday_high + yesterday_low + yesterday_close)/3...
Does anyone familiar with how to use MT4 code to define the 'current bar'? Many thx!!
hello    i have one EA to change it needed good but want open both order in market movement any one help us      
Hi, how can I place the middle of symbols exactly at the price given? So the stay where they should be even if the candle size is changed! The only way that I know are the arrows, but there aren't so many :(  Only the dash, and left- and right-label and -triangle. Regards, Gooly
hello    i want programmer to crate the EA to me in one IND   
Hi all, I need to know if is there a document that describe a relation  between pairs. For example when i Buy in EUR/USD i Sell in USD/CHF so i need to know if is there a related pairs with GBPUSD, USDJPY, AUDNZD, AUDUSD, and USDCAD
Since I have never used an EA before (not even for testing), I have a few questions about how EAs work for trading a system. Do you need to run an EA from your computer? Does your computer need to be on permanently?Can you upload your EA to your broker's server? Do all brokers offer this service?Can...
Hi there. I've some problem that I know some one on this forum can help me with.  I have a idé and some code to set an alarm.  Primery trigger: If cangle < iBands go to next trigger     secondary trigger: If the CCI is between -170 & -120 Trigger alarm (Buy)     First of all i dont know how to make...
When a new tick comes in does metatrader draws the indicators on the chart first or does it call the EA first?  I want to make sure that when my EA calls an indicator's property thru ObjectGet(), the object is already formed right after the tick comes in. So is the indicator updated right away with...
hi jagui ,   I want to develop the GUI that manage the MT 4 terminal how we can do it ? If you have  any idea then tell me ?can you provide the little running code that have the same functionality.  i want to develop the  little bit similar GUI that is shown at given url Please follow the Given...
Imagine the simple problem, I have £10,000 and I am only willing to lose 1% of that with the next trade. The next trade is on EURNZD, an XXX/NZD pair. If my stop loss is 100 pips, what is my lot size? I know the answer since I have calculated in the code below. But what I am wondering is why I have...
as I was looking for a more complete history to test my ea on(the history files I have now contain holes that are month's long) I saw that Mql4 has the smallest interval of minutes for history instead of a tick by tick history. is this true? if so, then my back testing results are going to be...
 How can I copy a file?  This does not work: #import "Kernel32.dll"int start() {  string Path = TerminalPath() +"\\experts\\";  CopyFileA (Path + "\\files\\xyz.txt", Path + "\\files\\xyz2.txt", true  );}  ERROR: 'CopyFileA' - function is not defined
Hello, I made this ea using Ea Builder online. It will work all day in stratergy tester on Ibfx. But it will not work when its on a live demo chart? I have seen it take a trade when i set the take profit true tab to false? But i need a take profit target? Can anyone help? Here is the code. Sorry if...
Dear Forex friend/Programmer- I am using a EA which is taking buy order when signal alert comes with arrow up and vice versa.... BUT my problem is that even if the order hits take profit or Stop loss ....the EA takes again the same order inwhich the arrow direction is there.. Can any...
Simply I want to devlop  only GUI in C#.net and passing as input to MT4 terminal to draw the indicator and send the order to exchange. How we can achieve this functionalities ? Here is  no issue of client and server communication  bcoz C# application and MT4 terminal are running on same machine. I...
  Placing Pending Orders (16   1 2)
With the code attached it doesn't open short pending orders ! and only open 1 pending order for long trades. I was trying to have 3 pending trades open Short/ Long each Entry price incremented  by 25pips. If you could let me know of any coding mistakes I have made or suggestions are appreciated....
  FileSeek? (3)
hello everyone, I can't seem to figure out how to Flile_Seek Specific Points. eg. I'll have a file like this: 1.5;0.56;5 2.2;0.66;8 0.3;0.75;5.2   and I want to Get the second line down, and third deliminated number across. (8) i take it it should look something like this (Error handleing not shown...
  demo vs live (6)
Hello MQL4 community, What are some major differences between testing EAs on demo vs live ? Thank you
Optimization - Is it different logic or does it just rank results = order by ie. expert properties > Optimized parameter > Balance or Profit Factor or Expected Payoff or Maximal drawdown or drawdown percent
Hi !  Is there a way to check - other than manually browse through the report - which was the period that contains the maximal drawdown ? It would be even better to get a list of the drawdowns, with dates ( maximal, second maximal, third, etc ).
I am working with an EA, using Smoothed Fisher Transform of RSI, developed by Vervoort. In the calculation I have met a problem, which I maybe has looked into so long that I am completely blinded. In the calculation of Rainbow Indicator (as part of the Fisher Transform), the following problem arised...
Is there any way to get the full absolute path of the expert folder using MLQ4? Alert(EAAbsolutePath());