I'm not quite certain how custom charts work exactly. How does the Plot() function know whether the values I'm charting are for minute, hour, or daily resolution? How does the Plot() function know which minute/hour/day does the value I'm adding to the series corresponds to?
Here is why I'm asking: I am trying to retroactively plot several days into the past. For example, if it is day 5 as far as the algorithm is concerned, I want the algorithm to plot data for days 1-4 on my custom chart. How would I go about achieving that?
Thanks,
Tomer
Michael Handschuh
Tomer Borenstein
Michael Handschuh
Tomer Borenstein
Michael Handschuh
algorithm.AddChart(chart);
Check out this example, I perform the same actions using a separate file/class that accepts your algorithm in the constructor.Tomer Borenstein
Tomer Borenstein
Jared Broad
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Mark Wise
Interesting. Is there a way we can display the key trade properties, such as entry price, stoploss position, and targets? It would be very helpful to have a visual aid to see what the trade entry, stop, and target prices were against a bar chart. If a trade fails, I'd like to know why, and having the visuals on screen would be awesome. Is that even possible?
Jared Broad
@Tomer - We now allow setting the color of lines and symbols for custom charts using the Color and ScatterMarkerSymbol property of the series. @Mark - you can tag orders with text, but on the chart there's currently no way to nicely put the information you're talking about and the charting library we use makes this difficult. You could make a custom series which simply contains information meaningful to you? E.g. Add a series "Stop Price" and each scatter point would be the price for the order.
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Tomer Borenstein
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!