I am using SQX in version 138, I cant export my simple code to MQL5 format.
The code uses only blocks relating to the built in envelopes indicator.
attached is the sqx file for your testing.
Template inclusion failed (for parameter value "blocks/Envelopes.tpl"):
Template not found for name "MetaTrader5/blocks/Envelopes.tpl".
this is not a default built-in indicator in SQX.
You can read the article how to add a template file for MT5 hereĀ
https://strategyquant.com/doc/programming-for-sq/adding-envelopes-indicator-step-by-step/
Sincerely,
Tamas