In MQL5, how to place a new limit order when a position closed

In MQL5, how to place a new limit order when a position closed

Manage alerts

Loading saved threads...

jad · External communityPost link
External question — Stack Overflow Stack Exchange Author: jad Original post: https://stackoverflow.com/questions/76642097 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. In MQL5, how can I submit a new buy order when an eixisting buy position closed. (and submit a new sell order when an existing sell position closed)
Quote
Report
LuizABL · External communityPost link
External answer — Stack Overflow Stack Exchange Author: LuizABL Original post: https://stackoverflow.com/a/76972217 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. When one position is closed, the mql5 executes the "OnTradeTransaction()" Just add to this handling function what you want to do. https://www.mql5.com/en/docs/event_handlers/ontradetransaction
Quote
Report

Post Reply

Quoted from Forex.com.bd-Editorial External answer — Stack Overflow Stack Exchange Author: LuizABL Source score (net votes, not local likes): 0 Original post: https://stackoverflow.com/a/76972217 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. When one position is closed, the mql5 executes the "OnTradeTransaction()" Just add to this handling function what you want to do. https://www.mql5.com/en/docs/event_handlers/ontradetransaction

Cancel quote

Checking account access…