Do you guys have any tips for this feature. I want the EA to shut down not on Take Profit, but on the balance, which I give him no need to remove it how to do? I think there is a block to close the deal, we need to specify the amount whether more or less at which the deal will close or not?
Do you guys have any tips for this feature. I want the EA to shut down not on Take Profit, but on the balance, which I give him no need to remove it how to do? I think there is a block to close the deal, we need to specify the amount whether more or less at which the deal will close or not?
https://www.mql5.com/ru/code/9683 - here is an EA which closes orders on change of equity (you specify in the currency of the deposit), maybe it will suit...
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Do you guys have any tips for this feature. I want the EA to shut down not on Take Profit, but on the balance, which I give him no need to remove it how to do? I think there is a block to close the deal, we need to specify the amount whether more or less at which the deal will close or not?
Let us run the following code.
if(OrderType()==OP_BUY) // If there is a Buy order
{
orderBuy=1;
if(CrossPositionClose()==1) // Close the order if it satisfies
{ // condition CrossPositionClose()=1
price=MarketInfo(Symbol(),MODE_BID);
OrderClose(OrderTicket(),OrderLots(),price,slippage,CLR_NONE);
how do I specify that for example at 0.30 cents it would just close itself and that's it?
Let us run the following code.
if(OrderType()==OP_BUY) // If there is a Buy order
{
orderBuy=1;
if(CrossPositionClose()==1) // Close the order if it satisfies
{ // condition CrossPositionClose()=1
price=MarketInfo(Symbol(),MODE_BID);
OrderClose(OrderTicket(),OrderLots(),price,slippage,CLR_NONE);
how do I specify that for example at 0.30 cents it would just close itself and that's it?
Do you guys have any tips for this feature. I want the EA to shut down not on Take Profit, but on the balance, which I give him no need to remove it how to do? I think there is a block to close the deal, we need to specify the amount whether more or less at which the deal will close or not?
https://www.mql5.com/ru/code/9683 - here is an EA which closes orders on change of equity (you specify in the currency of the deposit), maybe it will suit...
https://www.mql5.com/ru/code/9683 - here's an advisor, closes orders on change of equity (specify in depot currency), might be suitable...
Help me make the indicator draw arrows. This is a buy pattern. Only last condition changes for sell.(l0 < l1).
Please help. If the first candle's low is higher than the second one and the first candle's high is lower than the second one's high,
then
- If on the zero candlestick the low has fallen below the low on the first candlestick , then we draw an arrow downwards,
- If on the zero candlestick the high has risen above the high on the first candlestick, then draw the up arrow.
The picture is shown on 583 stranice