Support Board
Date/Time: Tue, 26 Nov 2024 16:22:52 +0000
[Programming Help] - custom study identification shadow
View Count: 554
[2023-11-08 22:58:21] |
User491062 - Posts: 6 |
hello everyone, I have an idea for an indicator, where I need to be able to distinguish wicks from the body for my candles in my footprint, in order to have conditional alerts. For example, I'd like to calculate ratios but only for what's in the wick of the candle. Similarly, for my condition alert, I'll need to detect an edge volume treshold either in the bottom wick for a buying candle, or in the top wick for a selling candle. Or identify bearish candles that have a larger top wick than bottom shadow, and vice versa for bullish candles... To work on these projects, I need someone to help me identify top/bottom wicks so that I can create formulas. However, as I don't know how to distinguish the wick/body of the candles using my calculation formula, I can't get any hints on how to make the indicator I want. Thank you in advance for your valuable help. |
[2023-11-09 00:10:07] |
User719512 - Posts: 264 |
upper wick is high-max(open,close) bottom wick is min(open,close)-low these could be zero, so you want to check your math if using these in division operations. Date Time Of Last Edit: 2023-11-09 00:11:08
|
[2023-11-13 17:07:14] |
User491062 - Posts: 6 |
thank you for your help, it's been useful in moving forward with my indicators. However, I'm still stuck. I'm looking for a way to create a condition only in the wick. Example: I want it to identify bullish candles that have a threshold in the lower shadow; or identify bullish candles that have a positive delta only in the lower shadow. I don't know how to do it. I understand the formula you gave me, I've used it for other things but I can't find a function/formula to link the shadow to either the delta/ or the volume at price threshold. Thanks in advance to anyone who can help me. |
[2023-11-13 20:51:20] |
Sawtooth - Posts: 4120 |
There is no reasonable way to do what you want. You can return the BVAP or AVAP, but you must reference an offset from a known price. This means you'd need to know all of the prices between the H and the MAX(O,C). Same for the lower wick. Study/Chart Alerts And Scanning: VAP Essentially, you'd need to create a custom study using ACSIL. |
[2023-11-14 21:44:53] |
User491062 - Posts: 6 |
thank you for your reply. Are you sure you have to go through ACSIL? I don't know anything about it. It didn't seem like a complicated request though, I just wanted to display only the volume tresholds in the shadows and not those in the candle bodies... Isn't there a way to display the "Volume at price threshold Alert V2" indicator directly in alerts conditions? Anyone else have a solution? Thanks in advance, guys, PS: sorry for my broken English. |
Capture d'écran 2023-11-14 224104.png / V - Attached On 2023-11-14 21:44:44 UTC - Size: 32.9 KB - 74 views Attachment Deleted. |
[2023-11-15 00:32:55] |
Sawtooth - Posts: 4120 |
It didn't seem like a complicated request though
The Volume At Price Threshold Alert V2 study outputs prices at each exceeded threshold, with the lowest price as SG1, up to SG47 if necessary.So that means the exceeded thresholds in the wicks could be in any of its subgraphs, albeit clustered in the lower ones. It would be complicated to find only those values with a formula. In fact, it would take several formulas in a spreadsheet study. My comments in post #4 were referring to your desire to find the bid ask delta in the wicks. This too is complicated, and reasonably beyond the capability of Alerts and spreadsheet studies. I say 'reasonably' because there might be a cumbersome workaround where a lengthy formula would look for values in wicks way beyond their actual range just so you'd catch them all, much like the Volume At Price Threshold Alert V2 study does with its 47 trigger subgraphs. |
[2023-11-15 17:19:22] |
User491062 - Posts: 6 |
thank you for taking the time to reply. Even if I didn't understand everything... "The Volume At Price Threshold Alert V2 study outputs prices at each exceeded threshold, with the lowest price as SG1, up to SG47 if necessary. So that means the exceeded thresholds in the wicks could be in any of its subgraphs, albeit clustered in the lower ones. It would be complicated to find only those values with a formula. In fact, it would take several formulas in a spreadsheet study." Yes, that's what's most important to me. The delta is not so important. Can you tell me more about a possible formula to get what I want? Unfortunately, I don't have any ideas on how to get started. Thanks in advance. |
[2023-11-15 22:23:22] |
Sawtooth - Posts: 4120 |
Can you tell me more about a possible formula to get what I want?
Direct Message me please.
|
To post a message in this thread, you need to log in with your Sierra Chart account: