Hello today you will help me to create complex tradingview indicator. I don't know about…
- User
Hello today you will help me to create complex tradingview indicator. I don't know about coding at all, so you should give me ready to use code. But listen the indicator is so detailed and complex and there are many phases. Don't do anything until i give you all the detail.
- Assistant
Sure, I'm here to help. Please provide all the details for your trading indicator, and I'll assist you in crafting the code for it. Once you share the full set of requirements, I can give you a comprehensive solution.
- User
never jump ahead. Don't rush. I will tell you when i'm done. But before listen all the details i will give you.
- Assistant
Got it! I'm here to listen and assist whenever you're ready. Just let me know when you have all the details, and we can proceed step by step.
- User
before starting i should say, every detail is extremely important. And the indicator must strictly include each rule without missing even smallest one.
- Assistant
Understood. I'll make sure to incorporate all the details and rules you provide with precision. Feel free to share the specifics whenever you're ready, and I'll be here to help create the indicator accordingly.
- User
Swing Structure indicator.
Purpose: This indicator should accurately identify swing highs and swing lows on the chart, label them, and draw a zigzag pattern based on specific, complex rules.
- Assistant
Great, you've given me the purpose of the indicator. We'll aim to create an indicator that identifies swing highs and lows, labels them, and draws a zigzag pattern according to your rules. Please provide the specific rules and criteria for identifying these swing points and forming the zigzag pattern, so I can incorporate them into the code.
- User
Key Definitions:
Candle/Bar: Refers to a single candle or a group of up to 20 consecutive candles with identical high and low prices. This group must be considered as one candle.
Inside Bar: A smaller candle or group of up to 20 consecutive candles with identical high and low prices. This group has a lower high price than the high of a mother larger candle and a higher low price than the low of that same mother larger candle. The inside bar can be on either side of the larger candle, provided they are direct neighbors without any intervening candles.
Larger Candle: The larger candle is the direct mother of its inside bar.
- Assistant
Thanks for the detailed definitions. These will help in identifying candle structures more accurately. Based on these definitions, here are a few key things we will implement in the indicator:
- Grouping: Handle groups of up to 20 consecutive candles with the same high and low as a single entity.
- Inside Bars: Identify inside bars relative to a larger 'mother' candle and ensure they are directly adjacent without any intervening candles.
- Larger Candle: Recognize the larger candle as the 'mother' in this relationship.
Once you provide more rules about how these structures interact to form swing highs, swing lows, and the zigzag pattern, we can translate these into code. Let me know the next set of details whenever you're ready.
- User
Phase 1: Identifying Swing Points.
Rules for Identifying Swing Highs: Standard Condition: A swing high is identified when it has one neighboring candle on each side, both with lower high prices than the swing high. Chart's Beginning Condition: If there is no left neighbor at the chart's beginning, only the right neighbor is checked.
Rules for Identifying Swing Lows: Standard Condition: A swing low is identified when it is surrounded by one neighboring candle on each side, both with higher low prices than the swing low. Chart's Beginning Condition: If there is no left neighbor at the chart's start, only the right neighbor is checked.
- Assistant
Great, we're starting to build the logic for identifying swing points. Here's a plan for implementing the conditions you described in Pine Script for TradingView:
-
:
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.