This code draws arrows to highlight Short Swing points and circles to highlight Intermediate Swing Points.
Whoever knows the book “Long-term secrets to short-term trading” will know how to use these points.
Blue skies!!
//computation of the radius to draw ellipses
radius=average[200](range)/4
//formula to compute short term swing points
if (high>alto[1]) and not (high<high[1] and low>low[1]) then
alto=high
basso=low
markup=barindex
markhigh=high
endif
if (low<basso[1]) and not (high<high[1] and low>low[1]) then
alto=high
basso=low
markdown=barindex
marklow=low
endif
if alto<alto[1] and trend=1 then
trend=0
drawarrowdown(markup,markhigh)
mediummarkup=shortmarkup
shortmarkup=markup
longmarkhigh=mediummarkhigh
mediummarkhigh=shortmarkhigh
shortmarkhigh=markhigh
//intermediate high swing points
if longmarkhigh<mediummarkhigh and mediummarkhigh>shortmarkhigh then
DRAWELLIPSE(mediummarkup-1, mediummarkhigh-radius, mediummarkup+1, mediummarkhigh+radius)
endif
endif
if basso>basso[1] and trend=0 then
trend=1
drawarrowup(markdown,marklow)
mediummarkdown=shortmarkdown
shortmarkdown=markdown
longmarklow=mediummarklow
mediummarklow=shortmarklow
shortmarklow=marklow
//intermediate low swing points
if longmarklow>mediummarklow and mediummarklow<shortmarklow then
DRAWELLIPSE(mediummarkdown-1, mediummarklow-radius, mediummarkdown+1, mediummarklow+radius)
endif
endif
drawcandle(open,high,low,close)
return
You must be logged in to post a comment.
scusa Gagry ma il programm da copiare è quello con tutte le modifiche di cui ho letto nei vari post..oppure bisgona copiare pezzi in giro e rifarlo da soli..? grazie mille!
Buongiorno, ho poca esperienza e volevo chiedere se è possibile creare un trading system che usi questa tecnica, che vada long e short seguendo le frecce dell'indicatore.
Cette stratégie permet de conforter les choix avec votre indicateur : // Taille des positions // Valable pour un capital de 10.000 euros à chaque position, // pour les actions capital = 10000+strategyprofit n = capital / close n = round(n) // Daéfinition de la TENDANCE par les moyennes mobiles // Sur le PEA, on ne fait qu'ACHETER, et qu'en phase haussière MMlongue = average[200](close) MMmoyenne = average[80](close) MMcourte = average[45](close) // CONDITIONS POUR OUVRIR UNE POSITION ACHETEUSE a1 = MMcourte > MMmoyenne and MMmoyenne > MMlongue a2 = MMlongue > MMlongue[13] and MMmoyenne > MMmoyenne[13] and MMcourte > MMcourte[13] a3= (average[2] crosses under average[5](close)) IF a1 and a2 and a3 THEN BUY n shares AT MARKET ENDIF // CONDITIONS POUR FERMER UNE POSITION ACHETEUSE v1 = (average[2] CROSSES over average[10](close)) IF v1 THEN SELL AT MARKET ENDIF
bonjour a tous , superbe travail j'aimerai si possible une indication pour modifier l'indicateur pour n'avoir que les entrées flèches noires + flèches noires avec ellipses et que les flèches avec ellipses ( de sorties ) je ne souhaiterais pas avoir celles sans serait t'il aussi possible d'avoir un screener qu'avec les positions à l'achat (flèches noires + flèches noires avec ellipses ) d'avance merci cordialement