Skip to content

[Validation Error]: Did not catch hallucinated syntax #1

@dimitri-deychak

Description

@dimitri-deychak

RealTest Script (.rts file)

Import:
DataSource: CSV

CSVFields: Date, Symbol, Open, High, Low, Close, Volume, Extra

CSVFile: E:\realtest-strategies\intraday\QQQ_10min_realtest.csv

StartDate: 01/01/1901

SaveAs: QQQ_10min.rtd

Settings:
DataFile: QQQ_10min.rtd

StartDate: 01/01/1901

EndDate: Latest

BarSize: Daily

AccountSize: 100000

MaxPositions: 1

PosSizeModel: FixedValue

PosSizeValue: 100000

Error Message

Syntax Error: 
unrecognized setting name

Command Used

python E:\realtest-strategies\tools\rt-grammar\validate_rts.py --file "E:\realtest-strategies\RealTest\scripts\Intraday\QQQ_ORB_10min.rts" --grammar E:\realtest-strategies\tools\rt-grammar\realtest.lark

Expected Behavior

This file should fail validation but with a clearer error message

Additional Context

Expected Behavior*
The validator should have failed the file or pointed out the "unrecognized setting name" that causes RealTest to throw a syntax error. Instead, the validator reported [1/1] QQQ_ORB_10min.rts [PASS] and [SUCCESS] All files parsed successfully!.

Additional Context
Does this file work correctly in RealTest? No, RealTest returns a "Syntax Error: unrecognized setting name".

Image

Pre-submission Checklist

  • I've included the complete .rts file or relevant sections
  • I've included the complete error message
  • This file works correctly in RealTest (if applicable)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions