Forum

Indicator displaying relation between two EMA.

Hello I put 2 EMAs on the chart, EMA 50 and EMA 100. I am preparing indicator to indicate by value when EMA 50 is below EMA 100. I wrote the code attached below. It almost works but I noticed that it shows line only when corosover of EMAs is visible on the chart. When there isn't any crossover

MQL4 custom indictor doesnt't load

Hello I am new here. I am trying to write my first custom indicator in mql4. This is simple indicator just for purpose of learning. W would like to receive line with only 2 values possible. Idicator equals 1 when conditions are met and 0 when condition is false. Condition is to get 1 when there is