In both order requests stoploss and takeprofit are equal. And so all of your orders won't be accepted. ---> closeBuyTrade/closeBuyTrade <---

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
Hi There,
I am a novice in coding and Trading. I tried to build an EA with the little knowledge i have with the help of internet.
My concept is to open a Buy trade with following logic (If 2 Bull candles appeared followed by a bear candle --> Buy and reverse is true for Sell Order)
I tired to build the EA with this simple logic. The EA compiles with out any error or warning but when I Back tested it runs and complete the test but do not generate any trade!
I also tried attaching it to a chart and running it for a day but still no trade occurred! Would please take a look at the code below -