Big Body Candle
Forums › ProRealTime English forum › ProBuilder support › Big Body Candle
- This topic has 26 replies, 2 voices, and was last updated 4 years ago by parthapersonal.
-
-
08/04/2020 at 3:30 PM #140874
Sorry, but I can’t get what you mean.
Let’s recap (no pics are needed) what you want to be returned, as a list:
1) …
2) …
3) …
and, for each one of the poiunt, please specify if it has to be calculated on regular japanese candlesticks or HA candlesticks.
As you can see from the attached pic on Jul.30 at 11:05 (Utc + 10), which is 03:05 (Utc + 2 in Central Europe). the body of the regular candle is lower than the highest bodysize and it’s a bearish japanese candlestick. while at the same time there a bullish HA candlestick with a different body size.
You need to let me know every detail to be able to help you.
08/16/2020 at 2:02 PM #141733Thank 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
123456// Creating high and low lines for the "BIGBODY"if cond=1 thenlowline=lowelsif cond=-1 thenhighline=highendifModerators 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.
08/16/2020 at 2:04 PM #141735Please read point number 8. as ELSIF cond=-1 AND HH>highline AND HC<highline THEN
OBS=-6408/16/2020 at 3:31 PM #141742I prefer to restart from the beginning.
You have an idea and you want someone to code it to have a working indicator that makes it easier for you to trade. Now forget all you have written so far and explain me, as I said in my post https://www.prorealcode.com/topic/big-body-candle/page/2/#post-140874, what you expect from this indicator.
It will be much easier for me to code it from scratch.
08/17/2020 at 11:30 AM #141837OK, Robert. Here it is:
The outcome from the program should be to get trigger from current price if it is touching or going higher than the high (say BH) of the biggest body bearish bar within last 15 bars and closing below BH. Similarly on the opposite direction, program should generate trigger from current price if it is touching or going lower than the low (say BL) of the biggest body bullish bar within last 15 bars and closing above BL.
Have I made it clear enough or you need any other information, mate?
Many thanks.
08/17/2020 at 3:23 PM #141860There you go, the first one is to be added below your chart (like Macd):
Below your chart1234567891011121314151617181920212223242526272829DEFPARAM CalculateOnLastBars = 1000ONCE LookBackBars = 15Bullish = close > openBearish = close < openBody = abs(close - open)BigBull = 0BigBear = 0HH = 0LL = 0FOR i = 1 TO LookBackBarsIF Bearish[i] THENIF Body[i] > BigBull THENBigBull = Body[i]HH = high[i]ENDIFELSIF Bullish[i] THENIF Body[i] > BigBear THENBigBear = Body[i]LL = low[i]ENDIFENDIFNEXTx = 0IF high CROSSES OVER HH THENx = 1ELSIF low CROSSES UNDER LL THENx = -1ENDIFRETURN x AS "Signal"the second can be added both below or ON your chart:
Below or ON your chart1234567891011121314151617181920212223DEFPARAM CalculateOnLastBars = 1000ONCE LookBackBars = 15Bullish = close > openBearish = close < openBody = abs(close - open)BigBull = 0BigBear = 0HH = 0LL = 0FOR i = 1 TO LookBackBarsIF Bearish[i] THENIF Body[i] > BigBull THENBigBull = Body[i]HH = high[i]ENDIFELSIF Bullish[i] THENIF Body[i] > BigBear THENBigBear = Body[i]LL = low[i]ENDIFENDIFNEXTRETURN HH AS "HH",LL AS "LL"08/18/2020 at 1:35 PM #141921Many thanks Robert, much appreciated your effort. However your 2nd code is only identifying big body bars. This is not required. What is required is when low of a bar touches or goes below the low of bullish big body bar’s low then it should generate a bullish signal and when high of a bar touches or goes above the high of bearish big body bar’s high then it should generate a bearish signal. If you please fix this please.
thank you again.
08/18/2020 at 3:41 PM #141935Just use the first one.
08/19/2020 at 1:11 AM #141957Robert, you are a real genius.
Many thanks dear.
You have a very big and noble heart.
08/19/2020 at 4:46 AM #141958Hello Robert, there are some missing signals as captured with your original signal code (bottom one BigBodysignal (18)) as well with a small modifications as below (top one Big Body signal (18)):
IF high CROSSES OVER HH AND CLOSE<HH THEN
x = -5
ELSIF low CROSSES UNDER LL AND CLOSE>LL THEN
x = 5
ENDIF08/19/2020 at 6:46 AM #141960Because LOW is not crossing under in that case.
If you just need it to be below/above simply replace CROSSES UNDER with <= and CROSSES OVER with >=.
08/19/2020 at 1:19 PM #142053Many thanks dear. Much appreciated.
-
AuthorPosts
Find exclusive trading pro-tools on