A few of my indicators will not compile in the new beta. I double checked to make sure they still compiled on the old version. I'm getting the following error.
Test-Assert code 23
Your help would be greatly appreciated. I would like to use the new version, however, I depend on these indicators. Thanks.
New Beta Compiling error
- Stanley Miller
- Posts: 556
- Joined: 26 Jul 2005
- Has thanked: 3 times
Hi Stanley,
i have a similar problem with some codes, showing
"Assert code 44
errLine 0, errColumn 0, errLineEnd 0, errColumnEnd 0"
This code produces the error
Vars: Swing(0);
Value1=Average(H,3);
Value2=Average(L,3);
If C<Value2[1] And C[1]>=Value2[2] then Swing=-1;
If C>Value1[1] And C[1]<=Value1[2] then Swing=1;
If Swing=1 Then buy next bar;
If Swing=-1 Then sell next bar ;
if i change the last line to
If Swing=-1 Then sellshort next bar ;
or even to
If Swing=-1 Then sell next bar at open;
it compiles witout an error.
i have a similar problem with some codes, showing
"Assert code 44
errLine 0, errColumn 0, errLineEnd 0, errColumnEnd 0"
This code produces the error
Vars: Swing(0);
Value1=Average(H,3);
Value2=Average(L,3);
If C<Value2[1] And C[1]>=Value2[2] then Swing=-1;
If C>Value1[1] And C[1]<=Value1[2] then Swing=1;
If Swing=1 Then buy next bar;
If Swing=-1 Then sell next bar ;
if i change the last line to
If Swing=-1 Then sellshort next bar ;
or even to
If Swing=-1 Then sell next bar at open;
it compiles witout an error.
- Stanley Miller
- Posts: 556
- Joined: 26 Jul 2005
- Has thanked: 3 times
The thing is that you must specify one of the five different order actions with your Sell order:if i change the last line to
If Swing=-1 Then sellshort next bar ;
or even to
If Swing=-1 Then sell next bar at open;
it compiles witout an error.
... this bar on close;
... next bar at open;
... next bar at market;
... next bar at yourprice Stop;
... next bar at yourprice Limit;
-
- Posts: 50
- Joined: 11 Nov 2005
- Contact:
- Stanley Miller
- Posts: 556
- Joined: 26 Jul 2005
- Has thanked: 3 times
-
- Posts: 50
- Joined: 11 Nov 2005
- Contact: