Type/to search

Scaled Normalized Vector Strategy with Activation Functions, ver.4

Common strategy
Created: 2024-01-22 09:02:30
Last modified: 3 years ago
1
Follow
1802
Followers

img

Overview

This is an improvement of drkhodakarami's Scaled Normalized Vector strategy, mainly adding activation functions to enhance the strategy's performance. The strategy calculates the rate of change in the market based on timeframe differences, and determines long and short signals based on threshold values. Meanwhile, swish, ReLU and step activation functions are introduced to smooth the differential sequence and improve the accuracy of signal judgement.

Strategy Logic

  1. Calculate the percentage price change x of close on the set timeframe
  2. Pass x to the activation function to get the processed sequence p
  3. Set positive and negative thresholds th, go long when p crosses above th, and go short when crossing below -th
  4. Disable repainting to avoid fake signals

Advantage Analysis

  1. Activation functions help filter noise and improve signal judgement
  2. New entry and close logic enables automated trading
  3. More parameter customization adapts to more markets
  4. Excellent visualization intuitively presents trade signals

Risk Analysis

  1. Improper threshold settings may miss trade opportunities
  2. Unsuitable activation functions may over-filter market information
  3. Repainting-induced signal distortions need testing

Solutions:

  1. Adjust threshold parameters to find optimum
  2. Try different activation functions to find the best match
  3. Add repainting detection logic to confirm valid signals

Optimization Directions

  1. Add adaptive threshold setting
  2. Optimize activation function parameters
  3. Incorporate automatic stop loss
  4. Filter signals with more factors

Conclusion

Based on drkhodakarami's work, this strategy introduces activation functions to enhance performance. The expanded parameter customization better adapts to market changes. Meanwhile, the excellent visualization intuitively presents trading opportunities. Next steps are to further optimize activation functions and threshold settings, incorporate stop loss logic and more signal filtering to achieve even better strategy efficacy.

Source
Pine
/*backtest
start: 2023-01-15 00:00:00
end: 2024-01-21 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=4
// author: capissimo
strategy("Scaled Normalized Vector Strategy, ver.4", precision=2, overlay=false)
// This is a modification of my Scaled Normalized Vector Strategy  
Strategy parameters
Strategy parameters
Price Data
Timeframe
Threshold
Divisor
Minimax Lookback
Volume
Use Old System
Activation
Karobein Osc Lookback
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)