मूल्य प्रदर्शन सूचकांक रणनीति

लेखक:चाओझांग, दिनांकः 2023-09-21 16:19:31
टैगः

अवलोकन

यह रणनीति मूल्य प्रदर्शन सूचकांक (पीपीआई) का उपयोग बाजार की प्रवृत्ति की दिशा निर्धारित करने के लिए करती है - जब पीपीआई बढ़ता है तो लंबा होता है और जब यह गिरता है तो छोटा होता है। पीपीआई मूल्य गति और भविष्य की दिशा को मापने के लिए एक अवधि में मूल्य परिवर्तन प्रतिशत की गणना करता है।

रणनीति तर्क

मुख्य तर्क:

  • पीपीआई एक अवधि में प्रतिशत मूल्य परिवर्तन की गणना करता है (डिफ़ॉल्ट 14 दिन)

  • जब पीपीआई बढ़ता है, तो यह कीमत बढ़ने का संकेत देता है - लंबे समय तक जाएं

  • जब पीपीआई गिरता है, तो यह कीमत में गिरावट का संकेत देता है - शॉर्ट करें

  • व्यापार संकेतों को उलटने का विकल्प

बढ़ती PPI ऊपर की ओर गति जमा करती है, गिरती PPI नीचे की ओर गति दिखाती है। उचित मापदंडों के साथ PPI को ट्रैक करने से मध्यम और दीर्घकालिक रुझानों को कैप्चर किया जा सकता है।

लाभ

  • मूल्य प्रवृत्ति और गति निर्धारित करने के लिए सरल संकेतक

  • अनुकूलन योग्य मापदंड विभिन्न उत्पादों के अनुरूप हैं

  • स्पष्ट और सहज व्यापारिक तर्क

  • रिवर्सल ट्रेडिंग विभिन्न बाजार परिवेशों के अनुकूल होती है

जोखिम

  • अल्पकालिक शोर को फ़िल्टर करने में असमर्थ, झूठे ब्रेकआउट के लिए प्रवण

  • कोई स्थिति आकार या स्टॉप लॉस प्रबंधन नहीं

  • खराब मापदंडों से रुझान चूक सकते हैं या अधिक व्यापार हो सकता है

शमन उपाय:

  • स्थिरता और संवेदनशीलता को संतुलित करने के लिए मापदंडों को अनुकूलित करें

  • प्रति व्यापार नियंत्रण हानि में स्टॉप लॉस जोड़ें

  • प्रति व्यापार कम जोखिम के लिए स्थिति आकार पर विचार करें

बढ़ोतरी के अवसर

  • विभिन्न उत्पादों के लिए परीक्षण पैरामीटर संयोजन

  • झूठे संकेतों को स्क्रीनिंग करने के लिए अन्य फ़िल्टर जोड़ें

  • गतिशील स्थिति आकार निर्धारण तंत्र विकसित करना

  • ट्रेलिंग या समय आधारित स्टॉप लॉस जोड़ें

  • सिग्नल की गुणवत्ता का आकलन करने के लिए ML

निष्कर्ष

यह रणनीति सरलता और सार्वभौमिकता के साथ मूल्य प्रदर्शन सूचकांक द्वारा प्रवृत्ति निर्धारित करती है। मापदंडों, जोखिम नियंत्रण आदि में आगे के सुधार इसे एक मजबूत मात्रा रणनीति बना सकते हैं। यह प्रवृत्ति का पता लगाने के लिए सरल संकेतकों का उपयोग करने का एक प्रभावी दृष्टिकोण प्रदान करता है।


/*backtest
start: 2022-09-14 00:00:00
end: 2023-09-20 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=2
////////////////////////////////////////////////////////////
//  Copyright by HPotter v1.0 23/03/2018
// The Performance indicator or a more familiar term, KPI (key performance indicator), 
// is an industry term that measures the performance. Generally used by organizations, 
// they determine whether the company is successful or not, and the degree of success. 
// It is used on a business’ different levels, to quantify the progress or regress of a 
// department, of an employee or even of a certain program or activity. For a manager 
// it’s extremely important to determine which KPIs are relevant for his activity, and 
// what is important almost always depends on which department he wants to measure the 
// performance for.  So the indicators set for the financial team will be different than 
// the ones for the marketing department and so on.
//
// Similar to the KPIs companies use to measure their performance on a monthly, quarterly 
// and yearly basis, the stock market makes use of a performance indicator as well, although 
// on the market, the performance index is calculated on a daily basis. The stock market 
// performance indicates the direction of the stock market as a whole, or of a specific stock 
// and gives traders an overall impression over the future security prices, helping them decide 
// the best move. A change in the indicator gives information about future trends a stock could 
// adopt, information about a sector or even on the whole economy. The financial sector is the 
// most relevant department of the economy and the indicators provide information on its overall 
// health, so when a stock price moves upwards, the indicators are a signal of good news. On the 
// other hand, if the price of a particular stock decreases, that is because bad news about its 
// performance are out and they generate negative signals to the market, causing the price to go 
// downwards. One could state that the movement of the security prices and consequently, the movement 
// of the indicators are an overall evaluation of a country’s economic trend.
//
// You can change long to short in the Input Settings
// WARNING:
//  - For purpose educate only
//  - This script to change bars colors.
////////////////////////////////////////////////////////////
strategy(title="Perfomance index Backtest")
Period = input(14, minval=1)
reverse = input(false, title="Trade reverse")
xKPI = (close - close[Period]) * 100 / close[Period]
clr = iff(xKPI > 0, green, red)
p1 = plot(xKPI, color=blue, title="KPI")
p2 = plot(0, color=blue, title="0")
pos = iff(xKPI > 0, 1,
       iff(xKPI < 0, -1, nz(pos[1], 0))) 
possig = iff(reverse and pos == 1, -1,
          iff(reverse and pos == -1, 1, pos))	   
if (possig == 1) 
    strategy.entry("Long", strategy.long)
if (possig == -1)
    strategy.entry("Short", strategy.short)	   	    
barcolor(possig == -1 ? red: possig == 1 ? green : blue ) 
fill(p1,p2,color=clr)

अधिक