Plotting arrows on chart
I did not check everything in your code but for one thing:
You are attaching arrows to current chart all the time while the CSV lines refer to different charts.
- terryby: I can't find the issue!?
Use the debugger or print out your variables, including _LastError and prices and find out why. Do you really expect us to debug your code for you?
Code debugging - Developing programs - MetaEditor Help
Error Handling and Logging in MQL5 - MQL5 Articles (2015)
Tracing, Debugging and Structural Analysis of Source Code - MQL5 Articles (2011)
Introduction to MQL5: How to write simple Expert Advisor and Custom Indicator - MQL5 Articles (2010) - Yashar Seyyedin #: You are attaching arrows to current chart all the time while the CSV lines refer to different charts.Wrong. Code checks for proper symbol and TF.
if(instrument == Symbol() && ConvertPeriodToMT4Period(granularity) == Period()) {
Hello, thanks for the opportunity to post on the forum!
I am working on an indicator to plot arrows onto a chart based on a local CSV file - i can read the CSV file, have the insertions set up but it's just inserting in one place rather than multiple?
My CSV format is;
1.75793,BUY,2024.11.22 3:45:00,GBPCAD,M3
71.931,SELL,2024.11.12 22:00:00,BCOUSD,H4
194.496,BUY,2024.11.22 7:24:00,GBPJPY,M3
194.152,SELL,2024.11.22 4:24:00,GBPJPY,M3
194.278,BUY,2024.11.22 1:18:00,GBPJPY,M3
I have a snippet of code below. Can anyone see the problem? Is the date format correct? I can't find the issue!?