[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FanLines on Indicators



PureBytes Links

Trading Reference Links

I'm trying to calculate (&plot) FanLines on inicators :
I already know how to draw the TrendLine after the two points -which
generated it- have occurred , using the function
TLValueEasy = (Price[RightBar] - Price[LeftBar]) / (LeftBar - RightBar) *
(RightBar - TrgtBar) + Price[RightBar]
In my case ,of course, Price=osc .

Now I'm trying to use this formula to calculate the FanLine -of the same two
points- "Dividing Price by 0.75" as Omega does in its FanLine tool  .

I tried to divide  "Price[RightBar]"  by 0.75 in the previous formula
TLValueEasy = (Price[RightBar]/0.75 - Price[LeftBar]) / (LeftBar - RightBar)
* (RightBar - TrgtBar) + Price[RightBar]/0.75
but the slope is not correct.

Any suggestion ?