mcassara / Publications
Forum
Long Trade on Active Bar
Hello, I was experimenting around with building an EA and had a couple of coding questions. With the following code, if(Low[0]>Low[1] && Low[1]>Low[2] && low[2]>Low[3].... Seeing that this would be trading on the movement of the active bar, what code would I use so that it would only take one trade
Coding Question - Bar Movement
Hello, I'm just learning MQL4 and working on a some exercises and had a few very basic questions. In the following lines of code, what are the 0's referencing. if(iOpen(NULL,0,1)< iClose (NULL,0,1)) int BarOneUp=1; if(iOpen(NULL,0,2)>iClose(NULL,0,2)) int BarOneDown=1; What code would I use, to