- MT4: How can I can find out if there is an arrow (UP/Down) without buffer values?
- How to Draw Arrow using Buffer
- MQ4-How to know buffer signal on the chart which the indicator is attached?
I tried to find a solution, but I couldn't find anything about it anywhere.
If it doesn't show up in iCustom then you might be able to access the values through objects on chart...but problematic if multiple symbols etc..
Unfortunately it isn´t showing on iCustom.
I have found this lines below. I can find the object I am looking for(arrow), but it show it several times in the chart (and in the object list). Do you know a way I can read it only when it pops up? Because I don´t want my EA to think the arrow that happened 1 hour ago is a trigger. I just want an arrow that just popped up in the chart, I don´t know how to read a "brand new" object (Arrow)
TIA
int Shift = 15;
string Prefix="T-0 (buy)-0";
int length=StringLen(Prefix);
int total=ObjectsTotal();
string obj_name="";string a1;
for(int i=0;i<total;i++)
{
obj_name=ObjectName(i);
a1=StringSubstr(obj_name,0,length); // XYX
Comment("Sorry desired object not found!!");
if (a1 == Prefix)
{
Comment("Success!! value of ",obj_name, " = " ,ObjectGetValueByShift(obj_name,Shift));
break;
}
}
I tried to find a solution, but I couldn't find anything about it anywhere.
This is how I search for a POC object from a volume profile indicator. I search for the object by its MediumSeaGreen color and once identified, I can access its properties with ObjectGet()
//+------------------------------------------------------------------+ //| Script program start function | //+------------------------------------------------------------------+ void OnStart() { datetime poc_ini = 0; datetime poc_end = 0; string poc = ""; int counter = 0; string object_name = "what_are_your_looking_for"; int pos = 0; int total_objects = ObjectsTotal(NULL); for(int i=0; i<total_objects; i++) { if(StringFind(ObjectName(NULL, i),"-") != -1) { counter++; object_name = ObjectName(NULL, i); pos = StringFind(object_name, "-"); indice = int(StringSubstr(object_name, pos+1, -1)); // Search for POC -> by color MediumSeaGreen. if((color)ObjectGetInteger(NULL, object_name, OBJPROP_COLOR)==clrMediumSeaGreen) { poc = object_name; poc_ini = (datetime)ObjectGetInteger(NULL, poc, OBJPROP_TIME, 0); poc_end = (datetime)ObjectGetInteger(NULL, poc, OBJPROP_TIME, 1); } } } poc = DoubleToString((ObjectGetDouble(NULL, poc, OBJPROP_PRICE, 0), Digits());

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use