Forum

Is a boolean correct for this?

Hello, I'm having an issue getting the correct signal from my indicator. Previously the line of code stated ( if x > 1) and it signalled correctly now i want it to signal if x is between 1 and 2, but the back test seem erratic, I'm using the code below if (x > 1 && x < 2) it seems as though it'll

How to keep count and check for previous / developing crossover in an oscillator

Hello, I'm trying to create a function that would check for a previous / developing crossover pattern using the stochastic oscillator . Attached is an image to better explain what I'm trying to achieve. Essentially I'd like to know when a multi part crossover occurs, the criteria is a first cross

Using iCustom to pass indicator_level from separate window in custom indicator

Hi, the documentation on iCustom says that you can pass input parameters from a custom indicator. I would like to pass: #property indicator_level1 1 (or something similar) As this is not an input parameter as far as I'm aware (I'm a beginner) how might I express this? My idea is to have an EA take

MaxH Some operator expected

Hi, I'm teaching myself how to program in mql4 and while working on an indicator I came across this problem on line 83. MaxH = Prices[ ArrayMaximum (Prices,period,i)]; the compile error is: 'MaxH' - some operator expected I wondered if anyone could give me some advice as to what I've done wrong