Price Indicators and Pro-back testing
Forums › ProRealTime English forum › ProBuilder support › Price Indicators and Pro-back testing
- This topic has 3 replies, 2 voices, and was last updated 3 years ago by robertogozzi.
-
-
05/20/2021 at 1:47 PM #170048
Hello every one.
I hope all of you are well where ever you are in these difficult and uncertain times.
This is only my second time using a forum on this site, so hopefully this is the right place for this enquire or discussion.
Currently I’m doing some back testing of indicators and require some help.
I have three issues
1 I wanted to run a back test using the inbuilt Multi-smoothing moving average on the price chart that PRT provide, however no PRT Pro- back test code is available either within the platform or in the indicator library. Could someone point me in the right direction if one exists or would someone be willing to code that for me? I’m just learning to code now and this is just a bit beyond me skill level at this time.
2 Like the previous issue I would like to create a moving average on the price chart of the price oscillator that the PRT platform provides where the “Zero-Line” on the oscillator would represent the price action crossing the moving average on the price chart. I understand the calculation of the indicator and I have tried to code this as a moving average on the chart so that I can get a visual representation for a trading strategy building purpose. Again my coding skills are limited at this moment.
3 Finally I have imported and tried to use the “Percentage Price Oscillator” in the PRT Indicator library and each time I try to load the indicator as an oscillator below the chart a blank screen appears. I have also deleted the original import and re-imported it again many times with no success. I may contact the creator through this site for help, however if anyone else has a solution to this problem I would be most grateful.
Thank you in advance to anyone offering help.
05/29/2021 at 1:27 PM #170740- I will check on Monday
- simply open the indicator ‘s settings and add any MA to it (not to the price)
- to contact the author simply post a question as a comment to the library entry for that indicator; being myself the author you don’t need to post it anymore; did you install the Macd-like version?
06/01/2021 at 9:34 AM #170887Thanks for the reply Roberto. I will download the MACD version and try that. Still interested in the back test code for the multiple smoothing average that comes as a default indicator in the platform, or at least how it is calculated so that can try to code it myself. Thanks again Roberto.
06/01/2021 at 9:44 AM #1708881 this is the code (I suggest that you import the attached ITF file)
1234567891011121314151617181920212223242526272829303132333435363738394041//----------------------------------------------------------------------------------------------------// Multiple Smoothing MAvg.custom//----------------------------------------------------------------------------------------------------// Differently from PRT's code, you don't have to select double or triple smoothing. You can actually// use it as a common Moving Average with no smoothing since you are not forced to enter the second and// third Period numbers. Only the first one has to be greater than 0.// The second and third one, each one of them, can be 0, so that youy can have:// - NO smoothing (second and third Period numbers set both to 0), so that it's like any common MA// - single smoothing (PRT calls it double smoothing because it involves two MA's) when the first// MA is smoothed by any one, and only one, of the other two MA's// - double smoothing (PRT calls it triple smoothing because it involves three MA's) when the first// MA is smoothed by the both the other two MA's//// Periods do not need to be ascending, nor descending; all of them are independent from the other two.//----------------------------------------------------------------------------------------------------// M1, M2 and M3 are the periods for the three MA's (0=do not use that average,// for the first MA 1 is the minimum allowed)// T1, T2 and T3 are the type of MA's////ONCE M1 = 14//ONCE T1 = 0 //0=sma, 1=ema, 2 =wma,...//ONCE M2 = 10//ONCE T2 = 0 //0=sma, 1=ema, 2 =wma,...//ONCE M3 = 9//ONCE T3 = 0 //0=sma, 1=ema, 2 =wma,...M1 = max(1,min(999,M1))M2 = max(0,min(999,M2))M3 = max(0,min(999,M3))//src = CustomClose//Avg1 = average[M1,T1](src)Avg2 = Avg1IF M2 > 0 THENAvg2 = average[M2,T2](Avg1)ENDIFAvg3 = Avg2IF M3 > 0 THENAvg3 = average[M3,T3](Avg2)ENDIFRETURN Avg3 AS "Multiple Smoothed Moving Average"2 see my answer in my post above
3 use the HISTO version and set it to HISTOGRAM with its properties.
-
AuthorPosts
Find exclusive trading pro-tools on