Its got allot of problems. However, It's not reaching the OrderSend for one reason or another. At a glance, this logic will probably never pass this line.
if(price1>price2 && price1-price2==Factor*Point)
Price1 may never be > than Price2 because they are both Bid.
Why the RefreshRates()? You didn't Sleep() or anything. Bid is Not gonna change that fast.
Equality and In-Equality performed on Doubles is a bad idea. Use > < if you can help it.
I recommend using allot of Print() Statements to Debug your codes.
Its got allot of problems. However, It's not reaching the OrderSend for one reason or another. At a glance, this logic will probably never pass this line.
Price1 may never be > than Price2 because they are both Bid.
Why the RefreshRates()? You didn't Sleep() or anything. Bid is Not gonna change that fast.
Equality and In-Equality performed on Doubles is a bad idea. Use > < if you can help it.
I recommend using allot of Print() Statements to Debug your codes.
"Equality and In-Equality performed on Doubles is a bad idea. Use > < if you can help it." what does it really mean?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
When I run my EA, there was no error, but cannot trade. Please check for me. thanks so much