Stiffness indicator
Forums › ProRealTime forum Italiano › Supporto ProBuilder › Stiffness indicator
- This topic has 7 replies, 4 voices, and was last updated 3 years ago by
robertogozzi.
Tagged: Katsanos, Markos, Markos Katsanos, stiffness
-
-
09/12/2021 at 11:13 AM #177292
Stiffness Indicator
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960//STIFFNESS INDICATOR//Copyright Markos Katsanos 2018Period=Param("Stiffness Period", 60, 2, 1000, 1 );MAB=Param("Moving Average Period",100,2,1000,1);SM=Param("Smooth Coeff.",3,1,20,1); STIFFCRIT=Param("STIFFCritical",90,70,100,5);NSTD=Param("Min SD",.2,0,2,.5);//STIFFNESSMA2=MA(C,MAB)-NSTD*StDev(C,MAB);CLMA=C>MA2;PENS=Sum(CLMA,PERIOD);STIF=PENS*100/PERIOD; STIFFNESS=EMA(STIF,SM); Plot(stiffness,"STIFFNESS",colorRed ,styleHistogram ); Plot(STIFFCRIT,"STIFFCritical",colorGreen,styleThick);Stiffness strategy//STIFFNESS STRATEGY//Copyright Markos Katsanos 2018PosQty=500;SetOption( "MaxOpenPositions", PosQty );SetPositionSize( 10000, spsValue );SetTradeDelays( 1, 1, 1, 1 );BuyPrice=OPEN;SellPrice=OPEN;timeexit=Optimize("exit",4,4,4,1); //MONTHSMAB=Optimize("MAB",100,50,120,10); // MA DAYSPERIOD=Optimize(" STIFF PERIOD",60,40,80,10); STIFFCRIT=Optimize("STIFFCRIT",90,90,95,5); STIFFSELL=Optimize("STIFFSELL",50,50,60,10);//STIFFNESSMA2=MA(C,MAB)-.2*StDev(C,MAB);CLMA=C>MA2;PENS=Sum(CLMA,PERIOD);STIF=PENS*100/PERIOD;STIFFNESS=EMA(STIF,3);SPY=Foreign("SPY","C");BUY=EMA(SPY,100)>=Ref(EMA(SPY,100),-2) ANDCross(STIFFNESS,STIFFCRIT) ;Sell=Cross(STIFFSELL,STIFFNESS);//time exitApplyStop( stopTypeNBar, stopModeBars, timeexit*21 );Stiffness exploration//STIFFNESS EXPLORATION//Copyright Markos Katsanos 2018MAB=100; // MA DAYSPERIOD=60;// STIFFNESS PERIODSTIFFCRIT=90;// STIFFNESS CRITICAL//STIFFNESSMA2=MA(C,MAB)-.2*StDev(C,MAB);CLMA=C>MA2;PENS=Sum(CLMA,PERIOD);STIF=PENS*100/PERIOD; STIFFNESS=EMA(STIF,3);SPY = Foreign("SPY","C");FILTER=EMA(SPY,100)>=Ref(EMA(SPY,100),-2) ANDCross(STIFFNESS,STIFFCRIT) ;AddColumn(C,"Price",1.2);AddColumn(Volume,"Volume",1.0); AddColumn(MA(Volume,2)/MA(Volume,50),"V/Vave",1.2);AddColumn(RSI(6),"RSI",1); AddColumn(STIFFNESS,"STIFFNESS",1.2); AddColumn(C+8*ATR(50),"PROFIT TARGET",1.2);09/13/2021 at 10:00 AM #17738709/13/2021 at 10:34 AM #17740309/13/2021 at 10:41 AM #177404In questo sito, l’autore presente l’indicatore e le motivazioni alla base della sua creazione: https://mkatsanos.com/stiffness-indicator/
09/13/2021 at 10:46 AM #17740609/13/2021 at 11:06 AM #17740909/13/2021 at 11:39 AM #177415Eccolo:
Stiffness indicator di Markos Katsanos12345678//https://mkatsanos.com/stiffness-indicator///P = 100 //periodi osservatiSma100 = Average[P,0](close)Sma = Sma100 + (0.2 * STD[P](close)) //aggiungere uno scarto minimoConto = summation[P](close > Sma) //conteggia quante volte il prezzo è stato sopra la mediaStiff = 100 * (Conto / P)RETURN Stiff AS "Stiffness %"1 user thanked author for this post.
09/14/2021 at 9:19 AM #177518Ho aggiunto alla libreria (https://www.prorealcode.com/prorealtime-indicators/stiffness-indicator/) una versione aggiornata, con il file ITF scaricabile, dove sono già dichiarate le variabili da usare e dove ho aggiunto una linea per il trend al ribasso; è una linea non prevista nell’originale, ma l’ho messa per completezza. Come ogni altra linea può essere nascosta tramite i settaggi delle proprietà, rendendola invisibile.
L’aggiornamento (a parte la linea del trend al ribasso) è più aderente all’originale, in quanto prevede il calcolo della media sui 100 giorni, mentre l’osservazione viene fatta sugli ultimi 60 periodi. Tutti questi valori, così come il tipo di media da utilizzare, sono tutti modificabili.
1 user thanked author for this post.
-
AuthorPosts
Find exclusive trading pro-tools on