MQL4 and MetaTrader 4 - page 857

To post a new topic, please log in or register
Hello everyone. I decided to get an EA and found one i like at www.superfxrobot.com. I don't know much about EAs so I asked around and people told me it quite good and they show real and demo accounts. What are your opinions on this EA? Is it really good? I need your help before I buy it. Thank you...
The following code moved stoploss to breakeven. It sets a global variable in doing so, then to remember that stoploss has moved to breakeven on that particular trade. The code works when i have only one trade open, it will store the global variable and all functions work as they should in my ea. But...
hi seriors, i m new here, can anybody tell me if there is free ea available around here that can make alarm when parabolic sar change the direction? if no can anyone buile this simple ea, i would be very grateful to you guys. regards, Amar
Hi, I am currently developing a calculator.But that i will need mt4 data in excel. Well i know that basics of excel data fatching with DDE server and formulas like Quote: =MT4|bid!EURUSD Instead of "bid", you can also put: ask, open, close, high, low & volume But this shows daily data range.Does...
could anyone help me please .... thank you ...
problem solved!!
Hey folks, I am developing an EA which calls up two custom indicators(that i am attaching with this post), but every time i test it in the strategy tester mt4 just hangs - this does not happen with other EAs that I have tested. Is there any way to incorporate the indicator code into the EA itself,...
Are there any examples that show how to access indicators from a DLL?
I would very much appreciate some help in understanding how to work out MT4 profit/loss amounts. Lets just say my daily trading goal is to achieve $200 and I am trading on GBP/USD How do I work out lot amounts and how many pips I need? Look forward to any repsonses
  code plz (3)
hi all . can you help me plz
I am using neurosolutions. But I don't have any idea for using Neurosolutions dlls in mql4. I approciate any helps or dll wrappers file from this forum members.
Hello, I programmed a simple EA and need the values out of the Custome Indicator. I dont know how to get those values from the Custome Indicator into the EA so I calculate them in EA programm too. I started MT4 twice and compared the print() in both windows and they seemed not to be the same. The...
Can someone please help me with a code that can enable an ea to execute one trade per currency pair per day without constraining chart period to PERIOD_D1 and using "if(Volume[0] > 1) return(0);".
Hi Coders! Is it possible to protect the EA to prevent changing the period of the chart? My first opinion is the following code in the deinit() function: int deinit(){int ret=MessageBox("Remove EA?", "Question", MB_YESNO|MB_ICONQUESTION|MB_DEFBUTTON2);if(ret==IDYES){   Print("Deinit -...
Hi! So I am using what's below for buying or selling. It's a little messy because I am still experimenting, but I was wondering if anyone knew a way to program it so every time ma - ma2 is greater then 0 this condition occurs, then resets and doesn't check again until ma - ma2 is less then 0? If I...
Dear all Below shown is an extract of my code. There are two questions I can't solve: 1. when I compile the program, an error message occured: ' Y ' - variable not defined (i.e. the sentense under Close Order Block). However, what I want to do is, assign 0 value to Y after close of order. 2....
If I have an indicator that has 3 different values for entry. How can i code entry Buy/Sell for each value with a stop on a buy 1 pip below the previous candles low for a Buy, and 1 pip above the previous candle plus spread for a sell. The trade would close on the indication of a signal in the...
Looking at the error code reference table I see 4 different error codes that all have to do with an invalid price/quote. I'm wondering what the difference is between codes 129 (Invalid price), 135 (Price changed), 136 (Off quotes), 138 (Requote) as they seem to all imply there's something wrong with...
I will appreciate if someone could help with adding alert to this indicator. The indicator draws many colored lines, am focusing in alert when the price touch any of the (2upper red lines) or (the 2lower green lines). Please help, i need it badly.
Hi! How does one get this back so that it will display three trades rather than just one? Is there an adjustment that will let it show an arbitrary number of trades (say 5 or 6)? Not sure how I messed this up... Help is greatly appreciated! :) - John
How to store the bid and ask price of the last 60 seconds in an array and to use them? Thanks!
Hi I was wondering can someone quicly outline these: 1) PRICE_CLOSE 2) PRICE_OPEN 3) PRICE_TYPICAL Thanks
Dear all I've made the following code: //---- ObjectDelete("TERMNAME2"); ObjectCreate("TERMNAME2", OBJ_LABEL, 0, 0, 0); ObjectSet ("TERMNAME2", OBJPROP_BACK, back); ObjectSet ("TERMNAME2", OBJPROP_CORNER, corner); ObjectSet ("TERMNAME2", OBJPROP_XDISTANCE, xdis + 520);...
Q1: If my EA opens buy position 3times(ex, #1 1.2222, #2 1.2101, #3 1.1987), I want my EA to figure out the average price of all my opening position(must be 1.2103) Can I get the average figure of all my opening positions by MQL4? Q2: Can I emulate that trailing stop only works for the...
looking for a coder to make not suse if it would be a indicator or ea that will set buy, sell, ring alerts according to levels set for indicators .
Hi, is it possible to access the metatrader server from eg. activtrades, alpair, ... via JAVA ? I am looking for a direct connection for snding order signals via java e.g. MT4Connection mt4=new Mt4Connection("IP",Port,Username,Password); not the solution to send a message via java -> dll -> terminal...
Hello, I am a "newbie" to programming and am enjoying learning, even though it is MT4 stuff. I have made an EA to work off my indicator and trade plan and would like to get the trade comment to include the pair so I can sort easily and see which pairs work well and those that don't. This is the line...
hi guys, I'm trying to figure my way out of this programing tough.Maybe some differant eye with more experience could see what I did wrong on this script. I wanted to create a ea that would trade in both ways and I actually encounters a major problem. it's not doing what it is supposed to. here is...
Is there a way in MQL4 to copy and paste objects like 'trend lines', 'arrows', 'Text'? I've tried double-clicking on the object and then pressing Ctrl+c, but that doesn't seem to do anything because Ctrl+v doesn't paste anything. Right-clicking on the object, there's no choice to Copy or Paste.
i m newbie for mql4. i need help from seniors. i want to insert and remove the chart template files (tpl) in Expert advisor I dont know how? Please give code for this Thanks in advance regards Suman