Easy Lang Study not working
Posted: Mar 17 2006
I am trying to use the Easy Language indicator VolumeUpDown, however when I place it on a chart, it plots nothing. My only guess is DailyVolumeUp and DailyVolumeDown must be coming from TS, which I am no longer using as a feed. I am using Esignal as my feed.
Here is the TS code.
inputs:
DiffOrRatio_1or2( 1 ) ; // set to 1 for Up-Dn difference, 2 for Up/Dn ratio
variables:
UpDivDn( 1 ),
UpMinusDn( 0 ) ;
if GetAppInfo( aiRealTimeCalc ) = 1 then { real-time tick - not on bar in history }
begin
if DiffOrRatio_1or2 = 1 then
begin
UpMinusDn = DailyVolumeUp - DailyVolumeDn ;
Plot1( UpMinusDn, "UpDn" ) ;
Plot2( 0, "Baseline" ) ;
end
else if DiffOrRatio_1or2 = 2 then
begin
if DailyVolumeDn <> 0 then
UpDivDn = DailyVolumeUp / DailyVolumeDn ;
Plot1( UpDivDn, "UpDn" ) ;
Plot2( 1, "Baseline" ) ;
end
else
RaiseRunTimeError( "DiffOrRatio_1or2 input must be 1 or 2." ) ;
end ;
Here is the TS code.
inputs:
DiffOrRatio_1or2( 1 ) ; // set to 1 for Up-Dn difference, 2 for Up/Dn ratio
variables:
UpDivDn( 1 ),
UpMinusDn( 0 ) ;
if GetAppInfo( aiRealTimeCalc ) = 1 then { real-time tick - not on bar in history }
begin
if DiffOrRatio_1or2 = 1 then
begin
UpMinusDn = DailyVolumeUp - DailyVolumeDn ;
Plot1( UpMinusDn, "UpDn" ) ;
Plot2( 0, "Baseline" ) ;
end
else if DiffOrRatio_1or2 = 2 then
begin
if DailyVolumeDn <> 0 then
UpDivDn = DailyVolumeUp / DailyVolumeDn ;
Plot1( UpDivDn, "UpDn" ) ;
Plot2( 1, "Baseline" ) ;
end
else
RaiseRunTimeError( "DiffOrRatio_1or2 input must be 1 or 2." ) ;
end ;