Not logged in
Viewing 15 posts - 1 through 15 (of 15 total)

Forums>StrategyQuant>General Discussion>(sqx) Reading Guidelines

  • #268318 |
    Participant
    8 Posts

    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?

    #268369
    tomas262
    Administrator
    1821 Posts

    Hello,

    what coding are you referring to? The pseudo code or Java code or any other? Let me know

    #268378
    Customer
    109 Posts

    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.

     

    #268381
    Participant
    8 Posts

    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.

    #268382
    Participant
    8 Posts

    Hello,

    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.

    #268384
    Participant
    8 Posts

    I am referring to pine script codes. Thank you for the response, hopefully you can help me.

    #268386
    Customer
    109 Posts

    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.

     

     

     

    Attachments:
    You must be logged in to view attached files.
    #268387
    Customer
    64 Posts

    @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?

    #268393
    Participant
    8 Posts

    Yes I am using this.

    #268394
    Participant
    8 Posts

    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.

    #268401
    Customer
    64 Posts

    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.

    #268425
    Participant
    8 Posts

    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.

    Attachments:
    You must be logged in to view attached files.
    #268430
    Customer
    109 Posts
    1. Can you pls share the different screen shots?
    2. I also converted a BTC strategy to pinescript. Give me some time and I will share this with you later today.
    #268440
    Participant
    8 Posts

    Here. Yes would appreciate a lot for your help. Thank you.

    Attachments:
    You must be logged in to view attached files.
    #268444
    Customer
    109 Posts

    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.

    Attachments:
    You must be logged in to view attached files.
Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in to reply to this topic.