Forum

Restricting the removal of an EA?

Is there anyway possible to restrict someone removing an EA from a chart? I.e. a password requirement or similar

Code in R trade in MQL4

I am currently developing machine learning techniques in R and I am wondering if there is a way to seamlessly communicate in MQL4 to accurately replicate my findings in R into practice in MT4? Any thoughts or ideas would be greatly appreciated

Different ST results - everything is the same?

I have seen threads like this before but I am honestly seeing different results even though everything was identical to the last test? Does anyone know why this is? Data is precisely the same, the terminal is offline, the spread is fixed, the date range is exactly the same

Strategy Tester doesn't run all the way through?

I have imported high quality 1 minute bars on the EURUSD back to 2005 - 2015 When I start the backtest to run through through the date range 2010 - 2014, it doesn't run all the way through. Instead it cuts out at 2014 August... No pending orders are being used and only 177 trades were placed. What

Drag Horizontal Line and Store Price (Script)?

When I drop script onto chart, I want a horizontal line to be created and the flexibility to move this line where I want with the view of returning the price once I lock it in and the script continuing with the rest of the code. I know how to code so i am not asking for someone to do this for me

Does MT4 store max equity low?

Before considering any MQL4 code, does the terminal store the max equity? I am baffled how Myfxbook manages to populate my draw-down in a matter of seconds on historical trades relatively precisely when I never had the myfxbook EA attached on the chart at the time of trading? Cheers

What comes first: tick or stop loss?

I think I know the answer to this already but am looking for confirmation: What happens on an incoming tick (in regards to code); will the stop execute first on the trade and then the code is executed, or the other way around? Any links to "what happens on an incoming tick" will be very helpful

iHigh & iLow

Do these 'i' functions disregard spreads or include them

Double to DateTime

... Set_D1_Bar = GlobalVariableSet ( "D1_Bar" ,iTime( NULL , 1440 , 1 )); D1_Bar = GlobalVariableGet ( "D1_Bar" ); D1_Bias = "Bearish" ; Comment ( "D1 Bias is: " +D1_Bias+ " since: " +DoubleToStr(D1_Bar, TIME_DATE | TIME_MINUTES ), "\nH4 Bias is: " +H4_Bias, "\nH1 Bias is: "

Smart way to turning off and on all Prints?

Just wondering if I could pick anyone's brain with regards to prints across ones algorithm? How would I turn all prints on and off with the "flick" of a button? Any thoughts, ideas or shove in the right direction would be nice :)