backtesting several systems
Forums › ProRealTime English forum › ProOrder support › backtesting several systems
- This topic has 5 replies, 4 voices, and was last updated 7 years ago by
Vonasi.
-
-
06/10/2018 at 9:47 AM #7274906/10/2018 at 10:27 AM #7275406/12/2018 at 10:25 PM #73038
Hola Pableitor necesito de tus amplios conocimientos de nuevo he intentado adaptar el codigo de Nicolas con las velas heikinashi para que me diera la informacion de diferentes frametimes de el adx sin embargo creo que he liado algo porque me da la info en histograma pero de el grafico en curso
Sabes si es posible obtener la info del adx de diversos frametimes como si que podeis hacer con las velas heikin te cuelgo aqui lo que he hecho yo a ver que le ves jajaajaja
adx en diversos framtimes123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172//PRC_Heikin Ashi higher TF | indicator//22.02.2018//Nicolas @ www.prorealcode.com//Sharing ProRealTime knowledge//https://www.prorealcode.com/topic/heikin-ashi-4-hours-in-a-1-minute-timeframe/// --- settings// --- end of settingsdefparam calculateonlastbars=10000 //increase this number to get more historyTimeframeadx = 4 //higher TF number (only hours)once NbBar = 1MyDay=opendaydayminutes = 1440*(MyDay-MyDay[1])MyHour=openhourhourminutes = 60*(MyHour-MyHour[1])MyMin=openminutebarminutes = MyMin - MyMin[1] + hourminutes + dayminutesbarminutes=abs(barminutes)Mybarminutes = lowest[max(1,NbBar)](barminutes)[1]//check hourshourcheck=0i=0if MyBarMinutes>=59 thenhourtest=openhourgo=1elsehourtest=hourgo=0endifif minute=MyBarminutes or go thenwhile i<1440 doif(hourtest=i) thenhourcheck=1breakendifi=i+Timeframeadxwendendifif hourcheck thenopentf=openhightf=0lowtf=close*100aadx=adx[14]drawvline(barindex)coloured(100,100,100)//drawtext("#haopen#",barindex,1.1)endifhightf = max(hightf,high)lowtf= min(lowtf,low)aadx=adx[14]opentf=opentfr=0g=0b=140if aadx<aadx[1] thenr=200g=0b=200endifif aadx>aadx[1] and aadx[1]<aadx[2] thensignal=0.1elsif aadx<aadx[1] and aadx[1]>aadx[2] thensignal=-0.1elsesignal=0endifreturn 1 coloured (r,g,b) style(histogram) as "HeikinAshi higherTF color", signal style(histogram) as "HeikinAshi higherTF change"Como puedes comprovar dibujar dibuja bien solo que cada vez que cambio el frametime el dibujo del indicador tambien cambia al nuevo frametime o sea no es el de h1 o h4 que se queda con la info aunque yo cambie de grafico
06/12/2018 at 10:33 PM #7304006/13/2018 at 11:05 AM #7307106/13/2018 at 11:21 AM #73074pableitor – Please post a suggestion for anything you want in this forum:
https://www.prorealcode.com/topic/centralization-of-queries-and-suggestions-on-prorealtime/
It is hopefully monitored by PRT and the more people that suggest something the more likely it is to be improved or added….. eventually!
1 user thanked author for this post.
-
AuthorPosts
Find exclusive trading pro-tools on