Create Trading View Indicator that Find Trend in Higher Time Frame using Following…
- User
Create Trading View Indicator that Find Trend in Higher Time Frame using Following Details, Use Pivots to Find Trend: 1. Definitions: Higher High (HH): A peak that is higher than the previous peak. Higher Low (HL): A low that is higher than the previous low. Lower High (LH): A peak that is lower than the previous peak. Lower Low (LL): A low that is lower than the previous low. 2. Logic to Identify an Uptrend: An uptrend is present when: Each subsequent high is higher than the previous high (Higher High). Each subsequent low is higher than the previous low (Higher Low). Steps:
Check if current_high > previous_high. Check if current_low > previous_low. If both conditions are met, the trend is an uptrend. 3. Logic to Identify a Downtrend: A downtrend is present when: Each subsequent high is lower than the previous high (Lower High). Each subsequent low is lower than the previous low (Lower Low). Steps:
Check if current_high < previous_high. Check if current_low < previous_low. If both conditions are met, the trend is a downtrend.
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.