Forum

I cannot get my head around this logic.

I'm trying to code some logic that can do the following : Please look at the picture attached. I'm trying with code like this below, but it doesn't work correctly. datetime now; //+------------------------------------------------------------------+ //| Expert deinitialization function

Template for an EA

Does anyone have some sort of readymade code or template for an EA that they are using every time they make an EA? I’m not interested in the ‘logic’ of the EA, but some code taking care of the 4/5digits brokers issue, Normal broker/ECN/STP brokers issue, SL, TP, TS, Slippage, maybe some trading time

How to: Alert every hour

I want to have an alert every hour, when the broker time is 10:00, 11:00, 12:00 so on. How can i do that in mql4

Problems with MT4 from InterbankFX build 409

Does anyone have a copy of the MT4 setup file build 402 or 407 from InterbankFX

How do i check if current bar high is 2 pips greater that previous bars high?

I have a piece of code that look like this: extern double PipsUp=3; extern double PipsDown=3; for (iCount=1; iCount<1; iCount++) { double HighHigh = High[0] + PipsDown/10000; double LowHigh = High[0] - PipsDown/10000; Comment ("High", High[0], " - HighHigh = ", HighHigh, " - LowHigh = ", LowHigh); }