| View previous topic :: View next topic |
| Author |
Message |
JetHedgehog
Joined: 10 Jan 2013 Posts: 3
|
Posted: Thu Jan 10, 2013 8:34 am Post subject: Dynamic levels on different timeframes |
|
|
Greetings!
I'm making "Murray Math Levels" idicator. All is working fine, except 1 very annoying thing... To draw dynamic horizontal levels I use CreateObject and create horizontal lines. That's working fine until switching to another timeframe... because I cannot detect it and redraw this lines.
If I install indicator on several timeframes at once, I cannot create different set of lines for different timeframes, cause it's the same chart window. It would be great if I can call AddLevel and later ChangeLevel or ClearLevels - simple and straightforward method. Sadly, there's no such valuable methods today.
I know that usually indicators should use IndexBuffers, but don't understand how I can draw infinite horizontal lines using Buffers...
Could you please implement ChangeLevel / ClearLevels method and/or give advice how to workaround this problem? |
|
| Back to top |
|
 |
FT Support
Joined: 11 Jul 2009 Posts: 901
|
Posted: Fri Jan 11, 2013 2:28 pm Post subject: |
|
|
Sorry but we do not plan to implement such functionality in nearest future. As a work-around you can try drawing lines with Canvas (see an example of using Canvas in TimeBox indicator code) with canvas you can actually draw everything on the chart. _________________ Check our other products here:
www.fx-metropolis.com
www.forexcopier.com |
|
| Back to top |
|
 |
JetHedgehog
Joined: 10 Jan 2013 Posts: 3
|
Posted: Fri Jan 11, 2013 5:31 pm Post subject: |
|
|
| Sadly, I don't have that example in Examples\... dir ... where is it? Could you please attach it to the post? Thank you! |
|
| Back to top |
|
 |
KelvinHand
Joined: 02 Jan 2011 Posts: 90
|
Posted: Fri Jan 11, 2013 11:55 pm Post subject: Re: Dynamic levels on different timeframes |
|
|
| JetHedgehog wrote: | Greetings!
I'm making "Murray Math Levels" idicator. All is working fine, except 1 very annoying thing... To draw dynamic horizontal levels I use CreateObject and create horizontal lines. That's working fine until switching to another timeframe... because I cannot detect it and redraw this lines.
If I install indicator on several timeframes at once, I cannot create different set of lines for different timeframes, cause it's the same chart window.
|
Not sure your problem.
But why can't you open all TFs in difference charts to display you "Murray Math Levels" to fix the issue, Before you use to install indicator on several timeframes at once ?
During your fixing on each timeframe, you can gather all the right setting and put into array for each timeframe.
I hope this help. |
|
| Back to top |
|
 |
JetHedgehog
Joined: 10 Jan 2013 Posts: 3
|
Posted: Sat Jan 12, 2013 7:31 am Post subject: |
|
|
| Quote: | | can't you open all TFs in difference charts to display you "Murray Math Levels" to fix the issue |
That's inconvinient. I'm using graphical analysis. For example, I can draw additional line manually once and see it in different timeframes. In your scenarion I'll need to draw 4 similar lines for 4 timeframes - quite annoying. |
|
| Back to top |
|
 |
|