I have an indicator that calculates and plots high/low starting at time A all the way until time B. It works great as long as both time points are in the same day. Once A is 11 PM and B is 1 AM of the other day, Ninja thinks that I'm traveling backwards and that 1 AM is meant to be at the very same day as the first point and plots nothing. Would you please assist? How to tell Ninja that point B is actually the day after?
if((ToTime(Time[0]) >= time_from) && (ToTime(Time[0]) <= time_to)) { if(High[0] > new_high) new_high = High[0]; if(Low[0] < new_low) new_low = Low[0]; }
Comment