Buy and Sell signals made of the John Carter’s scalper indicator.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
once rr=1 mb=average[20](typicalprice) k=48 n=(k*2)-4 p=(n/2)-1 h1=DPO[n](high) moyh=high-h1 hi=(moyh-moyh[1]+(high[p])/n)*n hi=(round(hi*100))/100 l1=dpo[n](low) moyl=low-l1 lo=(moyl-moyl[1]+(low[p])/n)*n lo=(round(lo*100))/100 clo1=dpo[n](close) moyc=close-clo1 clot=(moyc-moyc[1]+(close[p])/n)*n clot=(round(clot*100))/100 cond1=(high>high[1] and high>high[2]) cond2=(cond1 and high>hi[46]) and (barindex>bari or rr=-1) if cond1 and cond2 then flagg=1 targeth=high targetl=lo[46] else flagg=0 signa=mb endif for zz=0 to 45 if clot[45-zz]<targetl and hi[45-zz]<=targeth and flagg=1 then signa=high+(averagetruerange[20](close))*.5 rr=1 bari=barindex+zz+2 break elsif hi[45-zz]>targeth then signa=mb break endif next condi=(low<low[1] and low<low[2]) and low<lo[46] and (barindex>bar or rr=1) if condi then fflag=1 target1=low target2=hi[46] else fflag=0 siigna=mb endif for kk=0 to 45 if clot[45-kk]>target2 and lo[45-kk]>=target1 and fflag=1 then siigna=low-(averagetruerange[20](close))*.5 rr=-1 bar=barindex+kk+2 break elsif lo[45-kk]<target1 then siigna=mb break endif next if barindex < 100 then signa=undefined siigna=undefined endif golong = (siigna < mb) goshort = (signa > mb)*-1 return golong as "LONG",goshort as "SHORT",0 |
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :
Filename : download the ITF files
How to import ITF files into ProRealTime platform?
PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
Hi, very interesting,
in the chart you have also used Donchian channel (20 period ) and parabolic sar?
For the signal is the DPO needed
The Donchain and the PSAR are only for watching
How would this look like without DPO? seem like, I cannot just remove DPO part as it is used in the remaining part as well?
Bard,
When you copy à code from another website it will be Nice to precise it !
Because if it was your code you would know it repaints badly !!!
Don’t use it and go directly to the trash 🙁
This code is from HK-LISSE website and can be found here: http://hk-lisse.over-blog.com/article-21382754.html
Bard added histogram signals to this original code and has gently proposed it to the Library.
Because of use of the DPO with future informations, this indicator do “repaint”. I know some people use it even if it is the case. So here it is.
HelloQuelqu’un peut m’aider à introduire du texte sur l’histogramme, je n’y parvient pas ! ça doit être quelque chose comme cela mais le placer où ?merci de votre aide
If golong = (siigna < mb) then
DRAWTEXT ( \"G \" ,barindex,- 0.5,dialog,standard,20) coloured ( 49,49,220 )
endif
If goshort = (signa > mb)*-1 then
DRAWTEXT ( \"G \" ,barindex,- 0.5,dialog,standard,20) coloured ( 49,49,220 )
endif
That’s what I say,
It isn’t correct to paste a code without any précision of the real author
And without to precise it repaints
There is no magic without such à code because generally signals are given after
Have a nice evening
Bonjour à tous,
personne pour répondre à mon petit problème posé il y a deux jours ?!
bonne journée,bons trades.
this is not valid for proOrder.
Bonjour,
Toujours personne pour mettre du texte sur les histogrammes ??
merci
Je ne travaille pas avec v10,3Je ne peux pas vous aider, malheureusement,
Scalp.jpg You don’t have permission to attach files to this post.
Nicolas : Pourquoi ne peux t on pas remonter des images avec le bouton add/ edit attachments ! ça m’arrive souvent
j’arrive a sortir du texte mais pas les deux à la fois : texte et histogramme, je voulais illustrer par une image mais ça bug !
poubelle ….
Why is the Indicator changing when i refresh my charts? Sometimes there is a signal and when i reload the chart the signal is no more there….kind of confusing…
Because of the use of DPO which is already know the future in advance when the data history is loading for the first time. DPO “repaint” the past.
ah okay, thats the reason why the backtest is so great!
Bonjour, vous pouvez créer un screamer avec des signaux de cet indicateur? Je l’ai essayé, mais je reçois de faux résultats. Merci
Bonjour.Est-il possible d’enrichir cet indicateur en lui ajoutant un histogramme à 0.5 dans le sens du dernier signal obtenu.Par exemple, un signal vert apparaît. Tant qu’aucun signal rouge n’apparaît, faire apparaître un histogramme achat positif à 0.5.On aurait ainsi Histogramme vert +1 au signal, histogramme bleu à 0.5 tendance achat et histogramme rouge -1 signal vente et rose -0.5 tendance vente.
bonjour nicolas
je viens d aller voir le lien du blog et je vois qu’ Une version temps réel peut en être dérivée.
peut tu m aider pour la modification
merci
L’utilisation du DPO dans cet indicateur n’est utile que pour obtenir des données du futur et ainsi donner à l’indicateur une allure parfaite. C’est une utilisation déviée du DPO par l’auteur pour compenser le fait que la plateforme ne lit qu’une seule fois l’historique. En aucun cas un DPO n’est utile pour calculer une régression linéaire, donc utiliser une autre formule du DPO pour utiliser cet indicateur en trading automatique est inutile et une perte de temps 🙂
merci pour ta reponse nicolas
loin de moi cet idée je souhaite juste apprendre et ne veux pas utilisé une autre formule de DPO mais simplement une version temps réel pour fixé les signaux je souhaite l utilisé en complément d une strategie mais pas avec des faux signaux.
j ai trouvé ça qui pourrai le remplacer
study(title=”TTM scalper indicator”, overlay = true)width = input(2, minval=1)triggerSell = iff(iff(close[1] < close,1,0) and (close[2] < close[1] or close[3] <close[1]),1,0)triggerBuy = iff(iff(close[1] > close,1,0) and (close[2] > close[1] or close[3] > close[1]),1,0)buySellSwitch = iff(triggerSell, 1, iff(triggerBuy, 0, nz(buySellSwitch[1])))SBS = iff(triggerSell and buySellSwitch[1] == false, high, iff(triggerBuy and buySellSwitch[1], low, nz(SBS[1])))clr_s = iff(triggerSell and buySellSwitch[1] == false, 1, iff(triggerBuy and buySellSwitch[1], 0, nz(clr_s[1])))clr = iff(clr_s == 0 , green , red)plot(SBS, color=clr, title=”TTM”, style = circles, linewidth = width)
je vais tenter de recodé pour m entrainé sinon comment ferai tu pour la modif version temps réel que je meurt pas idiot lol.
merci
Hi,
I am new to FX trading, have been following this website for sometime and also learning pro real code. Since I am using Pro Real time 10.2, I had to convert the above code into screener. I extracted the LONG signal related code from above and created a LONG screener and did the same for SHORT screener. The LONG signal code returns data however the SHORT signal doesn’t, not sure what is wrong with the code. Can you please help? Below is the SHORT signal code, everything is the same from above except for screener keyword at the end.
once rr=1mb=average[20](typicalprice)k=48n=(k*2)-4p=(n/2)-1
h1=DPO[n](high)
moyh=high-h1hi=(moyh-moyh[1]+(high[p])/n)*nhi=(round(hi*100))/100l1=dpo[n](low)
moyl=low-l1lo=(moyl-moyl[1]+(low[p])/n)*nlo=(round(lo*100))/100clo1=dpo[n](close)
moyc=close-clo1clot=(moyc-moyc[1]+(close[p])/n)*nclot=(round(clot*100))/100cond1=(high>high[1] and high>high[2])cond2=(cond1 and high>hi[46]) and (barindex>bari or rr=-1)if cond1 and cond2 thenflagg=1targeth=hightargetl=lo[46]elseflagg=0signa=mbendiffor zz=0 to 45if clot[45-zz]<targetl and hi[45-zz]<=targeth and flagg=1 thensigna=high+(averagetruerange[20](close))*.5rr=1bari=barindex+zz+2breakelsif hi[45-zz]>targeth thensigna=mbbreakendifnextcondi=(low<low[1] and low<low[2]) and low<lo[46] and (barindex>bar or rr=1)if condi thenfflag=1target1=lowtarget2=hi[46]elsefflag=0//siigna=mbendiffor kk=0 to 45if clot[45-kk]>target2 and lo[45-kk]>=target1 and fflag=1 then//siigna=low-(averagetruerange[20](close))*.5rr=-1bar=barindex+kk+2breakelsif lo[45-kk]<target1 then//siigna=mbbreakendifnextif barindex < 100 thensigna=undefined//siigna=undefinedendif//golong = (siigna < mb)goshort = (signa > mb)*-1SCREENER[goshort] (Variation AS “%Chg prev bar”)
salve, ho provato ad usarlo su grafico 1 minuto .. non si aggiorna .. i segnali non si vedono … bisogna ricaricare l’indicatore per vedere i segnali nuovi..
hi, I tried to use it on chart 1 minute .. does not update .. the signals are not seen … you have to reload the indicator to see the new signals ..
Thanks maxxb for your response. Whys is it that I get results for long without having to reload the indicator? Do I need to reload the indicator every time I run the code? Sorry if it is a stupid question.
Is this indicator still useful or not..? Also I don’t understand the above code tweaks from some people not? Please explain.
Testing it out, and sorry guys but this indicator is ridiculous. Don’t use it!
I have tested this indicator , this is one of the best indicator for scalping , I tested on 3 min and 10 min works excellent
Hi Rama, I am using the indicator now, but it doesn’t seem to form live time, and only indicates after refreshing my timeframe? is there something I need to amend?