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

Reply
Old 04-09-2009, 04:25 AM   #1

Join Date: Apr 2009
Location: westchester
Posts: 2
Ignore this user

Thanks: 1
Thanked 0 Times in 0 Posts

Easylanguage Error #408 and #410??

Value1 = DMI+( 14);
Value2 = Value1[ 1] > HIALERT and Value1 > Value1[ 2];
If (Value2) then begin....

It is giving me the error message "numerical expression expected here" on the ">" symbol before after Value1[ 1].

I also get an error message "cannot implicitly convert Numerical to TrueFalse" on the "If (Value2) then begin....


How come using (var1) works with these but the Value1 is giving me syntax errors. Do I need to put a filter of some sort on before assigning Value1 or Value2?
isisisis is offline  
Reply With Quote
Old 04-09-2009, 09:02 AM   #2

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: Easylanguage Error #408 and #410??

change this

Value2 = Value1[ 1] > HIALERT and Value1 > Value1[ 2];

to

Condition2 = Value1[ 1] > HIALERT and Value1 > Value1[ 2];
Tams is offline  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
isisisis (04-10-2009)
Old 04-10-2009, 06:30 PM   #3

Join Date: Apr 2009
Location: westchester
Posts: 2
Ignore this user

Thanks: 1
Thanked 0 Times in 0 Posts

Re: Easylanguage Error #408 and #410??

Thanks a bunch, that did the trick! The indicator is up and running perfectly now, but I cannot seem to use it with radarscreen or the scanner tool in tradestation 8.5. I had to change value2 and value3 to condition2 and condition3 but the radarscreen only seems to work with values and does not display conditions when its ran. So I am left with a bunch of blank columns (when I know for a fact that a value exists), when on chart analysis the reversal bars and values are being plotted correctly. The only thing radarscreen will acknowledge is value1 (the only value in the ELD), none of the conditions or plots. Anyone know how to tweak this to make it work?
isisisis is offline  
Reply With Quote

Reply

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Future Data Error in TS Indicator blib Coding Forum 6 04-05-2009 04:09 PM
Url.dll Error - Help! brownsfan019 Tools of the Trade 5 09-16-2008 05:50 PM
Some EasyLanguage Help Please jjthetrader Coding Forum 8 06-02-2008 04:20 PM
Error trying to check email address brownsfan019 Support Center 6 05-29-2007 10:41 AM

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