Forum

Problems with Ichimoku

Hi Sorry if this is not the correct sub-forum for this question, I am unsure of the exact nature of my issue. Whether it is an indicator issue, strategy tester or MT5. I have recently had an issue on one symbol, where the Ichimoku indicator does not seem to work as expected. I was running an EA I'm

Problems closing trade using ticket number

Hi I'm confused about closing a trade. I am working on a multi symbol EA. So I have an array of symbols that the code works through. I also have a corresponding array of tickets for any trades that are opened. I'm trying to close trades when exit conditions are met, using their ticket number. Most

Why does Ichimoku.ChinkouSpan(26); constantly return a value 1.79+308?

Hi I've been looking at this indicator and while all the other components seem to work as expected, the .ChinkouSpan seems incorrect. While the tooltip and display look 'sensible' the value returned from the .ChinkouSpan(26) function seems to be stuck at 1.79+308? Even with this simple version from

Weird behaviour, calculating a Bollinger Band Squeeze and issues with division of variables?

Hi I'm really quite stuck and not sure how to proceed, so I'm hoping for some inspiration really. I've written a function that uses a Bollinger band with deviation of 2 and another with a deviation 1 which I use to look for a 'zone' and a 'squeeze'. The squeeze is found using the calculation

Confused about stoploss and take profit calculations from tutorials

Hi I've been following the TruthfullTading tutorials on the tutorials thread as they were recommended to me, but I'm confused about differences in how he generates stops. AIUI in his Moving average example he uses the following code to calc stoploss that uses the ASK price for a BUy and the Bid

Tutorial - Code complete EA for MetaTrader 5 in 20 Minutes! - Chart display seems out of sync

Hi As per my previous post on ' Invalid Stops ' I'm in the process of learning how to code EAs. I do have some transferable skills as I used to code in Borland C back in 1990, so some aspects of this process are familiar, but coding for this environment is obvioulsy very new and I hit problems with

Problems with Invalid Stops

Hi I've just started learning to code EA and try and get my head around MT5, ticks, points etc, so I apologise in advance if I have done something very daft or missed something obvious! So I've been following a tutorial online that gradually developed a more complex EA. It seemed to make sense and