I have not written anything in a long time and noticed no ea folder anymore. I read about a roaming folder so I'm assuming it's something I have to learn about. Just wondering how and where to copy ea's that I wrote in the past so I can make them...
HiI have 2 buffers exactly the same except one is LOWER_MODE and the other is UPPER_MODEAlow() works fine while Bhigh() creates Meta Editor errors'B' - some operator expected ABCDtrade.mq4 116 ...
I'm confused about what I should be readingMql4 custom indicator properties vs Mql5 custom indicator properties. When creating a custom indicator on mql4 it does indeed insert the OnInit() and OnCalculate() functionsFor example: From MQL5 -...
Can I do this ? I want all of this || all of thatif((Alow()!=0 && Bhigh()!=0 && Bhigh() - Alow() >= minABrange*pips2dbl) || (Ahigh()!=0 && Blow()!=0 && Ahigh() - Blow() >= minABrange*pips2dbl))I mean will this...
I don't know if this is good,bad or uglyI'm finally to the point where I can actually create an EA that does
what I want so now I'm back testing and really don't know what to make
of my testing.NOTE:I know martingale features are risky and...
for(int i = OrdersTotal()-1; i >= 0 ; i--)IMO it seems to miss the latest order everytime wouldn't it ? If OrdersTotal() were 4 lets say(4-1)=3 so the (i) would be 3 and the selected order would be -1 of the OrdersTotal or even...
Hi allPlease forgive the long SRC codeDisregard most of these functions and variables they are not used and just stuff I wrote for learning.My Maclosetrade() function is not closeing trades when using Close[1] condition. However it does close when...
I usually do no have problems with this but recently MY EA's testing will not go back far enough in history.Any idea why EA's randomly seem to disregard the EA date use settings ?
Martingale function causing - error 134(not enough money)However, there is enough money. I tried increasing the expert properties deposit amount which had no effectI thought perhaps the loop was taking too long to find a LotSizeSo I removed the...
Is this not legal ? ticket = OrderSend(Symbol(),OP_BUY,martingale(),Ask,3*pips2points,Ask-(StopLoss*pips2dbl),Ask+(TakeProfit*pips2dbl),NULL,MagicNumber,0,Green);The return value of the martingale() function will be a doublePlease advise
I do not know why I cannot OrdersClose()I understand the parameters which seem clearly defined in the documentationI am not getting any errors and believe the condition to close the orders are coded correctly.I have moved the function call around,...
I get this warning for OrderClose()return value of 'OrderClose' should be checked
void macdclosetrade()
{
double faster=iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,1);//MODE_MAIN
double slower=iMACD(NULL,0...
Hihttps://docs.mql4.com/customind/indicatorcountedHow does IndicatorCounted() know which indicator, if there are more then 1 launched on the chart; and what if they have different array sizes ? Will IndicatorCounted() handle this automatically for...
Won't test experts anymore as of today 9-25-14Tester: Cannot load Experts\Cannot open file 'C:\Program Files (x86)\OANDA - MetaTrader\MQL4\Experts\Daily Rat.ex4' [2]Any EA I try that were previously working are not able to load now.Please advise
Hi,I'm using Oanda with MT4 and I noticed there are little to NO bullish / bearish engulfing candles on the charts of any time frame.My engulfing code would not find any so I wanted to know why (well it did find a lone and rare engulfing on daily...
HiI'm noob alert !Backround subject:I'm learning about the changes since build 600+ after a long lapse in learning mql4At best I was only intermediate beginner back then.Anyhow, specifically functions and function calls.First Question:ref:https...
I have not done any code for a while, but I restarted my EA's and was going to work on some ideas. The EA's did not have errors in the past but now they do. All of the Meta Editor error seem to be from the 3 || 5 digit adjustment code and are as...
Hierror 130 invalid stopsThe order goes through. Is that normal or should the order just fail ? I have trades showing in account history that still seem to be running as indicated on the chartHowever, the trades tab shows no trades so I can't close...
When I load my EA to practice account the journal has this line item2014.08.25 17:26:01.212 Code Base: failed parse codesI can not figure out what this means.Please adviseThanks