Rank: Newbie
Groups: Registered, Registered Users Joined: 8/31/2010(UTC) Posts: 6
|
hello
All works fine except for this: I use an indicator which draws lines automatically and sometimes such a line can be a lot higher/lower than the current price. The problem is that if it is like 30 pips under the current price, that the chart also wants to display this line (although it's not needed) and the bars are very flat/compressed because of this.
Now, is it possible to make the chart in the middle with eg, 10 pips above and under the bars? Or does anyone have another solution so that the chart doesn't want to display the line, wherever it is...?
thx in advance Steven
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 7/25/2005(UTC) Posts: 1,042
Was thanked: 57 time(s) in 54 post(s)
|
Hi Steven
You can keep your indicator connected to (scaled to) the price but stop it being limited by the upper and lower borders of the chart window quite easily. The trick to this is to add an expression that generates an N/A result, such as ValueWhen(1,0,0), after the existing output/result expression. The down side of adding this "feature" is that you can no longer read off the indicators' value from the data window. Also it would pay to make sure that chart options are set to Scroll recalculates y-axis. Go to Tools/Options/Chart Options to find this setting.
Roy
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 8/31/2010(UTC) Posts: 6
|
Thank you for the response Roy.
With 'no longer read off the value', do you mean that the trendline wouldn't appear if there was an N/A result? Because I would like to still be able to see the trendline when I scroll to the left of zoom out.
thx Steven
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 7/25/2005(UTC) Posts: 1,042
Was thanked: 57 time(s) in 54 post(s)
|
HSteven
No, that's not what I meant. The "Data Window" canbe either a small display of values when you hold the cursor over a plot, or it can be the window that opens when you click on the crosshairs on the toolbar (or View/Data Window).
Roy
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 8/31/2010(UTC) Posts: 6
|
O, wow, it was indeed easy. I thought I had to implement it in the same line as the formula that draws the line but it is really just writing exactly 'Valuewhen(1,0,0);' after all other code.
So, thank you for your help Roy, it worked. :)
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.