Please HELP: visual problems indicator
Forums › ProRealTime English forum › ProBuilder support › Please HELP: visual problems indicator
- This topic has 4 replies, 2 voices, and was last updated 8 years ago by
micha2012.
-
-
01/17/2017 at 11:32 AM #21428
Dear All,
would you please help me in solving following problem:
I installed the following indicator and displayed below main chart window…all is ok.
1234567891011121314151617181920212223// ------------------------------------------pr= 2pr2= 10EWpk2= HIGHEST[1](High) > (High)*(1-pr2)/100EWtr2= LOWEST[1](Low) < (Low)*(1-pr2)/100// Intermediate Elliot Wave stuff//zz= ZigZag[pr](close)zzHi2=ZigZag[pr2](High)zzLo2=ZigZag[pr2](Low)avg2=(zzHi2+zzLo2)/2If EWpk2 ThenRetroSuccessSecret2= zzHi2ELSIF EWtr2 ThenRetroSuccessSecret2= zzLo2ELSIF (avg2>avg2[1]) THENRetroSuccessSecret2= highELSERetroSuccessSecret2= LowENDIFEW2=ZigZag[pr2](RetroSuccessSecret2)LRZZEW2= LinearRegressionSlope[pr](EW2)RETURN LRZZEW2 coloured(0,0,200) AS "LRZZ EW[10]"Then I added “vertical lines” to signal “Sell”(red) and “Buy”(green) like this:
1234567indicator = CALL "LRZZ EW[10]"IF indicator [1]<0 and indicator crosses over 0 thenDRAWVLINE (barindex-0.1)coloured(0,132,42,100)ELSIF indicator [1]>0 and indicator crosses under 0 thenDRAWVLINE(barindex-0.1) coloured(255,0,0,100)ENDIFRETURN indicatorUnfortunately, the “loading time” of chart increased heavily…. 🙁
In order to display “vertical lines” (red and green) in main chart window, I added this indicator code directly in settings of main chart window.
Now, complete indicator and “vertical lines” are displayed in main chart window, but “loading time” of chart + indicator is very, very slow…
Please help me, how can I display only the vertical lines from indcator window in chart window and improve again loading time…???
Thank you very, very much in advance.
Regards Micha
01/17/2017 at 12:45 PM #21436Depends on how much far in the past you’d like your indicator to draw lines, but you could use:
1DEFPARAM CalculateOnLastBars = 200It will only calculate the indicator on the last 200 bars instead of the whole price history = calculateonlastbars
01/18/2017 at 11:00 AM #21540Bonjour Nicola,
thank you very much for your help; I will try now.
P.S. is it correct, that I installed 2x times the indicator? Once indicator windows BELOW main chart window & second directly in main chart window?
Is there any solution, only to “copy” the vertical lines from “below indicator window” to main chart window…?
Merci beaucoup
Micha
01/18/2017 at 11:34 AM #21548You don’t need to run the 2 indicators at the same time. Since you are calling the calculation of your Eliott wave of your first indicator in the second one, just add only this one applied on price only (use the wrench on the upper left side of the chart).
01/18/2017 at 5:55 PM #21611 -
AuthorPosts
Find exclusive trading pro-tools on