Adding comments in RTL backtesting rules

Login or Register

Please login or register in order to view and post in the Forum.

2 posts / 0 new
Last post
Eddy_F
Last seen: 2 months 1 week ago
Joined: 07/30/2014 - 16:18
Adding comments in RTL backtesting rules

Hello,
lets say i have a complex RTL signal syntax and would like to add a comment that is excluded from the RTL syntax - Is there a way to do it with a special characters (like ** or whatever special characters) that would exclude the line or comment from being read ?
(because you might have an headache one year after trying to find out again what you programmed..)
Herebelow an example of what i would like to achieve (assuiming ** would be the way to go)
Thank you very much
Eddy

Example of a Current No action / V# maintenance rules

SET(V#333,(V#333!=0)*(((V#397=0)*(V#399!=0)>0)=0)>0?((ABS(V#333)=4?0:(V#397=0?(1+2*(ABS(V#331)>=3))*PNZ(V#331):PNZ(V#397)))):V#333)&
SET(V#333,(V#333!=0)*((V#397=0)*(V#399!=0)>0)>0?(ABS(V#331)>=2?3*PNZ(V#331):4*PNZ(V#333)):V#333)&
SET(V#333,V#333=0?((V#397=0)*(ABS(V#331)>=2)>0?2*PNZ(V#331):V#333):V#333)&

I would like to add comments like

SET(V#333,(V#333!=0)*(((V#397=0)*(V#399!=0)>0)=0)>0?((ABS(V#333)=4?0:(V#397=0?(1+2*(ABS(V#331)>=3))*PNZ(V#331):PNZ(V#397)))):V#333)& ** case 1 : excluding reversal bars *
SET(V#333,(V#333!=0)*((V#397=0)*(V#399!=0)>0)>0?(ABS(V#331)>=2?3*PNZ(V#331):4*PNZ(V#333)):V#333)& ** comments 2 : excluding csc bars**
SET(V#333,V#333=0?((V#397=0)*(ABS(V#331)>=2)>0?2*PNZ(V#331):V#333):V#333)& ** comments 3 etc **

0
cpayne
Last seen: 1 year 7 months ago
Joined: 03/30/2009 - 00:00
Commenting in RTL

CL > MA /* This is a comment */
AND CL.1 > MA.1 /* And this is also a comment that is ignored */
AND CL.2 > MA.2 /* And another that explains that the close 2 bars back was greater than the moving average 2 bars back */