Login Page - Create Account

Support Board


Date/Time: Mon, 29 Apr 2024 07:47:39 +0000



[User Discussion] - Formula not working correct on a Renko Bar with wicks

View Count: 1395

[2017-06-19 18:10:40]
User375110 - Posts: 28
SC or any programmer who may know:
How come my formula to test the H and L of a Renko bar with wicks is not returning the correct info. I know the formula is correct because it returns the correct data at times. The compact tool values windows always shows the H and L of the bar correctly? However, for some reason the formula and the resulting alert are not getting triggered at times? Please explain. When I test I use H - L <= 2.00, Where H is the high of the renko with wicks bar and L is the low of the same bar and the difference between the H and the L is 2.00, which represents 8 ticks on an ES renko bar. I realize that not every renko bar with wicks will be the same size.

My formula is: =and( (H-L <= 2.00 ), H[-1] >= id10.sg1[-1], L[-1] <= id10.sg1[-1] )

H = renko bar high
L - renko bar low
id10.sg1 is just an expoential mov. avg.


Please explain. I looked here ==>> Renko Bar Charts: Renko Open, High, Low, Close Values

An excerpt from that link is below:
The candlestick wicks, if visible on a Renko bar, are based upon the true High and Low values of the Renko bar, which are based upon the actual underlying price data. In ACSIL these are accessed with the SC_HIGH and SC_LOW sc.BaseData[] arrays. With Simple Alert Formulas, these are accessed with H or ID0.SG2 (High) and L or ID0.SG3 (Low).

That info above seems to say to use to the H and L, correct?

Also, my value format is set to inherited.

Thanks in advance.
Date Time Of Last Edit: 2017-06-19 18:28:50

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account