TS code help for Demark Seq Setup

This is a discussion on TS code help for Demark Seq Setup within the Indicators forums, part of the Technical Analysis category; Hi guys I have written down this code in tradestation.I get the ouptput but the problem is it doesnt give ...

Reply
1 1 Attachment(s)
 
LinkBack Thread Tools
Newbie
 
Join Date: Jun 2008
Posts: 2
TS code help for Demark Seq Setup

Hi guys I have written down this code in tradestation.I get the ouptput but the problem is it doesnt give a proper output.
My code is

Code:
INPUT:COUNT(9),BARSBACK(4);

VAR:COUNTER(0),Z(0);

IF C<=C[BARSBACK] THEN COUNTER=COUNTER+1 ELSE COUNTER=0;

IF COUNTER=COUNT THEN BEGIN
 
      FOR Z=1 TO COUNT BEGIN
      z = Text_New(date[z],time[z],low[z],numtostr(z,0));
      value2 = Text_SetStyle(z,2,0);
      value2 = Text_SetColor(z,red);
  END;
END;
and the output that i get is in the picture attached. I can just see the setup numbers for the first time the loop is executed...next time it just plots 1 all the time...can anyone tell me whats the error in my code
Attached Thumbnails
untitled.jpg  
darsur is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tom DeMark Indicators Blangis Technical Analysis 14 Aug 8, 2009 8:43am
Tom DeMark RichieE Indicators 8 Feb 8, 2009 8:09am
Master 1 Setup : How do I know if a setup works? randalfrost Indices 6 Aug 13, 2008 8:36am
reg- tom demark ganeshratnavelu General Trading Chat 1 Mar 7, 2008 7:27am


New To Site? Need Help?


All times are GMT -4. The time now is 11:18pm.


Copyright © 2001-2009 Trade2Win Ltd