close partial error
-
I'm getting this error when i try to compile my project, and is only after i add the close(partially) block..
Can you please tell me what im doing wrong?
Thx
return value of 'OrderSelect' should be checked DailyProject.mq4 2269 4
return value of 'OrderSelect' should be checked DailyProject.mq4 2378 4 -
Those are just some warnings, not errors
-
Im trying to use the partial close block and in the journal i get this error message:
2015.04.04 14:26:34.584 2000.01.28 00:01 DailyProject EURUSD,Daily: Invalid ticket (4108)
2015.04.04 14:26:34.584 2000.01.28 00:01 DailyProject EURUSD,Daily: OrderClose error 4108
2015.04.04 14:26:34.584 2000.01.28 00:01 DailyProject EURUSD,Daily: unknown ticket 2 for OrderClose functioncan you help me in how to use this block and if you can provide examples will be appreciated?
Thank you
-
ALWAYS use one of the "For each..." block before using some other pink block like close (partially) when you work on MT4
-
Question when you use modify stop orders that are open the value of the new stop loss can be lower than the open price?
-
Opened stop order... you mean pending order or running trade? Stop Loss for Buy trades and orders can be below their open price, and only in case of running trade, SL can be above the open price if the current price is also above the open price. So, Stop Loss depends on the current market price.
-
This is for open orders only or running trades, how do you set it up with a negative value so it can go under the open price?
-
What are you trying that is not working?
SL for buys can be only below Bid and for Sells - above Ask. Plus some additional limits like StopLevel and FreezeLevel. If you want to put SL/TP too close to the current price, the minimum possible SL/TP size will be taken.
Again, SL and TP are placed according to Ask or Bid. It just happens that Open Price of any trade is Ask or Bid in the moment when this trade was created. When the trade profits, you can put SL on the "other side" of that Open Price. And when the trade is on lose, you can also put TP on the other side.
SL and TP does not care about Open Price, they care only about Ask and Bid.Here is more detailed information: http://book.mql4.com/appendix/limits