Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Old 05-27-2009, 11:50 PM   #1

Join Date: Jan 2008
Location: San Francisco
Posts: 394
Ignore this user

Thanks: 17
Thanked 338 Times in 156 Posts



Ensign Conversion -- Coding a DYO (Design Your Own) Indicator

I wanted to learn how to do a few more DYO's in Ensign and I have no clue how to do this so just hoping someone who knows Ensign might be able to figure this out and I could learn from the result:

Below is code for Rotation Factor in Easylanguage. Rotation Factor (RF) keeps a running count starting with the pit session start and counting highs and lows per bar. Ensign doesn't support EL so I will post the EL code and see if there are any kind souls willing to help out....

thanks for any help


----------------------------------

vars:
RotationFactor( 0 );

if CurrentBar > 1 then
begin
if Date <> Date[1] then
RotationFactor = 0;

if Date = Date[1] then
begin
if High > High[1] then
RotationFactor = RotationFactor + 1;

if High < High[1] then
RotationFactor = RotationFactor - 1;

if Low > Low[1] then
RotationFactor = RotationFactor + 1;

if Low < Low[1] then
RotationFactor = RotationFactor - 1;
end;
end;

Plot1(0,"ZeroLine");
Plot2(RotationFactor,"RF" );
Frank is offline  
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Teaching Yourself Web Design brownsfan019 General Discussion 7 01-16-2009 10:21 AM
lomb periodogram indicator coding val2004 Coding Forum 0 09-13-2007 04:36 AM
Getting started in web design / graphic design brownsfan019 General Discussion 10 05-08-2007 05:46 PM
Collaboration to design a new indicator? Soultrader Coding Forum 47 03-20-2007 11:10 PM

All times are GMT -4. The time now is 05:06 AM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.