Agent86
Added topic Why no bullish or bearish engulfing candles on Oanda MT4 charts ?
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
Agent86
Added topic functions and function calls
Hi I'm noob alert ! Backround subject: I'm learning about the changes since build 600+ after a long lapse in learning mql4 At best I was only intermediate beginner back then. Anyhow, specifically functions and function calls. First Question: ref
Agent86
Added topic '.' - semicolon expected - MetaEditor errors
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
Agent86
Added topic If error 130, shouldn't the ordersend fail ?
Hi error 130 invalid stops The 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 chart However, the trades tab shows no trades so I can't
Agent86
Added topic Code Base: failed parse codes
When I load my EA to practice account the journal has this line item 2014.08.25 17:26:01.212    Code Base: failed parse codes I can not figure out what this means. Please advise Thanks
Agent86
Added topic Where can I find out more info about MODE
Hi Question: Where can I find these subjects below defined in more detail ? I understand MODE_LOWER and MODE UPPER the best at least mostly. Backround of the question: I'm trying to learn more about: mode - Indicator line index. It can be any of the
Agent86
Added topic custom indicator fractals signal appears before the candle closes
Hi all I'm just playing around trying to learn custom indicator basics Subject regarding the fractals indicator: I noticed while the fractal indicator is on the chart the most recent arrow appears for a fractal, but the last most recent candle of the
Agent86
Added topic custom indicator why variable > 0 vs directl assignment
The for loop below v3[i] Is there any reason to create a conditional comparison instead of directly assigning v3[i] = val3; ? IE one vs the other below: for(int i=Bars-1; i>=0; i--) { val3=iMA(NULL,0,40,0,MODE_EMA,PRICE_CLOSE,i); v3[i] = val3; //
Agent86
Registered at MQL5.community
Agent86
Added topic custom indicator object location on the charts
Hi What function is used to move the custom indicator further away from the candle on the charts. For example: SetIndexArrow(0, 241); SetIndexStyle(0,DRAW_ARROW,STYLE_DOT,1,Blue); SetIndexBuffer(0, v1); SetIndexLabel(0,"Resistance"); This
Agent86
Added topic Oanda historic data not present
Hi Weekend coder here resuming my learning on MQL4 I started the metatrader 4 and was going to review some of my old EA's and start working on them again and noticed there is no historic data to work on any EA's Says i'm connected and the chart is
Agent86
Added topic true macd vs mt4 macd
Hi I know this was discussed before but I wanted to ask about the macd indicator included in mt4 I clearly see the indicator does not display the crosses at the same locations as the typical macd indicators in all other charts. I understand there
Agent86
Added topic Advise on MQL4 vs MQL5
Hi all I've read the new here: https://forum.mql4.com/59622 Question is: Quit a while ago I started learning MQL4 to about an intermediate noob level. Now that time as gone by I wondered should I continue to write code in MQL4 or just start learning
Agent86
Added topic Number Of Orders Expression Help maybe OrdersHistoryTotal ?
Hi gurus I'm trying to design code that would limit the number of trades per (time frame) I am confident with my knowledge of making time codes thanks to the gurus in the forums etc. I'm considering making some code and OrdersHistoryTotal to
Agent86
Added topic help with ordersend description
Hi coders, Regarding OrderSend and this documenatation https://docs.mql4.com/trading/OrderSend I see in many EA's and tutorials including the documentation what appears to be a declaration and initialization of the variable ticket=OrderSend I have
Agent86
Added topic Hello from weekend coder
Hi all Just checking back say hi. I've laps in my learning of mql and finally made the time study some more Anyhow,just stopping in to say Hi and hope I can contribute more to the forums Happy hacking
Agent86
Added topic How to refer to a particular time
I understand Time[] and iTime uses, however to refer to a particular time or time range does one simply use datetime ? https://docs.mql4.com/dateandtime/Hour Is that all there is to it ? Please advise Thanks
Agent86
Added topic Report says maximum drawdown, but the trades were 100% ? how is this possible
How does the report calculate the maximum drawdown if there were NO losses ? Lets say an EA shows 100% profitable trades, why is there a maximum drawdown showing a % and report when there was no losses ? Does it memorize if there was some drawdown on
Agent86
Added topic trying to make a tweezer bottom / top condition with + or - tolerance level
Hi all I need to create some sort of tolerance code to be + or - 2 or something similar ? Here is what I did so far bool tweezerbottoms = false ;          if (Bid < B && Low[ 2 ]*pips2points==Low[ 1
Agent86
Added topic SendOrder sl and tp advise
Hi gurus, Regarding the sl and tp, and taking into accoun this is altered for 3 or 5 digit brokers ticket= OrderSend ( Symbol (),OP_BUY,Lots,Ask, 3 *pips2points,Ask-StopLoss*pips2dbl,Ask+TakeProfit*pips2dbl, "Unfinished_POS_agent_1min" ,MagicNumber