SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Sat Jan 22, 2022 11:13 pm

All times are UTC + 3 hours

Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Oct 17, 2007 4:18 pm 

Joined: Fri Feb 02, 2007 8:00 pm
Posts: 61
Location: USA
Please add an overload to the Draw() command so it can target a chart for a single bar size and type.

public void Draw(
TimeSeries series,
DateTime start,
DateTime end,
int padNumber,
BarType targetChartType,
long targetChartSize,

This version of Draw should be a "one time" draw that does not bind the series to the chart. It would be called from OnBar to draw from start time to end time then stop drawing. Drawing could start again at the next OnBar.

See my previous post to see why this is needed.

PostPosted: Wed Feb 01, 2012 2:33 am 

Joined: Sun Oct 30, 2011 12:12 am
Posts: 220
I need something similar: draw an indicator only during a custom "session" (ie between a certain StartTime and a certain EndTime).
Conceptually, I thought that returning double.NaN in Calculate() when the current bar is outside the session would do the job but it doesn't: the NaN's are not displayed but a straight line joins the EndTime's value and the StartTime's value (ie linear interpolation) instead of displaying nothing.
Another way to do it would be to draw this indicator as "points" instead of "lines" but I see no way to choose this option when calling Draw().
Is there any low-level method I could call?


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 3 hours

Who is online

Users browsing this forum: No registered users and 0 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group