[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EL Question



PureBytes Links

Trading Reference Links

>      Hello,
> 
>      I am having some difficulty writing a ShowMe study in EL, and
>      was wondering if any of you resident EL wizards could help?  I
>      think the answer is probably simple, but I have been unable to
>      find it in any documentation.
> 
>      I would like to write a ShowMe study that marks the bar which
>      is 'x" bars ago.  For instance, I trade a breakout system,
>      which trades based on a breakout of the 'x' bar high or low. 
>      Is there any way to mark this bar (perhaps a Paintbar would
>      work?), just so that I have a quick visual indication of where
>      the bar which is 'x' bars back begins on my charts?
> 
>      Thanks in advance for any of your help,
>      Jay Anderson


brilliant idea, Jay -. I had the same some months ago <g>

I wanted to identify the 25th day back, for a daily 25-d momentum, so 
I know what bar is the significant for the calculation next day.

one way is:

Create a PAINTBAR:

input:lookBACK(25); 		{or whatever your BO period is}
plot1[lookBACK] (high[lookBACK],"pbHI");
plot2[lookBACK] (low[lookBACK],"pbLO");

this will paint all bars BEFORE with a different colour - leaving 
the ones inside the calculation with the normal colour....

(you might need to ADD 1 or subtract 1 from lookBACK, depending on 
you update each tick or not - you will see)

hope it helps
rgds hans


~~~~~
I dont sell a newsletter
I dont sell a system
I dont sell a software
I dont sell a course
I dont sell anything else
I dont have a webpage
I dont want to have a webpage
I dont even trade OTHER peoples money !

.....and Im not a CTA !

.....and not "THE CODE" !

not even an OMEGA (tm) RESEARCH (tm) WORKAROUND (tm) Solution Provider

Im just helpfull when/if I can 

Famous Publisher of the World's Best Systems/Software/Newsletter <br>
For a REAL proof ~ simply send me ALL your money <g>