add horizontal Line in existing Trend Indicator - line

I am using the MTrendSqueeze Indicator which is based on a simple moving average value.
I want TradingView to draw a line, once this condition is met:
Barclose divided through current trend indicator value = 50 or less
That means in the example picture it would be:
4,89 / 0.2 = 24,45
It´s less than 50, so draw a line there
MTrend example

Related

CR | Copy data to another row using a formula field or variable

Here is my problem:
Raw data 1
If there is a position 105 and 150, I need the material number of position 150. If there is only position 105, I need the material number of position 105.
On the right side of the picture you can see the correct selected material number.
Now I need to assign this data to position 100 (bc I will use a counter later on, which is depending on position 100).
Here you can see more of the raw data of the report (I can´t insert the complete report here, I use the details area only for testing).
I marked one "group" in which you can see why I can´t change the order of the positions. In this case I need to use position 105 to output the material number (number rightmost on the red border) because there is no position 150.
Raw data 2
Here is another example with position 150 used for the material number (the correct material number will be placed on position 105 every time):
Raw data 3
To use this material number in my following tables, it need to be assigned to position 100.
Thanks!

Pentaho CCC Bar chart : displaying a threshold

I have a bar chart displaying a monthly ratio (e.g. amount of sales in a country ) : I have the month on horizontal axis and the height of each bar is the amount.
Let's assume that the boss sayed 'the monthly amount of sales must be at least 10000€' : I would like to draw an horizontal line with y-coordinate = 10000
How can I do that?
Thank you
I found a solution : I have had a plot2 with the value of 10000 => that draws a circle ; then, in the post execution, I wrote some javascript in order to replace the circle by a line

VB2010 Setting logarithmic scale intervals

I'm developing a financial application in which I need to display data in a chart with a logarithmic scale on the Y axis. Everything works fine except for the intervals. With the following:
chart.ChartAreas(0).AxisY.IsLogarithmic = True
chart.ChartAreas(0).AxisY.LogarithmBase = 10
chart.ChartAreas(0).AxisY.Interval = 1
chart.ChartAreas(0).AxisY.Minimum = CalcMinYVal(minYVal)
I get the CalcMinYVal multiplied by 10^0,10^1,10^2,10^3 and so on for the Y-axis values.
I would like to have the Y axis values increased by 1. How can I have the interval be REALLY 1?
You can enable the MinorGrid property
chart.ChartAreas(0).AxisY.MinorGrid = True
to show the horizontal lines in between the powers of 10 like shown below.
But there is a limitation in showing the value for each subdivision. They can only appear in fixed intervals by using the Interval property of the LabelStyle.
For example to show 10 subdivisions, you can set:
Chart.ChartAreas(0).AxisY.LabelStyle.Interval = 0.1
The number of the horizontal lines of the MinorGrid can be controlled by using its Interval propery:
Chart.ChartAreas(0).AxisY.MinorGrid.Interval = 1
and the values of the labels can be rounded by using the format property:
Chart.ChartAreas(0).AxisY.LabelStyle.Format = "{0.0}"

How to show datavisualization line chart start from 0 and maximum value 50 at Y-Axis in Windows Phone 8?

I want to display a line series chart using datavisualization in Windows Phone 8, whose Y-axis value always starts from 0 and having maximum range value 50.It means all the times it should display grid lines from 0 to 50 values with interval equals to 5.
I implemented the line chart but the problem i am facing is that suppose Y-axis data value is{10,14,24,31} then chart will default starts from 10 to 35. How to give starting value as 0 and maximum value as 50 for the chart?

Core Animation - How to calculate duration so that two lines of different length are drawn at the same rate

I have two lines at different lengths
Line1 -----
Line2 -------------
How can I calculate the animation duration for each line so that they both are drawn at the same speed.
At the moment, I have a set value for duration
line1.duration = 1;
line2.duration = 1;
Because of the different lengths, line1's animation is slower than line2.
How can I calculate the animation duration with a fixed speed?
EDIT
Forgot to mention that line1 doesn't know line2's length as the lines are drawn in a loop. What i'm after is a constant velocity calculation / pixels per seconds
Try this:
line2.duration = lengthOfLine2 / lengthOfLine1 * line1.duration;
(substitute the appropriate values.)
I am assuming: Drawing at same rate - You mean both of them should end drawing simultaneously.
Suppose Line 1 : Length - 100 px
Suppose Line 2 : Length - 350 px
Then suppose 1 px takes 1 ms then Line 1 will take 100 ms
For Line 2 to take 100 ms it needs to draw (350/100 = 3.5 px/ms)
So suppose Short line takes time "t" for line of length "l1"
Then greater line should take time "l2/t" for line of length "l2"
for both of them to stop drawing simultaneously.