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

Buy/Sell Setups won't Plot in Indicator



PureBytes Links

Trading Reference Links

List:

I've been trying to work on the code in TS2000i Easy Language:

http://www.researchlabtrading.com/public/382.cfm

Would like to get it to plot like the way on a Bloomberg / CQG as
opposed to the attached examples which I did not code.

So far what I have coded is the Following, but it won't Plot correctly:


=======================================================================
Inputs:
	Count(9);
{ TD Setup Buy Signal }
	FOR Value1 = 0 TO COUNT - 1 BEGIN
		IF( (Close < Close[3]) And
			(Close[1] < Close[4]) And
			(Close[2] < Close[5]) And
			(Close[3] < Close[6]) And
			(Close[4] < Close[7]) And
			(Close[5] < Close[8]) And
			(Close[6] < Close[9]) And
			(Close[7] < Close[10]) And
			(Close[8] < Close[11]) And
			(Close[9] < Close[12])) Then Begin
				Value1 = Value1 + 1;
				If Value1 = Count then
					Value2 = Text_New(Date, Time,
Low, NumToStr(Value1, 0));
					Plot1(Low, "TD_SEQ Buy");
			end;
	end;

If Value1 = Count Then Begin
	Value3 = Text_New(Date, Time, Low , NumToStr(Value1, 0));
		Plot2(Low, "TDBuySignal");
			If ((Low[7] < Close[6]) Or	{ TD Setup
Perfection Buy Signal }
				(Low[8] < Close[6]) Or
				(Low[9] < Close[6])) Then Begin
					Value4 = Text_New(Date, Time,
(Low ), NumToStr(Value1, 0));
					Plot3(Low, "TDPrfctBuy");
				end;
end;
{===========================
{ DeMark1 } 
Inputs:
	Formula(
	(C < C[2]) and
	(C[1] < C[4]) and
	(C[2] < C[5]) and
	(C[3] < C[6]) and
	(C[4] < C[7]) and
	(C[5] < C[8]) and
	(C[6] < C[9]) and
	(C[7] < C[10]) and
	(C[8] < C[11]) and
	(C[9] < C[12]) and
	(L[7] < C[6]) or
		(L[ 8] < C[6]) or
		(L[9] < C[6])); 
Plot1(Formula); 
==============================}

Regards,

-- 
Thomas J. Festa, CMT

Phone: (908) 581-8880
--
Confidentiality Notice: The information contained in this e-mail and any
attachments may be legally privileged and confidential. If you are not
an intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you
have received this e-mail in error, please notify the sender and
permanently delete the e-mail and any attachments immediately. You
should not retain, copy or use this e-mail or any attachment for any
purpose, nor disclose all or any part of the contents to any other
person.

--