Vertical Line Counting question
Results 1 to 4 of 4

Thread: Vertical Line Counting question

  1. #1
    How would I go about counting the amount of Vertical Lines one hour both sides of current time, without specifying the exact names of the objects?
    thanks,
    Mark.

  2. #2
    wow! I didn't anticipate a remedy that is complete, thank you! That generous with your time!
    M

  3. #3
    If it was not clear what this was for, I wanted to use the news calendar indior from here to put lines on the chart, then use this at an EA to filter trades about news, so I imagine that a few people will find this helpful

  4. #4
    Quote Originally Posted by ;
    How can I go about restricting the amount of Vertical Lines an hour both sides of current time, without specifying the names of these items? Thanks, Mark.
    Mark-
    That is a way of doing this. Contemplating no object can be created with no exceptional name its then a matter of getting the objects time worth and the ascertain where it is regarding the current hour.
    Inserted Code int CurrentHour=10; for(int I=0; ilt;24; I ) int before=0; int after=0; for(int cnt=1;cntlt;ObjectsTotal();cnt ) string name = ObjectName(cnt); int ThisHr = TimeHour(ObjectGet(name, OBJPROP_TIME1)); if(ThisHr lt; CurrentHour) earlier ; else if(ThisHr gt; CurrentHour) after ; Print(Current Hour: CurrentHour ObjectsTotal() objects complete - earlier before after later );

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.