HenZen
HenZen
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
HenZen
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
HenZen
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
HenZen
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
HenZen
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 (
: