Chris Bakowski / Publications
Forum
Cannot Calulate Lots on USDJPY
Hi All, Was looking to get some help with a GetLotSize function please? The attached code correctly gives a dynamic lot size on every pair apart form USDJPY and I'm racking my brains to see what's wrong with it. I've included the helper function below I think the problem is in the moneyLotStep
Forward optimisation freezes when skipping passes using INIT_PARAMETERS_INCORRECT
Hi Everyone, I am performing a slow complete algorithm optimisaiton on an EA. The EA contains a boolean which if activated returns INIT_PARAMETERS_INCORRECT in the OnInit function when invalid combinations of parameters are encountered by the tester. (E.g. no stoploss + stoploss = 10 pips). The
Issues With For Loop & Daily MA on PERIOD_M15
Hi all, I was having an issue with a HTF moving average calculating the entire rates_total on every loop due to a badly designed for loop. I have created an indicator to help debug this and redesign the loop so that I am only calculating the most recent bar (after the intial loop through the whole
Higher Timeframe Moving Average MQL5
Hi, I've been coding in MQL4 for a while, and am ' reasonably' good at it. Recently I have switched to MQL5 and having difficulty converting my higher timeframe indicators over. This is a Higher Timeframe Moving average. I think the issue is I am referencing the shift from the curent timeframe but I
Coding Candle Body Smaller than Previous in MQL4
Hi Everyone, I wonder if I could ask for some guidance please? I'm trying to build an indicator which relies on identifying pin bars (shooting stars and hammers). Part of my coded definition of a pin bar is that its body[0] should be smaller than the previous candle[-1]. The issue is that its seems