Source: https://fxcodebase.com/code/viewtopic.php?f=17&t=70233
Forum: 17 · Topic 70233 · 13 post(s)
Apprentice · Mon Jul 27, 2020 5:07 pm

Based on request. viewtopic.php?f=27&t=70226
High Low Range Average Readout.lua
MadMan · Tue Jul 28, 2020 2:39 am
Thank you .. but it is not what I am looking for Please let me know if the above request is not clear
Thanks in advance
Apprentice · Tue Jul 28, 2020 1:57 pm
We have two lines, averages of 1) high - open 2) open - low
Can you specify the equation?
MadMan · Wed Jul 29, 2020 2:36 am
Can you please check the attached sheet and let me know .. it’s a sample
I need the two averages to be displayed on chart .. no lines or oscillator
Apprentice · Wed Jul 29, 2020 4:04 pm
As numbers only?
MadMan · Thu Jul 30, 2020 3:41 am
yes .. only the numbers (in pips)
Apprentice · Fri Jul 31, 2020 5:26 am
High Low Range Average Readout added.
MadMan · Sat Aug 01, 2020 3:45 am
Thank you Apprentice .. this is good .. nice and simple as desired
But can you please double check the calculation as I am getting different results on excel
let me break it down once more
The difference (in pips) between open price & highest price The difference (in pips) between open price & lowest price then calculate the average of the above two values for N number of periods EXCLUDING the current candle
Please let me know if more details needed.
Regards
Apprentice · Sun Aug 02, 2020 8:28 am
high[period]= source.high[period]-source.open[period]; low[period]= source.open[period]-source.low[period];
High[period]= mathex.avg(high,period-Period+1, period); Low[period]= mathex.avg(low,period-Period+1, period);
MadMan · Mon Aug 03, 2020 1:35 am
OK .. i will double check at my side
But is it possible to get the standard deviation as well .. same thing but instead of average .. calculate the standard deviation.
Thanks
MadMan · Tue Aug 11, 2020 5:06 am
Any update on my request ????
steveped · Sun Aug 23, 2020 7:05 pm
Hi guys, Any chance to have the line with 2 colours for >0 and <0 when ‘Combine’ is set to ‘Yes’?
Apprentice · Mon Aug 24, 2020 3:35 am
Try this version.