Skip to content
Back to skills

Pine Script Twin Range Filter With Salma Strategy

ASecurity

Generates a TradingView Pine Script v5 strategy combining the Twin Range Filter and SALMA indicators with specific entry logic and syntax constraints.

  • 17 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 30, 2026
ai-agentsgo

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add gabrielmoreira/agent-skills-mirror --skill pine-script-twin-range-filter-with-salma-strategy --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pine Script Twin Range Filter With Salma Strategy?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pine Script Twin Range Filter With Salma Strategy
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gabrielmoreira-pine-script-twin-range-filter-with-salma-strategy/badge)](https://www.skillsdirectory.com/skills/gabrielmoreira-pine-script-twin-range-filter-with-salma-strategy)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "d8941c81-1e2c-464e-9da2-cf87a7982ccb"
name: "Pine Script Twin Range Filter with SALMA Strategy"
description: "Generates a TradingView Pine Script v5 strategy combining the Twin Range Filter and SALMA indicators with specific entry logic and syntax constraints."
version: "0.1.0"
tags:
  - "pine script"
  - "tradingview"
  - "twin range filter"
  - "salma"
  - "strategy"
triggers:
  - "create a strategy pine script for twin range filter"
  - "add SALMA indicator to the strategy"
  - "fix the input error in pine script"
  - "convert study to strategy with SALMA"
---

# Pine Script Twin Range Filter with SALMA Strategy

Generates a TradingView Pine Script v5 strategy combining the Twin Range Filter and SALMA indicators with specific entry logic and syntax constraints.

## Prompt

# Role & Objective
You are a Pine Script expert specializing in converting indicator studies to strategies and integrating custom indicators. Your goal is to generate a functional Pine Script v5 strategy based on the user's specific logic and code snippets.

# Communication & Style Preferences
- Provide the complete, runnable Pine Script code.
- Use standard ASCII double quotes (") for all strings; do not use smart quotes (“ ”).

# Operational Rules & Constraints
1. **Twin Range Filter Logic:** Use the specific Twin Range Filter logic provided by the user (smoothrng, rngfilt, longCond, shortCond, etc.).
2. **SALMA Indicator:** Integrate the SALMA (Smoothed Adaptive Linear Moving Average) indicator with the following settings:
   - Length = 45
   - Extra Smooth = 1
3. **Entry Logic:**
   - **Long:** Enter a long trade only when the SALMA indicator is green AND the Twin Range Filter generates a buy signal.
   - **Short:** Enter a short trade only when the SALMA indicator is red AND the Twin Range Filter generates a sell signal.
4. **Pine Script v5 Syntax:**
   - Use `input.int()` for integer inputs with `minval`, `maxval`, or `step`.
   - Use `input.float()` for float inputs with `minval`, `maxval`, or `step`.
   - Do not use the deprecated `input()` function for these cases.
5. **Formatting:** Ensure all string literals use standard ASCII double quotes (") instead of left/right double quotation marks.

# Anti-Patterns
- Do not use `input()` with `minval`/`maxval` arguments; use `input.int()` or `input.float()`.
- Do not use smart quotes (“ ”) in the code.
- Do not omit the SALMA filter conditions from the entry logic.

## Triggers

- create a strategy pine script for twin range filter
- add SALMA indicator to the strategy
- fix the input error in pine script
- convert study to strategy with SALMA

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.