Download MetaTrader 5

MQL4 and MetaTrader 4 - page 963

To post a new topic, please log in or register
Other than using Print statements, or writing a file, are there any EA debugging tools? Particularly, can we set breakpoints, step through code and interactively examine variables?
I've been busy battling the HeurEngine.Packed.Themida.RGa infection which has been propagating through my system like crazy. I picked it up of an EA that I downloaded from the MQL4 website, most likely from the jMasterRSX AE including files that are named RSX*.
It is possible to have a programe that will be identify chart( chart parttern) before forming and after forming and also that will be recognising candlestics and naming them as it in www.fxdd.com under tools. thanks in advance.
Take a price, for example 1.4322 (For most pairs) or 121.97 (for Yen Pairs). How do you write a function with two inputs of price that returns price values to the nearest zero? Example: 1.4322 as 1.4320 (realize the last digit is zero) and 121.97 to 122.00. I used this function, but it did not...
Modified a pivot point indicator to round up the value to give a better value at the nearest zero. Just my share, if anybody is looking 4 it. Gives a better pivot point rather just a random number from acalculation because key levels usually end with a zero or two zeros.This indicator gives you just...
I recently joined this group & am programmer myself; not able to find function to create a simple window and display "Hello" in that newly created window. So my simple question here is, How do I create a simple popup window using MQL4? Thanks, - Fellow trader/developer
Hi Everyone! I am trying to create a script that will produce the ticket number given the nth sequence number of a long or short position (in the current open trades). When I put BuyPositionTicket(10), I want it to return the 10th buy position that was opened. While when I put in...
Feed the hungry children in Egypt In Egypt, many children hungry and homeless and wretched suffering So we decided to help them and feed them from hunger we all must help them and stand by them you can allso help them By donating to the organization and we give them food you should do that yes you...
Hi all, I am trying to create the following crossover check between EMA30 and EMA10 and get to long or short accordingly but unfortunately i am getting bad results such as : entering to the if statements even if EMA10 < EMA30 (both are global doubles) using Build 225 with Digits = 5 in the demo...
I want to capture the highest and lowest values of indicator (nor price) for given period of time. I tried to do this using iHighest in this way: High[iHighest(NULL,0,SSB,P1,P2)] where double SSB=iIchimoku(NULL, 0, 7, 22, 44, MODE_SENKOUSPANB, 0); This doesn't work so what I should do? thanks
I have an indicator that draws a box around the working hours candles of a chart. It needs to reset itself every hour between the hours of 1900 and 0600. How could I do this with some code? Do I have to simply run the delete objects code every hour and the start function will simply redraw...
I payed for this EA, installed and have had my PC on more than a week. No trade happened at all !! In the meantime, another PC of mine with other EA are gaining (or loosing), so at least you know they working for you. The programmer did a good advert on his web, even promising "money back guarantee"...
else bool found = false; for(int k=OrdersHistoryTotal()-1;k>=0;k--) { if((OrderSelect(k,SELECT_BY_POS,MODE_HISTORY))&&(OrderMagicNumber()==MagicNumber150000)) { found = true; break; } } if(found == false) { for(k=OrdersTotal()-1;k>=0;k--) {...
Do I see proper that in MT5 again there will be no easy ticket to enter a trade and choose Stoploss and or Take Profit by mere Pips?? Entering StopLoss/TakeProfit by price is too confusing for me, I have made numerous mistakes. Especially with the 5 digit brokers. So at the moment I have 2 options:...
Being relatively new here and searching through various forums to learn about Forex Trading, I make certain observations; - There seems to be a high turnover of people coming and going, possibly because they try a bit, lose some money and move on. - For some people, the challenge is in programming...
  help on EA (1)
pls can anybody help me on this strategy by put it in an EA? This is the strategy. I want the EA to be calculating the first to the fiveth candlestic closing and divided them by five. This is how it will be placing order. If the result is higher than the present price its should place buy and if...
hi, i'm very new to ea's i have a very simple system in mind, but i need help to put it in place. keep in mind i use a 5 minute line chart, not bar or candlesticks. all that i want to do is set up an ea that buys long when the moving average 10 crosses the moving average 30, and sells in the reverse...
I am very new to this EA stuff, but very intrigued. I've tried to build an EA that buys when the RIS pops above 30 and then closes that position when RSI, after it exceeds 70, breaks down below 70. And i'm trying to get it to sell when the RSI breaks below 70 and then close the position when the...
  held on adx (1)
please i will like how to know how to code adx indicator in expert advisor. Am not after the plus or minus am only after the adx style i.e using it for strong and weak rend. When i coded it in my expert advisor it didn not place order. Please help me out.
Hi, Sry looks like my previous message didnt show up. I am looking for the Intraday Momentum Indicator for MT4. So far found it on Metastock and VTtrader, but not luck for MT4 ( I am not advertising, I love MT4) The code in VTtrader is: IMI_diff:= C - O;IMI_UpSum:= if(Smoothing=0, mov(if(IMI_diff>0...
Hi All Frankly I cant code to save my life, am more of an EXCEL person, so am looking for a pre-made script from a kind person. I currently have an indicator to dump tick data to CSV, and EXCEL to do the strategy testing. Now I need a way to get the buy and sell orders back to MT4. Could someone...
As I am not an EA programmer but getting better, I just would like to know if its possible to make the EA change the settings of the order like TP or SL so when you have an order with tp for 25, you can change it to 0 in your EA and EA modifies the order to make TP 0. Is this possible? Does anybody...
How to get the tree last values of indicator Zig zag, last high or last low etc.
int init(){}int deinit(){}int BarsCount=0;bool openlong()   {//Write open LONG TRADE conditions here.         }   bool openshort()   {//Write open SHORT TRADE conditions here.      }bool closelong()   {//Write close LONG TRADE conditions here.      }bool closeshort()   {//Write close SHORT TRADE...
Hi, I am currently learning to make EA, and I was wondering how can moving average be inserted in to another indicator like the picture I uploaded. With the platform you can insert it simply by dragging MA file from the navigator menu in to the other indicator. So my question is how can make an EA...
I am only posting again since I felt that my first post was not that great and I cant delete the other post. What approach would be best for counting: n pips in height (H to L)? Would iLowest and iHighest handle finding the low and high for preceding n bars? How can I count pips up/down for n bars?
I try to find highest and lowest price during the last 3 months with following code double highestprice, lowestprice; highestprice=High[iHighest(NULL,PERIOD_D1,MODE_HIGH,90,1)]; lowestprice=Low[iLowest(NULL,PERIOD_D1,MODE_LOW,90,1)]; It works fine if chart window is D1 but gives wrong results if...
If someone can tell me how link several platform via one ea? tks I look to link several platform via one ea or is it possible to add several ea to a chart ? Tks a lot patrick
Hi,all .. I tried to run a very simple script in MT4, but here is always error 4106. code: //+------------------------------------------------------------------+ //| S_Test01.mq4 | //| Copyright ?2009, MetaQuotes Software...
1...956957958959960961962963964965966967968969970...1249