How to plot 2 symbols on different panes with annotations, trades etc
Author: akuzn
Creation Date: 7/11/2012 1:28 PM
profile picture

akuzn

#1
Good day.
I use 5 methods that follow and trail open position and i plot all calculated levels on PricePane using
AnnotateBar, SetBackGroundColor, SetBarColor and some other methods.

But now i need to plot trades of 2 stocks. Price series are plotted on different panes.
Is there any way to use Chart methods not only on PricePane but on any other Pane?
profile picture

Eugene

#2
Hi,

Not directly but there is a workaround. Check this out:

FAQ | Strategies and WealthScript > [LINK=http://www2.wealth-lab.com/WL5WIKI/kbFAQStrategy.ashx]
Is there a way to see the trades on secondary symbols?[/LINK]
profile picture

Eugene

#3
More of the same:

Community Components > PlotSymbolTrades
profile picture

akuzn

#4
I followed FAQ link and i ve read it before

But AnnoteBar plots on PricePane... I dont understand how to use it on other pane.

I found how to use SetBackGroundColor on other pane ( it was in quickref )
CreatePane new_pane ();
new_pane.SetBackGroundColor ();
that's ok but what about AnnotateBar?
profile picture

Eugene

#5
Carefully read my other pointer.
profile picture

akuzn

#6
Interesting method.

As for lines, circles etc it will be easy to draw on any pane.

But still have no idea how to use AnnotateBar. I use this method to draw confirmed signals withoud trades.
Trade may be done or not.
I suppose if there is an example how to make triangles in FAQ link must be decision how to use AnnotateBar in other Pane. Unfortunately i cant use it like pane.SetBAckGroundColor().


------------
SetContext is well described method.
But in given example triangle and arrow will be plotted on PricePane. But we need another pane.
Any idea?
profile picture

Eugene

#7
QUOTE:
I suppose if there is an example how to make triangles in FAQ link must be decision how to use AnnotateBar in other Pane.

You can use AnnotateChart for that.
QUOTE:
But in given example triangle and arrow will be plotted on PricePane. But we need another pane.

Here we go again, round and around. I already pointed you at the PlotSymbolTrades example.
profile picture

akuzn

#8
No loops, Eugene.
AnnotateChart works, but i would prefere AnnotateBar. It makes better offset.
When i use High[bar] or Low[bar] AnnotateChart draws too close.
Is there possibility to draw in some pixels displacement?

As for PlotSymbolTrades - i dont know why, it works, i would say strange style.
Triangles are too far from bars.
Anyway thanks. I developed better methods.
profile picture

Eugene

#9
Alexey, we're talking about workarounds here. Question is rhetorical, but would I be suggesting workarounds if there was a direct way to do something? As you can see in the QuickRef, AnnotateBar is bound to work with PricePane.
profile picture

akuzn

#10
Agree.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).