richo:
Hi
Can someone please help me how to find the time if the shift value being negative.
Basically I am trying to draw a trendline based on the existing trendline
I am getting objprice1 correctly but the objtime1 always return 0.
Try something like . . .
if(shift < 0) objtime = iTime(Symbol(),Period(), 0) + (Period() * 60 * -1 * shift);
RaptorUK:
Try something like . . .
Thanks. It works. I should have asked this before, I was breaking my head for the past 3 hours for this.
Hi RaptorUK
I was wondering what will happen if a week end falls in between? should I have to add any further codes.
Thanks
richo:
A weekend and holidays with mess with it . . . you can either live with it or try and address the issue.
Hi RaptorUK
I was wondering what will happen if a week end falls in between? should I have to add any further codes.
okay, thanks.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi
Can someone please help me how to find the time if the shift value being negative.
Basically I am trying to draw a trendline based on the existing trendline
I am getting objprice1 correctly but the objtime1 always return 0.
Thanks