Extracted algorithm research record
Pine Script – Strategy
A basic strategy using MACD, RSI, and Stochastic with breakout conditions for long and short entries.
Source & extraction context
Evidence label: source_code (source claim, not independent verification). Recorded completeness: 80.0/100. Neither is a performance result.
Names identify source records. Inclusion is not an endorsement or a claim of authorship, ownership or reuse permission. Check the source license before reusing any implementation.
Extraction warnings
No automated warnings are recorded in this snapshot. This does not establish that the extraction or system is sound.
Recorded market & execution profile
- Recorded markets
- XAUUSD
- Recorded timeframes
- any
- Recorded sessions
- any
- Recorded regime
- trending|ranging|volatile
Recorded indicators & parameters
| Indicator | Parameters | Applied to |
|---|---|---|
| EMA | {"period": 21} | close |
| Bollinger Bands | {"deviations": 2, "period": 20} | close |
| MACD | {"fast_period": 12, "signal_period": 9, "slow_period": 26} | close |
| RSI | {"period": 14} | close |
| Stochastic | {"period": 14} | close |
Extracted strategy rules
Recorded long-entry rules
- mymacdLine > 0 AND rsiValue < 30 AND stochD < 20
Recorded short-entry rules
- mymacdLine < 0 AND rsiValue > 70 AND stochD > 80
Recorded exit rules
- IF NOT OnMarket AND longcondition2 THEN
- sl = 1000 - deltaTPSL
- BUY contratto CONTRACTS AT MARKET
- SET STOP PLOSS sl
- SET TARGET PPROFIT tp
- ENDIF
- IF NOT OnMarket AND shortcondition2 THEN
- sl = 1000 - deltaTPSL
- SELLSHORT contratto CONTRACTS AT MARKET
- SET STOP PLOSS sl
- SET TARGET PPROFIT tp
- ENDIF
Recorded filters
- Not specified in the extracted record.
- Stop loss
- 500 - deltaTPSL
- Take profit
- 1000 + deltaTPSL
- Position sizing
- 2 contracts per trade
Questions about this record
What entry rules are recorded for Pine Script – Strategy?
Long: mymacdLine > 0 AND rsiValue < 30 AND stochD < 20 Short: mymacdLine < 0 AND rsiValue > 70 AND stochD > 80 These are unverified extracted rules.
Which markets and timeframes are recorded?
Markets: XAUUSD. Timeframes: any. These are source-recorded labels, not verified execution behavior.