rcmw
Added topic OrderType() Functionality in MQL5
Quick question. I'm trying to convert some code from mql4 to mql5 but having some trouble. How do I express the below conditional in mql5?  if(OrderType() == OP_BUY)  Also, is it still possible to select orders by position instead of ticket
rcmw
Added topic array out of range on modified indicator
So I wanted to use Fractals indicator however I would like to see less Fractals by extending both the look-back and look-forward period from 2 to 5. The only thing I've modified from the stock version of the iFractals indicator are the highlighted
rcmw
Added topic how to identify which shift (or actual time) where the last fractal has been created by the indicator
I'm trying to reference fractal values (fractal up/down) to identifying where they are in the price chart historically. iFractal() function only takes two parameters (Symbol & timeframe) so I'm not sure how to identify the indicator buffers from
rcmw
Added topic Using a variable instead of explicitly stated the timeframe
Hi, I'm trying to assign 'PERIOD_M1' to a variable called 'timeframe' so I can change it once at the top but the below gives me error 'timeframe' - cannot convert enum. Any ideas? void OnStart()   { //---       int shift = 3;
rcmw
Registered at MQL5.community