Under the new mql5 system for referencing indicator values, you must create a global array, indicator handles, copy the buffer, and set the array as series. If i'm trying to reference indicator values across 12 currency pairs , must I do this
In conducting some walk forward optimizations i'm looking for an efficient yet easy objective function to dictate which settings were the "best". By default MT4 gives you, Profit, Profit Factor, DD$, Expected Payoff, DD%, and Total Trades
The Below Indicator has a bug I've been working on for a few days. When you attach it to a chart, Buf_1[] is not drawn (on any bars below bar 0), but it starts drawing from candle 0 once you attach it to a chart. Interestingly enough, if you attach
In the heiken Ashi loop below, why do they differentiate the array that stores high and low data based on if the candle was bullish or bearish? Why wouldn't they always just have high and low data in the same array? Attached the full version if need
I was running a 3 day optimization and while my platform was in the middle of this optimization, I made some changes to my program and compiled it. Would the Optimizations from that point on use the newly compiled settings or the old settings? I
I've been developing systems in MQL4 for about a year now and seem to run into the same types of problems when developing and testing systems. After I form a hypothesis, write the program and test out the system, I analyze the results, come up with
I'm trying to write data to a file but it keeps writing it over the old data, i'm using the file seek function but it doesn't seem to like me, is their something small i'm doing wrong? int start() { if(Hour() == 17 && hit == true) {
I want something to happen every morning at 16:00 market watch. Using if(Hour() == 16 && Minute == 00 && Seconds = 00) is risky because if you don't get a tick at that second, it will never turn true so I use: if(Hour() == 16
How can I go back and check at what time my last order was closed and use that info on wheather I should proceed with my buy signal ? OrderSelect (cnt, SELECT_BY_POS,): if(TimeCurrent() - OrderCloseTime() > timecheck) { Continue; } This doesn't
Different Brokers have Different quotes for EURUSD, such as EUR/USD, EUR.USD, and EURUSD2. So trying to use the market info function in the following way..... maxlots = MarketInfo ("EURUSD",MODE_MAXLOT); won't return the value if you're
Running a strategy test on " Open Prices Only " and using: Print(">> ", Time[0], " ", Open[0], " ", High[0], " ", Low[0], " ", Close[0]); Returns the same value for the Open, High
I've searched for ordermodify error 1 but it still hasn't helped. The system keeps giving me order modify error 1 but there seems to be no logical reason... if ( OrderType ( ) = = OP_SELL & & Bid < SOOP30 )
I'm trying to run an optimization to see which is the best currency pair for trading, here is what I have thus far: extern int currency = 1; if(currency ==1) { plugcu = "EURUSD"; } if(currency ==2) { plugcu = "USDJPY"; }
Any help would be appreciated: if(stopLoss >0) { dollarrisk= equitypercent*AccountEquity(); riskperpip=dollarrisk/stopLoss; lots=riskperpip/10; } else { dollarrisk= equitypercent*AccountEquity(); riskperpip=dollarrisk/ATR2; ------------------->
I'm trying to take the Keltner_Channel strategy below and utilize its bands in an EA but I'm having trouble with being able to reference the individual bands (like you can do with the bollinger bands) in mql4. So far I've tried, " KeltnerP
Hey Guys, new member, been writing in MQL4 for a few weeks know and have a quick question: Originally started my code on a 4 digit broker and for TP calculation have ACCTTP = Ask + ( take profit * point) (take profit = 100) switch to 5 digit broker