I am trying to create an IRay object but instead of using bars ago as x-axis points I need to use two time points. I see this could be possible from the help guide.
What I have at the moment is :
IRay ray = DrawRay("lows", time1, price1,time2, price2,Color.LimeGreen);
For argument 2 and 4 it gives me the following error:
"cannot convert from 'System.DateTime' to 'int'"
so it looks like it is still looking for the bars ago.
Could you perhaps let me know what tweaks I need to make to get it to work?
Thanks very much in advance
Comment