Replace
Bid+open_gap_2*Point
to
NormalizeDouble(Bid+open_gap_2*Point,Digits)
Roger:
Replace
Bid+open_gap_2*Point
to
NormalizeDouble(Bid+open_gap_2*Point,Digits)
Isn't the problem that the price for the pending order is above the bid (Bid+open_gap_2*Point), but a sell-stop order is being used rather than a sell-limit? I'm guessing that Bid+open_gap_2*Point is meant to be Bid-open_gap_2*Point. Though it could be that the price is correct, and that a limit order is needed.
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
where am I going wrong? I open up a trade and immediately after I open a few stop orders. For some reason the code is not doing that.
//open main trade
SellOrder(Lots,Bid);
//open supporting stop orders
for(i=5;i>=0; i--)
{
open_gap_2=open_gap_2+Open_gap;
OrderSend(Symbol(),OP_SELLSTOP, FollowingLots,
Bid+open_gap_2*Point,3,
0,0,"",MAGICMA,0,Red);
}
thanks in advance