Forum

I think I'm missing something fundamental - iHigh give a different value than what's on the chart

Please refer to my screenshot below. The currentOpen is the opening price of the current candle. The OHLC that I print on the chart is for the candle-1 or the previous candle. The OHLC values I'm getting is different for each candle on the chart. As an example, I hovered my cursor on the candle-1

Can a BuyLimit be closed instead of cancelling it?

My EA opened a BuyLimit with an SL and TP as shown in the image below. The order is not considered a position, which can be verified by doing a "PositionsTotal", that means I cannot use the PositionClose method to lock-in the profit. I understand why there are instances the order is not closed even

Are EA cached?

I've searched this forum and the internet and I did not find any discussion that hints that EAs are cached. I am new to MQL programming and I am trying out a simple strategy to get my feet wet with how it works. I have a simple code that looks like the following: CTrade trade; if (buyNow) {