Forum

A constant number

Hi, I just made some EA with simple function, but I have a problem. The settings of my EA is when 2 EMA crossed the numbers within the DX variable will change. For example Dx = 10 If fast EMA crossing up Dx += 1 that mean Dx = 11 If fast EMA crossing Down Dx -=1 that mean Dx = 9 But, when EMA

Crossover of 2 EMA but pending order

I'm trying to make EA for 2 EMA crossover but when 1st ema crossed 2nd ema I want it to send a pending order instead a market execution order, I got source code from this website. But when I try to edit for my EA version , I get confused about code that I want to edit. I think, the code that I need