MQL4 and MetaTrader 4 - page 74

Is there any way to set up an EA based on an indicator that I don't have the code for. The indicator draws lines on the chart and has dots for buy and sell signals. Is there anyway I can make an EA that buys or sells on those dots
Is there any function which returns the overall average win amount, average loss amount, and winning/losing trade fraction? I'm thinking about implementing a kelly subroutine to handle position sizing and would like to make it fully automatic (to be turned on by user after sufficient history is...
bool sendImage ( string symbol, string tf) { string fileName = StringConcatenate (symbol, "_" ,tf, ".jpg" ); Print ( "FILENAME = " + symbol); string fileType= "image/jpg" ; int res; // To receive the operation execution result char data[]; // Data array to send POST requests
//+------------------------------------------------------------------+ //| BINARY MT2 TETSING.mq4 | //| Forex trading | //| https://youtube.com |
my strategy is based on the envelope indicator : -for a buy order a candle has to close above the envelope line -for a sell order the candle has to close below the envelope line The EA seems to enter trades based on those rules but whenever a candle closes above the envelope line and the EA enters a
Hello . i got myself stuck in a very silly issue : I've deployed a table with edits . I do the following for each edit : readonly = true selectable = false On creation Then when i update the table i've got some cells that represent switches with the "Windings" font . The initial idea was to have
Hello dear friends I want to check in EA if a position of a specific currency is open or not!but i dont know how should i do that! For example, I want only one position to be opened at the same time on currencies that have USD on one side, for example, if a position is already open on the EURUSD
Hello everyone! I am making a panel of buttons to open operations, so far I have no problem; My need for help is that I would like each order that I open to add the loss value for the Stop loss line and the same in the take profit, this next to its operation number, see drawing
I wrote an article and submitted it for publishing on this MT4 site over six months ago. Since that time is has just sat there with the "ready for publishing" sign, but no messages or responses from admin. I think that it is the admin which is responsible for finally publishing it, and there is...
[Deleted]
I'm pretty sure it's in points, but I want to make absolutely certain! Thanks!! :)
  Experiment  (2769   1 2 3 4 5 ... 276 277)
Dear forum users. I decided to discuss the results of my experiment on the organization of real automatic trading with one order without SL and TP on EUR/USD currency pair on TF M1 on cent account with a minimum lot 0.01, by analyzing 1000 last minute bars of history that I started today - 23.04.21
Please help if you know what's the problem. My EA opens trades incorrectly, it opens the sell trade first instead of the buy which is the moving average. I want to open the buy trade first (Moving average) then if it goes opposite (10 Pips) direction open the sell, vice versa. void OpenTrade() {
Morning all I have an EA which is designed to send a confirmation email when an order is executed. The 'orderselect' (Not to be confused with the MQL4 OrderSelect(...) function) function is called in the OnTick() section of the EA. Just to be clear, I am aware as to the implication of the OnTick()
Hello. I cannot receive test email notification. Is there a setting related to recepient side or there is a problem with mt4
hallow gays, when I switch from one timeframe to another timeframe the data of the indicator changes, are there any potential reasons
i have a problem on error 130 its on BTCUSD everuthing are okay exept the error about the tp and sl, i tried to up these but nothing change pls help me
Hi All, My strategy tester is showing a loss on a long trade which I bought 25.15 units of at 5360.63 and sold at 5404.44 which should have given a profit of ~ 1101. Instead I got a loss of 70. Can anyone please explain this to me? Some additional info: I'm using MT4 on Windows supplied by FPMarkets
Hi, can anyone advise how to make code to sort floating point variables as simple as this example for integers? Thanks #define nl "\n" int OnInit () { EventSetMillisecondTimer ( 500 ); return ( INIT_SUCCEEDED ); } void OnDeinit ( const int reason) { EventKillTimer (); } void OnTimer ()
  LBR + 1000 pips in one week!  (323   1 2 3 4 5 ... 32 33)
Hi! I made oscilator according to LBR rules from VT, and signal indicator to it. It looks proftable for first look, but mabye U will help to improve this idea. Regards Kale
Has anyone already coded url encoder in MQL4, that could be paired to the PHP urldecode()?
Hello, There is a coder who is developing for me an EA. I backtested the EA on 2 different MT4 version, one version is sponsored by IC Markets, and one version is sponsored by Vantage. When I run the backtest while logged in to a IC Market demo account on either one of that 2 MT4 versions I have a
I have an EA which is supposed to place a pending order with the push of a button, & an execution price at the open of the current bar. The button functions works perfectly, the parameters within the pending order work flawlessly, the dynamic pricing displayed in button which changed on every tick
Hi all, I'm trying to introduce some logic using GetLastError(), and having trouble with it. Here's the bit of code I'm working with right now if ( GetLastError () == 0 ) PlaySound ( "news.wav" ); else Print ( "Open order error: " + errortext( GetLastError ())); PlaySound ( "expert.wav" ); My order
For years, I was reading out BB into a double and worked perfectly fine using a hard coded timeframe (i.e Not using Period() as an argument), this gave me the chance to change timeframes without changing my strategy: period: 5 ; double UpperBand = iBands ( Symbol (), period, 20 , 2 , 0 , PRICE_CLOSE
[Deleted]
Hello everyone, I don't understand why this simple indicator cause so much lag... I have 150'000 bars on chart and loading this indicator literally freeze my mt4 forcing me to restart it, I can't understand why if I load the default MA indicator that does not happen. Here's the code: int OnCalculate
Hi friends, Today I was going to update my code and when I used the styler feature in MQL4, I suddenly understood that with the new update, using the styler feature causes some undesirable changes with the ELSE IF structure. I want to have the previous structure of the ELSE IF not the new one. I
Hi all! I'm trying to use the PlaySound() function, and my EA is grabbing the sound files from my MT4 install's data folder. There are somehow a couple of files in that folder, but the ones I want are in the MT4 application folder in Program Files (x86). How can I get my EA to look in the latter
I'm trying to solve an issue with an order, but my broker won't help me without a trade ID. Is there anyway for me to access one without the mobile app? Is there anything I can do? Or are all apple users just fcked
The program should use volume that is greater than average and support and resistance levels to determine buying and selling opportunities. If the volume is greater than average and the price breaks out either up or down from the support or resistance level, the program should place a trade with a
Hi, im trying to code a variable that will be the index of a candle at a time to start scanning the candle for various price points. int LHSearchcandle = iBarShift(_Symbol,_Period,StrToTime("09:00")),true); int HLSearchcandle = iBarShift(_Symbol,_Period,StrToTime("09:00")),true); the above code