Profile Picture

No line graphed during empty members of UserSeries

Posted By CaZeek 2 Years Ago
Message
Posted Thursday December 17 2015
Hello,

Is there a way to have RightEdge only plot the UserSeries for the dates there is a value stored?  Basically, I have a "trailing stop" that will execute a market order to close on the following bar if a bar closes below it.  I constructed a UserSeries that indicates the price of that stop, but when I have no position on (and thus no stop or values for those bars in the UserSeries), I don't want to see the UserSeries.  Right now, it connects the last member of the UserSeries to the next available member (ie it connects the last previous stop price to the initial one generated by a new trade).  I don't want the line to draw this connection; I just want it to be blank until the next data point.

I hope this was understandable.  The relevant code right now is something like:

private UserSeries eodStop;
eodStop= new UserSeries();

In NewBar(), if there is an active position:
eodStop.Current=trailingEODStopPrice;


Thanks!

Edited: Thursday December 17 2015 by CaZeek
jcr
Supreme Being (1,259 reputation)Supreme Being (1,259 reputation)Supreme Being (1,259 reputation)Supreme Being (1,259 reputation)Supreme Being (1,259 reputation)Supreme Being (1,259 reputation)Supreme Being (1,259 reputation)Supreme Being (1,259 reputation)Supreme Being (1,259 reputation)
Posted Thursday January 26 2017
Hello CaZeek,
Any ideas to approach to the NaN UserSeries values on chart?
Thanks


Similar Topics


Reading This Topic


2005-2017 © RightEdge Systems