Henry Lodewicus Combrinck
Henry Lodewicus Combrinck
  • Information
no
experience
0
products
0
demo versions
0
jobs
0
signals
0
subscribers
Henry Lodewicus Combrinck
Added topic AccountInfoDouble(ACCOUNT_MARGIN_LEVEL) always returns 0.0
Greets, I'd like to check the margin level percentage before placing a trade, but  AccountInfoDouble(ACCOUNT_MARGIN_LEVEL) always returns 0.0. I've read the article here  https://www.mql5.com/en/forum/228052  but it doesn't solve my
Henry Lodewicus Combrinck
Added topic Backtesting and margin level %
Greetings, When performing backtesting mt5, in the results tab you are given the lowest margin level % it reaches. My broker does a margin call at 50%, so I’m trying to get clarity: given a leverage of 1:100 or 1:500 or whatever, is that margin level
Henry Lodewicus Combrinck
Added topic Margin level % in MT5 backtest results - what would constitute a margin call?
Greetings, Trying to understand the meaning behind the number in the backtest results for Margin Level %. At what level would it be considered a 'bad thing", ie, being margin called in possible future live trading? For example, some of my backtests
Henry Lodewicus Combrinck
Added topic Detecting the last profit/loss in transaction history reliably for a given magic number
Hi all, I'm trying to detect the last profit/loss in the transaction history (which I think I've got right), but something unexpected is happening, hopefully someone will have an idea. Here's the snippet: void OnTradeTransaction (    const
Henry Lodewicus Combrinck
Added topic Strategy tester using EA on Daily bars - always "market closed"
Greets, I've been trying my hand at writing MQL5 EAs for a while now and everything works as expected.  I've always used the strategy tester on intra-day timeframes, but recently decided to give the Daily TF a try. Problem is the strategy tester
Henry Lodewicus Combrinck
Added topic CopyBuffer() on iVolume() handle fails with 4807 error (invalid handle)
Greets, I've been googling around for a solution to this to no avail. Hopefully someone else has experienced this and knows what the solution is. So CopyBuffer() expects an int handle as the first argument.  This works fine for most indicators
Henry Lodewicus Combrinck
Added topic Grid trading idea - comments sought
Greets, Here's a quick implementation of a grid trading idea showcased here I'm not sure if I've made a mistake, or if the concept simply doesn't work, but it always results in a loss in backtesting. Maybe someone can have a look, play with it, and
Henry Lodewicus Combrinck
Added topic Detecting SL & TP
Greetings, I'd like to detect when the SL or TP level is hit and take appropriate action.  Is the following snippet correct? void OnTradeTransaction ( const MqlTradeTransaction & trans, const MqlTradeRequest & request, const
Henry Lodewicus Combrinck
Added topic Duplicating PineScript's bgcolor() function in MQL5
Greetings, I'm trying to duplicate PineScript's bgcolor() function call in MQL5 - so far I've come up with: color canvasColor = clrLightGreen ; // Choose the color you want for the canvas ObjectCreate ( 0 , "BackgroundCanvas" , OBJ_RECTANGLE_LABEL
Henry Lodewicus Combrinck
Added topic PositionSelect(_Symbol) call causes MT5 free
Greetings, I'm a bit puzzled by the following. The documentation recommends calling PositionSelect() before calling PositionGetInteger(), which I'm doing as follows: int sellPositionCount = 0 ; if ( PositionSelect ( _Symbol )) {    for (
Henry Lodewicus Combrinck
Registered at MQL5.community