Forum

problem starting EA during NY/LONDON overlap

Hello everyone, I have an EA based on making trades on daily chart. The problem is that whenever i start it, the journal doesn't send me a report of the EA being initialized at a specific time. Here is my code with printf statements. Only the "ea is not ready" string is being shown. bool

loop comparison of EMA values

Hello, i want to write my function so that it makes a for loop comparison of different EMAs for order execution . In theory a for loop would go through all the numbers, but mine does nothing. Any ideas? void CheckForEMATrade(){ int x,y; int period[]={ 20 , 25 , 30 , 35 , 40 , 45 , 50 , 55 , 60

Problem with divergence indicator

Hello all, I have a problem with a newly written indicator that basically detects four different divergences explained on this site: http://www.babypips.com/school/high-school/trading-divergences/divergence-cheat-sheet.html My problem is that I want to make a second for loop running inside the start

EMA counter problem

Hi guys, I want to write a simple loop that counts how many times some part of a candle (be it Low or High) touches the 200-p EMA. Unfortunately whenever I start the program, it automatically exits without doing anything. Any suggestions? Thank you! double EMA[];

For loop Divergence problem

Hi everybody! Recently I was developing a simple custom indicator that detects divergences based on Stochastic Oscillator. I wanted to test one divergence condition. The indicator inserted the first arrow, but the second one (given that there was a clearly VISIBLE divergence) doesn't get drawn. If

Problems with constants in prewritten Stochastic indicator

Hi everybody, unfortunately I didn't manage to find any valuable explanation for a problem. I'm building a stochastic oscillattor from scratch based on the one built by MT4-5 team and located and named as Stochastic in the 'Indicators' folder. Supposing they do not possess any value, how can

Counting past Stochastic data backwards

Hello everybody, I'm trying desperatedly to get the value of past stochastic values over n amount of bars. The error i get is "'[' array required". Could you please explain me why iStochastic function wouldn't start on a simple for loop? Here is my code. int init(){ int i; int Bar= 10 ;