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

Re: Code Conversion



PureBytes Links

Trading Reference Links

Dear Phil,

I did a Google search for "floor traders support and resistance numbers" and
found
http://www.sixer.com/y/s/education/tutorial/edpage.cfm?f=pivots.cfm&OB=indicators

I used the formulae shown there.

I then coded that in ELA for a minute-based TS4 chart running in realtime, and
my code is attached (Windows Notebook form, ie a .tst file).

The code verifies and plots, but I haven't checked to see if it's accurate.

Remember that TS4 can only plot 4 lines at a time, so I omitted the Pivot
line.  If you want that, you'll need to write another Show-Me just for it.

Sincerely,

Richard


phil wrote:

> Hi List,
>
> Anyone willing to convert an indicator in TS6 format into ELA for TS4. It
> seems that when I go to verify it it's one small quirk after another. The
> solution is probably real easy but still beyond my knowledge of EL.
>
> It plots the floor traders support and resistance numbers on a daily chart.
> I wish to use it on intraday (minute and tick) charts in TS4.
>
> All cooperation is welcome.
>
> Thanks in advance,
>
> Phil


Var:	Hi(0),
		Lo(99999),
		Mid(0),
		Range(0);

IF Date = CurrentDate THEN BEGIN
	IF Time = Sess1StartTime + BarInterval THEN BEGIN
		Hi = C;
		Lo = C;
	END ELSE BEGIN
		IF C > Hi THEN Hi = C;
		IF C < Lo THEN Lo = C;
	END;
	Mid = (Hi + Lo) / 2;
	Plot1(Mid,"Mid");
	Range = Hi - Lo;
	IF Range >= 5 THEN BEGIN
		IF C < Mid THEN BEGIN
			Plot2(Lo + (0.25 * Range),"Q");
			{IF C < (Lo + 0.25 * Range) THEN} Plot3(Lo,"HL");
		END ELSE BEGIN
			Plot2(Lo + (0.75 * Range),"Q");
			IF C > (Lo + 0.75 * Range) THEN Plot3(Hi,"HL");
		END;
	END;
END;