Thank you Robert and sorry for the delay in response. The problem is: the values of “Highline” and “Lowline” is changing with each bar. they should only change according to the code. I tried the condition code as
// Creating high and low lines for the "BIGBODY"
if cond=1 then
lowline=low
elsif cond=-1 then
highline=high
endif
Moderators Edit: Use the ‘Insert PRT Code’ button whenever you post code!
but it did not change anything
Here is a situation as below for ASX 200 (Australia 200 Cash A$1) in 5 min chart:
1. Date and time: Sat 15-Aug-2020 01:50 (Our time zone (TZ) is UTC+ 10 and we are using PRT (v10.3 – 1.8.0-_202) from IG)
2. The bar is bearish with bigbody (with P=15)
3. Cond=-1, highline= high (6095.1)
4. Date and time: Sat 15-Aug-2020 02:00, Cond=-1, highline should be= 6095.1 but it is changing to current bar’s high as 6095.6
5. Date and time: Sat 15-Aug-2020 02:35, Cond=-1, highline should be= 6095.1 but it is appearing as current bar’s high as 6096.1
6. High (6096.1) of this Heikin Ashi> highline (6095.1)
7. Heikin Ashi close (6094.4) < highline (6095.1)
8. Condition in code is matching (<span class=”crayon-st”>ELSIF</span> cond<span class=”crayon-o”>=</span><span class=”crayon-o”>-</span><span class=”crayon-cn”>1</span> <span class=”crayon-st”>AND</span> HH<span class=”crayon-o”>></span>highline <span class=”crayon-st”>AND</span> HC<span class=”crayon-o”><</span>highline <span class=”crayon-st”>THEN </span>OBS<span class=”crayon-o”>=</span><span class=”crayon-o”>-</span><span class=”crayon-cn”>64) but histogram is not appearing as highline is changing with each bar.
</span>
9. Another problem is there are so many histograms are appearing (marked in the chart as “x”) without conditions matching.
Your assistance will be much appreciated.