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.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// ------------------------------------------
pr= 2
pr2= 10
EWpk2= HIGHEST [ 1 ] (High ) > (High )* (1 - pr2)/ 100
EWtr2= 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)/ 2
If EWpk2 Then
RetroSuccessSecret2= zzHi2
ELSIF EWtr2 Then
RetroSuccessSecret2= zzLo2
ELSIF (avg2> avg2[ 1 ] ) THEN
RetroSuccessSecret2= high
ELSE
RetroSuccessSecret2= Low
ENDIF
EW2= 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:
indicator = CALL "LRZZ EW[10]"
IF indicator [ 1 ] < 0 and indicator crosses over 0 then
DRAWVLINE (barindex - 0.1 )coloured (0 ,132 ,42 ,100 )
ELSIF indicator [ 1 ] > 0 and indicator crosses under 0 then
DRAWVLINE (barindex - 0.1 ) coloured (255 ,0 ,0 ,100 )
ENDIF
RETURN indicator
Unfortunately, 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