How can I detect Arrow up and Arrow down in chart?Arrows are objects. - page 2

 
Mohammad Hasan Mosaddeqi:

Dear William,

Thank you very much for your support,

I have a question,

1.Objects names includes "arrows: " + "NUMBERS",I want to cast integer part ("NUMBERS") of objects name to date-time and specify last of all objects. How can I separate this two part of objects name? 

int OnInit()
  {
//--- create timer
  // EventSetTimer(60);
  string nametest="arrows:1575957600";
  Print("result : "+TimeToString(mhm_arrows("arrows:",nametest,""),TIME_DATE|TIME_MINUTES|TIME_SECONDS));
//---
   return(INIT_SUCCEEDED);
  }
  
  datetime mhm_arrows(string prefix,
                      string name,
                      string suffix)
  {
  int rep=StringReplace(name,prefix,"");
      rep=StringReplace(name,suffix,"");
  uint ts=(uint)StringToInteger(name);
  return((datetime)ts);
  }
 
Mohammad Hasan Mosaddeqi: 1.Objects names includes "arrows: " + "NUMBERS",I want to cast integer part ("NUMBERS") of objects name to date-time and specify last of all objects. How can I separate this two part of objects name? 
  1. I already answered your question (#8.) Perhaps you should read the manual.
  2. Object name is a string. Isolate the numeric part with substring. Convert the string to a long. Then as I previously answered:
    William Roeder: Cast your int to a datetime.

 
William Roeder:
  1. I already answered your question (#8.) Perhaps you should read the manual.
  2. Object name is a string. Isolate the numeric part with substring. Convert the string to a long. Then as I previously answered:

Dear William,

Thanks a lot for your support.

I made EA successfully.

 
Mohammad Hasan Mosaddeqi:

Dear William,

Thanks a lot for your support.

I made EA successfully.

Hi Mohammad,


I'm facing same issue, can you explain how you managed to solve the problem?

Simply I have an indicator that plots an arrow on the chart for buy or sell signals, this customer indicator doesn't have buffer and no data is displayed in data window.

I would like to know how to get this arrow's data (Object name, color, value, ...etc), how to access it and  use it later to send buy/sell orders...


Appreciate your support.