General - page 1891

I've been trying to turn the osma indicator into an ma indicator by turning the histogram into an ma line, and then also adding the option of making the osma-ma line sma, ema, smma,or lwma but my coding knowledge/experience is not enough. I've relized that it would have to be a separate window and...
Hi everyone, I am trying to get the readings of an H4 indicator through a H1 one. I appreciate the existence of MTF indicators, but think that there should be a more appropriate way to get the indicator readings at a different timeframe. I mean, something of the sort (this code does not do the work,...
  Need OSMA customized  (12   1 2)
I have a favor I need to ask. I am wanting my OSMA indicator configured to where when the bars are above zero they are lime green, but when they start decreasing they change to regular green. When the bars are below zero they are red and when they start to decrease they change to maroon. Can anyone
I don't know if it was posted before: http://championship.mql4.com/ Good luck! P7
Hi guys, I am working on promising EA, the problem is it required sleep function after loss trade and I dont know how to implement this. Any chance you can help with this. Thanks Aleks
I need some help: If I closed a order in a bar, then I need no operation in this bar any more. the next time for opening a position would be in the next bar.I wrote as fowling: OrderSelect(ticket, SELECT_BY_TICKET); if (OrderCloseTime()>Time[0]) return(0); but it doesnot work at all in back test,...
  Line labels  (9)
Is it possible to remove the line price labels out of the vertical scale on the right side of the chart and to still have the lines extend to the right side, or do you have to shorten the lines to the current price time.
Is there a way for an EA to know if it is running in a demo account or a real account? I can't seem to find anything about the type of account in this list of Account functions: * AccountBalance * AccountCredit * AccountCompany * AccountCurrency * AccountEquity *...
I have just recently begun using MT4 and getting the screen/setups organized. I want the charts to use Pacific timeline. Currently it shows a European timeframe (something like GMT+2hrs). How can I change that to use my local timeframe ?? How do I do that. Help appreciated. thx
I'm having a problem with MT4 (all brokers) none of them seem to be displaying my trade history, even after uninstall and delete of the directories
Hello, I'm hoping that someone here can point me in the right direction. I'm programming an indicator that is displayed in its own window, and I would like to add a label object to the indicator. I know that the chart window is 0, and that sub-windows open up starting at number 1. I can create the...
I am having problems with an error 130 on PENDING orders where the stop is close to the market price. However, I can take the same trade (for example Sell Stop, price=1.2792, stop=1.2809, take profit=1.2787, with current market price on the EURUSD of 1.2808) and it works just fine when executed...
Can the result of NormalizeDouble() be saved to a variable or do you have to normalize a double variable every time it is used in a comparison operation? Example: double a = 0.0002; a = NormalizeDouble(a,4); Can variable a now be used in multiple comparisons: b = //... c = //... if(a > b){...
Can an EA be writen to Buy a pair then sell when this pair when the current P/L of the account is at a certain $ amount?./... the pair with the EA does not have to be in profit.. just the account I cannot program myself. basicly what i would need in the program would be... .to buy a changable amount...
  OneDailyTrade EA  (146   1 2 3 4 5 ... 14 15)
Tired of worrying about your EA when you go to bed? Tired of whipsaws killing your EA? Tired of Trends killing your EA? Do you want a stable EA? You have come to the right place. Introducing OneDailyTrade EA. Inspired by an idea I had one day when I was looking at a Daily Chart. I notice on the
I was curious is anyone had an MACD that is designed like this? It shows the MACD as a histogram and the OSMA plotted as a histogram also but in a different color, but all the lines match up. Would it be possible for someone to code this? I think it is easier to read than most MACD's
Hi all, I need some help in programming a simple indicator. This is how it works: I have a few dates and the number of orders for each date, eg. 1st August - number of orders is 5 and for 2nd August the number of orders is 8. And I would like to have these numbers as a graph in separate window...
  No Connection  (3)
Since the update I cant run 2 or 3 met4's OK for a bit and then we get the no connection and it does not matter who's they are. May have one sbfx running and the other no connection same with alpari and nexxt. anyone have any answers. thanks Mart
  choose server?  (2)
I have two laptops. One of which when I open an account automatically offers me 'MIG demo' and the other 'metatrader'. Is there any way I can pick as one offer news headlines and one produces a 3 bar weekend and the other doesn't. Also the latter issue plays havoc with my pivots on Mondays.
Hi Guys, I have got this code and i am having problem on Trailing Stop. Its not EA is not activating TS...Please help Here is the code.... if(TrailingStop>0 && subTotalTrade()>0){ total = OrdersTotal(); for(cnt=0;cnt<total;cnt++) { OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);...
Hi every body, I've used the SendOrder function in my EA, my problem is, in spot markets and currencies, it works correctly, but in futures market, when the program reach to SendOrder Syntax, an error would occur, "wrong Input Parameter" I looked at the New Order window, and found that, in spot...
  EA needed  (8)
Was wondering if someone could make me an EA? This is what I am looking for. Based on 30 minute chart. 5 EMA and 12 EMA. I would like an EA that would be based on for when getting a long signal, 5 crosses the 12 and the RSI has to be above the 50% line. These crosses do not have to happen at...
[Deleted]
I have developed a few expert advisors and cannot seem to find a way to change the looks of the arrows displayed on my chart when my expert shows to buy or sell at a given price. The arrow that are currently being displayed are tiny and hard to see without studying the chart thoroughly. How might I...
I was comparing some results from an EA that I've back tested and forward tested. The results were relatively similar except for some of the times. This is on a H4 chart. On the backtest, if I ignore orders being closed because of stoploss or takeprofit, the rest of the orders occur at 4hr time...
How to add hour to hour trade on an ea?
Hello everyone, Please test this EA using the ADX crossover. This was to be used on higher time frames: 4H, Daily, Weekly only..... But please test and make needed adjustments and post findings and BEST settings for these time frames and any others tested. Please try to test mainly on FORWARD...
  variable passing  (6)
Hi, does anyone know if you can pass variables between functions, other than using the GlobalVariable stuff? I would like a function to return 8 variables. Thanks Mark
Slawa, I know this has been discussed before.... but it would be very helpful to have the RAY feature for a Trendline work in both directions... LEFT and RIGHT. Any chance this could happen? -charliev