Can someone explain to me what does this standard code-block on top of most indicators do? I looked up the documentation of these functions , but I don't understand what does it accomplish. int counted_bars =
Hi, I am trying to Test sending an email from the Options>Email Dialog Box. The journal is repeatedly reporting "Relaying Denied", or "FlashFiler: Invalid BLOB" Errors, using two different private SMTP servers. The recepient
Hi, I want to know how do I plot a Lower Timeframe MA cross on a Higher Timeframe chart. e.g. I want to plot an arrow on H1 chart when M15 's MA5 and MA10 cross. Please let me know. Thanks, JForex
Hi, How can I terminate an EA if certain inputs are incorrect? I do not want to put a conditional return in start() because its still running and catching the error on every tick . I need something that can just stop executing the EA if the input
Hi, I put PERIOD_M1 in the Timeframe param, and attach this indicator to a M5-chart (not M1-chart). double MA20 = iMA ( NULL , PERIOD_M1 , 20 , 0 , MODE_SMA , PRICE_CLOSE ,1 ) ; What does this give me? The value of MA-20 on M5's last bar , or value
Hi, If I declare an array of size 1, I can write and read values much beyond 1. How is this possible? Is it resizing everytime? Also, I noticed that I either have to initialize the array, or provide a size during declaration for it to work properly
Hi, The goal of my simple EA is to Print when the Price is very close to the Bollinger Bands . Can someone review if this is correct? My primary doubt is about using Close[0] or Close[1]. How can Close[0] return the closing price of a current bar