openprice1 = iOpen(Symbol(),Period(),previousbar); closeprice1 = iClose(Symbol(),Period(),previousbar); // same operation for the bar before if ((closeprice2 - openprice2) > 0) nexttype2 = OP_BUY; if ((closeprice2 - openprice2) < 0) nexttype2 = OP_SELL;
GumRai:
obvious wasen't it! thanks for your time GumRai
liquidd:
obvious wasen't it! thanks for your time GumRai
obvious wasen't it! thanks for your time GumRai
I suspect that you do the same as I do
copy and paste some lines of code because you will only need to change a little bit. Then you forget to do the changes and no matter how hard you look, you just can't see it.
I have done it soooo many times!
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 want to get this to work what I wanted to do is,
first off I want it to calculate how many bars whent the opposite side on previous ones, it should be incrementing the past bars and checking the way they took to increment me a number (multiplier) to add to my ea. the rest of the ea goes like a charm but this part I just don't get how it should be working. I tought maybe it's an obvious error to more experimented programmers still tough I have the problem. It gives me randomly weird multipliers trough comments not according to the actual chart I have in front of me.