mrchuckw:
I'm trying to get my ea to enter a trade at the open of the bar when the previous bar high was above the upper bollinger band AND the open is below the upper band.... and visa versa for lower band.
Here is my code, but it is not working.
Any thoughts anyone?
Hi mrchuckw,
Take a look at your comparative < > symbols...they don't match...so one trade at least may not work.You stated AND as part of the trade conditions... You can eliminate some "if loops" by combining your conditions together.
Example: ( High > UB && Open < UB )
Hope this helps,
Robert

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'm trying to get my ea to enter a trade at the open of the bar when the previous bar high was above the upper bollinger band AND the open is below the upper band.... and visa versa for lower band.
Here is my code, but it is not working.
Any thoughts anyone?