Is this correct -
double low2 = iLow(Symbol(),PERIOD_M15,12);
This
for (int i =0; i<2;i++) { double aclose = iClose(Symbol(),PERIOD_M15,i); double aopen = iOpen(Symbol(),PERIOD_M15,i); if (aclose < aopen) vla = 1; return(0); }
is not understandable.
This
if (gs ==1 && gs==2 && vla == 1)
as well.
sorry about the coding, i tryed many different ways just try to get the right resurlts but it still doesnt make a single trade, so all the codes above are what i tryed before i make this post, i change some to commands so i dont confuse together
if (gs ==1 && gs==2 && vla == 1)
the gs is used to check the previous bar range, if bar1 moved from top to bottom over 4 pips then its set to 1, the 2nd bar is set to 2, vla is from the for loop if previous 3 bars close below open set to 1, i also try to manaual type in all the iopen, iclose to compare but it just dont work
I ment your variable gs couldn't be equal 1 and 2 simultaneously
DD
Did you mean either.. or..
if ((gs==1 || gs==2) && vla==1)-BB-
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
i created a new ea base on some strategy from tsd, im sure this is the simplest and easiest codes but i just cant figure out where is wrong, any help would be appreciate
rules :
buy when there are 3 complete 15 minutes bars close down and sell when 3 are close up