Power Language compiling errors  [SOLVED]

Questions about MultiCharts and user contributed studies.
Guest

Power Language compiling errors

Postby Guest » 07 Feb 2007

Importing an easy language strategy there happen some errors like

1)
IF (C of data2 >Highest(High of data2,Length)[1]) and (C[1] of data2 < Highest(High of data2,Length)[2]) Then Buy at Market;

2)
IF H<H[1] and H[1]<H[2] and L<L[1] and L[1]<L[2] Then Buy Highest(o,2)+1 point Stop;

3)
if value2 = 1 then exitlong today close;

4)
Problem with the easylanguge word entriestoday

User avatar
Kate
Posts: 758
Joined: 08 Dec 2006

Postby Kate » 08 Feb 2007

Dear guest,

These are the answers to your questions:

1)

TS2000i version:

IF (C of data2 >Highest(High of data2,Length)[1]) and (C[1] of data2 < Highest(High of data2,Length)[2]) Then Buy at Market;

TS8 and MC version:

IF (C of data2 >Highest(High of data2,Length)[1]) and (C[1] of data2 < Highest(High of data2,Length)[2]) Then Buy next bar at Market;


2)

TS2000i version:

IF H<H[1] and H[1]<H[2] and L<L[1] and L[1]<L[2] Then Buy Highest(o,2)+1 point Stop;


TS8 and MC version:


IF H<H[1] and H[1]<H[2] and L<L[1] and L[1]<L[2] Then Buy next bar at Highest(o,2)+1 point Stop;


3) Today reserved word is not implemented yet. It could be substituted with this bar:


if value2 = 1 then Sell today close;

if value2 = 1 then Sell this bar close;



4) Create a function manually. We will add it to the list later.

inputs: TargetDate_YYYMMDD( numericsimple ) ; { pass in the date in YYYMMDD format,
with the year 2002 being written as 102, etc }
variables: Count( 0 ) ;

Count = 0 ;

for Value1 = 0 to 10
begin
if EntryDate( Value1 ) = TargetDate_YYYMMDD then
Count = Count + 1 ;
end ;

EntriesToday = Count ;

Guest

Thank you  [SOLVED]

Postby Guest » 08 Feb 2007

Dear Kathe, thank you


Return to “MultiCharts”