tom / Publications
Forum
Abnormal MQL Editor behaviour
Hello, I get mad becouse of this problem. Please look at my OnTick() f-ion: void OnTick () { //--- prepareData(); if (orders()== 0 ) { gX= 0 ;//gX is a global int variable bool a=checkForBuy();//for test reasons if (a)//put
Check whether currency has opened positions
Hello, I really don't know how to check if there is an open position on selected currency. For example: I have 2 opened positions on GBPUSD and USDJPY and I would like to check if there are any open positions on USDJPY. How to programme it? Regards
Mean price time
Hello, I have a problem. How can I count if the price is mostly (basing on time) (at the bar) OVER or UNDER the OPEN PRICE ? [counted each tick] Best regards. Cool forum
How to refer to past indicator results
Hello, how can I use past Heikin Ashi values (O,C)
Heikin Ashi O,C,L,H values
Hello, I'd like to compute O,C,L,H Heikin Ashi values and also check if candlestick is red or each tick for my Automated Trading System, but I don't know how to convert: haOpen = ( ExtMapBuffer3 [ pos + 1 ] + ExtMapBuffer4 [ pos + 1 ] ) / 2 ; haClose = ( Open [ pos ] + High [ pos ] + Low