Hello
I have a script in the forms of EASYLANGUAGE
basically its almost like perl , very easy to read
hence the name EASYLANGUAGE.
I will need it to be converted into PERL or PHP
so I can calculate data on my web server.
This script will also be working with MYSQL information.
Script is about 3 pages long.
Thank you
I pay on time everytime
1) Requirements: You need to post when you are on AIM/ICQ/YAHOO everyday
2) Post if you understand the below code, the code to
translate is quite similar .
3) Post the languages you will be coding in
perl ? php ?
etc.
$100 or so
example code of EASYLANGUAGE below
## Deliverables
--- EXAMPLE OF CODE not the real code ----
inputs:
Plot52WkHigh( true ),
Plot52WkLow( true ) ;
variables:
Five2WkHi( 0 ),
Five2WkLow( 0 ),
intrabarpersist Initialized( false ),
NumDecimals( 0 ),
ValidSymbol( false ),
HalfBackBars( 0 ),
BarsBack( 0 ),
JDate( 0 ),
Dummy( 0 ) ;
Five2WkHi = High52Wk ;
Five2WkLow = Low52Wk ;
if LastBarOnChart and Initialized = false then
begin
Initialized = true ;
NumDecimals = 0.434 * Log( PriceScale ) ; { 0.434 is an approximation of
1 / Log( 10 ). The value of NumDecimals is automatically rounded to the
appropriate integer value when used in the Round statements below. }
ValidSymbol = Category = 2 or Category = 4 or Category = 6 or Category = 7 ;
if ValidSymbol then
begin
HalfBackBars = IntPortion( ( CurrentBar + MaxBarsBack ) / 2 ) ;
if Plot52WkHigh then
begin
BarsBack = 0 ;
JDate = DateToJulian( Date ) ;
while Round( High[BarsBack], NumDecimals ) < Round( Five2WkHi,
NumDecimals ) and BarsBack < HalfBackBars and JDate - DateToJulian(
Date[BarsBack] ) < 365
begin
BarsBack = BarsBack + 1 ;
Plot1[BarsBack]( Five2WkHi, "52WkHi" ) ;
end ;
end ;
if Plot52WkLow then
begin
BarsBack = 0 ;
JDate = DateToJulian( Date ) ;
while Round( Low[BarsBack], NumDecimals ) > Round( Five2WkLow,
NumDecimals ) and BarsBack < HalfBackBars and JDate - DateToJulian(
Date[BarsBack] ) < 365
begin
BarsBack = BarsBack + 1 ;
Plot2[BarsBack]( Five2WkLow, "52WkLo" ) ;
end ;
end ;
end
else
RaiseRunTimeError( "Apply to only an equity, index or fund symbol." ) ;
end ;
if ValidSymbol and LastBarOnChart then
begin
if Plot52WkHigh then
Plot1( Five2WkHi, "52WkHi" ) ;
if Plot52WkLow then
Plot2( Five2WkLow, "52WkLo" ) ;
end ;
---------------------
## Platform
perl / php
/mysql