- ago
In my extension-coded strategy, I am plotting an additional bar history object on a custom pane. The strategy places orders on this non-primary bar history object. I want to plot buys, sells, shorts and covers on this additional pane just like how they are automatically plotted on the primary price pane when trading on the primary bars object.

I can use the DrawBarAnnotation method with specific colors and TextShape enumeration. However, when trading with primary bars, the price pane shows the buy/sell prices as a tooltip when hovering on the annotations. It also draws a line between matching entry/exit trade pairs. I am not able to reproduce this behavior with a custom pane and bar history.

Is there a way to do it?
2
584
4 Replies

Reply

Bookmark

Sort
Cone8
 ( 24.56% )
- ago
#2
I'll turn this into a feature request. In my mind we'd add an optional parameter to PlotBarHistory().

IS:
• public void PlotBarHistory(BarHistory bh, string paneTag, WLColor color = default(WLColor), bool fitInAxis = false)

PROPOSED:
• public void PlotBarHistory(BarHistory bh, string paneTag, WLColor color = default(WLColor), bool fitInAxis = false, bool plotTrades = false)
0
- ago
#3
Thanks Cone, Could you also add an option to plot stops & limits for the bar history?
0
Cone8
 ( 24.56% )
- ago
#4
Let's just piggy back it to this request....

• public void PlotStopsAndLimits(BarHistory bars, int dotSize = 6, ...

Make sure to vote for your own request on the starter post. I'm the only one so far!
0

Reply

Bookmark

Sort