MQL4 and MetaTrader 4 - page 903

To post a new topic, please log in or register
I know that it is quite possible (and often beneficial) to emulate the "Open Bars" testing mode. All you need is something like this: if (Bars = lastBar) return(0);lastBar = Bars; How about control points?
Hello freinds, As I enter the following lines: Comment ("\n"," 1 PROFIT in USD = ", NUMP1," PROFIT LOCKED = ", LP1, "\n"," 2 PROFIT in USD = ", NUMP2," PROFIT LOCKED = ", LP2, "\n"," 3 PROFIT in USD = ", NUMP3," PROFIT LOCKED = ", LP3,...
Hello i use a script for buy and sell this script safe also the actual view with WindowScreenShot now i like to change the template before i safe the screenshot save actual Screen as Template Load Template WindowScreenShot --> is clear Load saved template so my question is, how i can safe and load a...
hello ! ok, so my problem when i run my ea is the missing gaps in data in the alpari + fxpro, somtimes weeks and even whole months are missing - as many people have mentioned before. However i have bloomberg M1, m5 etc data, which i think is pretty good quality which is downloaded from their excel...
hello every one... i am testing the code, for closing order like this: for(int pos = OrdersTotal()-1; pos >= 0 ; pos--)if ( OrderSelect(pos, SELECT_BY_POS) ){if (OrderType() == OP_BUY &&  ma1>ma2 ){           OrderClose(OrderTicket(), OrderLots(),MarketInfo(OrderSymbol(), MODE_BID), 5, Red );} but...
Thanks for your help!!
double highest,lowest = 0.0;datetime starttime,endtime;bool run,order;int start(){   starttime = StrToTime("12:00");   endtime = StrToTime("14:15");if(currenttime >= endtime && !run)   {      run = true;      highest = Close[iHighest(NULL,PERIOD_M15,MODE_CLOSE,9,0)];      lowest = Close[iLowest(NULL...
Hy Guys.... I have the EA HighGainNoRisk V.2 but when im becktesting it coms ""This EA can not used for testing,because it includes the script of Economic Forecast""" What is the problem ???
  hi sir (2)
i m using one EA but i want to do something modification in this EA plz help me sir thanks vicky
hi all, i want to write 1 ea close order when it profit 2 pips, not take profit . thanks all. sorry for my english,
Thanks for taking time to read and reply to my question: . If I am interested in evaluating the bollinger band 'width' (width would be defined as the value in pips between the outer bands). . I would like to put a pre-condition in the EA that says: . If the top bollinger band (value in price or...
Hi: I currently have a working EA that is showing promise. It takes advantage of price swings in overbought/oversold conditions. It has simple logic (I think it should be simple) but is in need of observation and tweaking. . I am exploring options and am considering inviting someone to help. I...
I was trying to do the Flat Market indicator Formula, but there is an error in the formula and I don't know where, the result is that it's not showing any value. The code is bellow. Can you help me out with this?...
I have tried to search and post on this site but have been unsuccessful at finding what I need: Here is my dilemma: I need a script or DLL(neither of which I have any knowledge of) to create a signal for my EA. The use of globalvariable will not work for me because I am running something on a demo...
Hello all. I just ventured into making my trading more efficient buy having scripts to buy and sell, calculating stop size based on a stoploss i define on the chart and calculate the lot size based on how much im willing to risk $ amount. However, i was really looking forward to be able to execute...
I've been trying to use the Stealth Forex System but can't import the indicators as the MetaTrader isn't showing up in my program files. In order for me to import the indicators I have to go to 'My Computer' - 'C Drive' - 'Program Files' - and then the MetaTrader is supposed to show up here. I've...
hi, I ´m working with orders at stop an many orders don´t execute because of error 4107. can anybody explain it for me?. i `m ataching the EA //| Pablo 10.mq4 |//| Copyright © 2008, CLAM. |//|...
hello every one.. can the ea trade in certain time? example: monday, trade at time 15.00-18.00 tuersday, trade at time 10.00-14.00, 18.00-21.00 wed, trade at time 10.00-11.30, 13.30-17.00, 20.00-22.00 thu, trade all time friday, non trade.. can it? thx..
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...
Hello, I had my computer reformated and for some strange reason candle clock (showing lengh of candle formation in min, hours) is missing from all my charts. I am trying to figure out how can I applay it again into my chart, no success. Can anyone help with it?? Thank you
I dont know why I cant figure this out right now but if someone could help me straighten my code out i would appreciate it. I am trying to calculate Lot size by the amount of pips inbetween my future SL which is the previous bar high and current bid/ask price. Here is what I have and is giving me...
Who can create for me EA with a ready strategy basing on the bollinger bands? Szuirad
If I am running multiple instances of MetaTrader and one is logged into a demo and the other a live account, can I use an EA on the demo to set a globalvariable that my live account EA will recognize? I thought this might work as they are running from the same terminal on the computer???? Any...
HI can anyone help with this. I have an ea that gets a price value from a horizontal line or trendline. However i have the code as follows but it will not pick up either value. If i remove the Objectgetvaluebyshift it will pick up the Horizontal line price and vice versa. But i need it to recognise...
Hello All, Wondering if there are scripts that can be added to the MetaTrader 4 Expert Advisor Parameters (Target Price and Stop Loss) at the input? It seems that this Moving Average at Expert Advisor can Auto Trade but not able to add Target Price and Stop Loss upon after auto buy/sell? When...
Hi all, now you can be notified of any event in your EA through TWITTER. I have written a Windows EXE program which you can call (see below) inside your EA when events occur. Let me know if you are interested and we can discuss more on the features and price. Cheers! string twitterEXE =...
hi, im trying to find out what indicators etc the smart phone has but cant find anything on any forum about this or the difference between an iphone/web trader/black berry or smart phone ahhhh HELP
Is there a "simple" way to compute, bar-by-bar, the average of a buffer? My custom indicator returns a double value for every bar on the chart. Starting with the first bar on the left, I'd like to average all the data in the buffer for the amount of bars, e.g. on the first bar, return an average...
I am not sure if this is the right place to ask this, but I gotta start somewhere.. I am running MT4 and an EA on a VPS. Problem is that sometimes when I re-login to the VPS there are 2 sessions active and I have to choose 1. I have to reboot the VPS to fix it. Yesterday this was a problem...