My EA did not properly implement the sell limit condition that I was requesting. At "// Check the conditions for a sell signa"l and "// Check the conditions for a sell signal" seem to be logically correct.
Can you check and point out errors for me? Thank you !
- Drawing a line with two points
- Arrows with custom indicator only working for sell signal and only for one previously closed candle
- Server VPS disable automatically. Has anyone had this problem?
double entryPrice = (localHigh[0] + localClose[0]) / 2;
it looks like your entry price calculation is wrong. may be you need to calculate from candle 1 not 0!
I do not know logic behind your strategy but current high and close for JUST opened candle are same values. I mean, in first tick of current candle high=low=open=close.
you can not set a pending order for current price specially if there are limits like Stop Level or Freeze Level.
You may check this. You cannot open a pending order too close to current price.
if(entry>Bid+SYMBOL_TRADE_FREEZE_LEVEL*_Point) trade.SellLimit(...);
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