
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
Close[0] is the current Bid price. Bar[0] hasn't closed yet so it can only be the last available price
It may be that what you are actually trying to do is
which is the last completed bar closed higher than the previous bar's close
Thank you that helped. I also wanted one trade per currency pair and found the code posted by WHRoeder elsewhere. My code now looks like this and it is working. Thank you for everyone's help. I plan to add to this and want to eventually turn it into a more complex EA as my skills improve.