Hi. I am new to StrategyQuant, and would like to know how to properly read the sqx coding.
I am trying to convert it to pine script coding in Tradingview but they don’t match according to how I am reading it. Any advice? Or suggestions for me to understand the sqx generated strategies fully?
There is no pinescript generated from SQX.
Only MQL, Easylanguage, Pseudocode, and now Java with version 130. See screen shot.
What you need to do is first read the Pseudocode text, understand it. Then you will write a new pinescript, manually, by hand. The pseudocode is there as a guide to help you write the pinescript.
Basically the pseudocode is there as an easy on the eye code script that’s as close to understandable english as possible so you can read the logic of the algorithm produced by SQX. You can then implement this in any language code of your choosing but obviously you need the detailed programming knowledge of that code to be able to ‘translate’ it.
The pseudo code wont match anything in itself.
When you say it doesn’t match are you referring to the backtest results not matching between the two platforms?
Ah ok the results not matching is whole other topic for which you will find many posts on the forum.
The coding might not necessarily be the problem. Even the code that SQX produces itself for MT5 or Tradestation for example can give very different results once uploaded into the trading platforms. There a multitude of reasons that can cause this:
– differences in data being used
-commissions & swaps
thats not an exhaustive list but you get my point.
Yes, got it. By the way this is the strategy I am trying to backtest in a different platform.
Can you try interpret it? As a starter with strategyquant, this will help me a lot to understand sqx better and maybe see if I did interpreted it wrong.
Here. Yes would appreciate a lot for your help. Thank you.
Hi, I mean screenshots of your test results. So we can see how they are different.
There could be many reasons though. For example, money management is very different in Pinescript.
I have attached some sample code for you. One file is the pseudocode from SQX, and the other is the converted Pinescript.
I hope this will help.
You must be logged in to reply to this topic.