(sqx) Reading Guidelines
14件の返信
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?
0
こんにちは,
what coding are you referring to? The pseudo code or Java code or any other? Let me know
0
Sheena, I did much of this recently: I was converting SQX strategies to Pinescript.
You should look at the pseudocode version of your SQX strategy, and then look in the pinescript documents on how to implement it.
0
Thank you for the response. Yes I am doing it like that. But wanted to make sure I am reading it right because they do not match.
0
こんにちは,
what coding are you referring to? The pseudo code or Java code or any other? Let me know
—-
I am referring to pine script codes. Thank you for the response, hopefully you can help me.
0
I am referring to pine script codes. Thank you for the response, hopefully you can help me.
0
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.
0
@Sheena
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?
0
Yes. Results of backtest in two platforms are not the same. Maybe I am doing the code wrong. I was hoping there is a guideline on how to properly read it than interpreting it on my own.
0
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
-slippage
-spread
-commissions & swaps
thats not an exhaustive list but you get my point.
0
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.
0
- Can you pls share the different screen shots?
- I also converted a BTC strategy to pinescript. Give me some time and I will share this with you later today.
0
Here. Yes would appreciate a lot for your help. Thank you.
0
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.
0
14件の返信を表示中 - 1 - 14件目 (全14件中)