help with logic
- When you find the latest one, stop the loop.
string name; for(int i =ObjectsTotal(0,0,OBJ_TEXT)-1;i>=0;i--){ name = ObjectName(0,i,0,OBJ_TEXT); if(StringFind(name,"Harami Cross")>-1) break; } double price = ObjectGetDouble(0,name,OBJPROP_PRICE); color clr = (color)ObjectGetInteger(0,name,OBJPROP_COLOR);
- GCR_lipe fe: but the ones that form in the current time,
Objects do not form. They are created by code (or human). Do you have code running, creating them?
William Roeder #:
- When you find the latest one, stop the loop.
-
Objects do not form. They are created by code (or human). Do you have code running, creating them?
sorry i worded it wrong, yes i have these
Files:
candlestick_patterns.mq5
64 kb
candlesticktype.mqh
5 kb
Hello blz, I'm breaking my mind to get information from the object, but I don't want it to get the previous ones, but the ones that form in the current time, could you guide me?