When my EA written with mql4 places an order using OrderSend(), the order is placed, but does not show on the chart

When my EA written with mql4 places an order using OrderSend(), the order is placed, but does not show on the chart

Manage alerts

Loading saved threads...

rerat · External communityPost link
External question — Stack Overflow Stack Exchange Author: rerat Original post: https://stackoverflow.com/questions/73767332 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. I wrote an EA in mql4. It places orders just fine using OrderSend(), but the horizontal lines showing the open price, SL and TP do not show up on the chart like it does when I manually place a trade. Not sure what I need to do to make it show the trade on the chart. Here is the code I used to place the order: OrderNumber = OrderSend(order_symbol, order_type, lots, ask, 0, sl, tp, comment, magic_number, 0, clrBlue);
Quote
Report
rerat · External communityPost link
External answer — Stack Overflow Stack Exchange Author: rerat Original post: https://stackoverflow.com/a/73914950 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. I tried loading me EA on another PC and the trade lines show up. So on the PC that this wasn't working I uninstalled MT4 and reinstalled, working now.
Quote
Report

Post Reply

Quoted from Forex.com.bd-Editorial External answer — Stack Overflow Stack Exchange Author: rerat Source score (net votes, not local likes): 0 Original post: https://stackoverflow.com/a/73914950 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. I tried loading me EA on another PC and the trade lines show up. So on the PC that this wasn't working I uninstalled MT4 and reinstalled, working now.

Cancel quote

Checking account access…