Need help check this EA what is the problem
Close[0] is not real . . it is simply Bid . . Close[0] cannot actually exist, when bar 0 is actually closed it becomes Bar 1 . . . so if you really want Close[0] use Close[1] at the first tick of Bar 0 . . . otherwise use Bid
Gap is 15 . . . gap1min = Close[1] - Close[0]; then gap1min = gap1min*Digits; On a 5 digit broker for GBPUSD Digits will be 5 . . . so it is extremely unlikely that gap1min will ever be greater than 15 . . . maybe you meant to convert Gap to points . . . while you are at it you might want to adjust your code so it handles 4 and 5 digit Brokers . . .
this is crazy... I am new into coding and I think you got the variables mixed up. My advice to you is try to build something that's going to help you not, make trades for you.
Hi all experts here, need your help
I created an EA based on price volatility. It will buy/sell if price jump up/down suddenly. When I compile, no error
but when I test in Strategy Tester, it fails to open any buy/sell order, it gives error 0 in error message
below is the code
you are welcome to modify the code to make it better