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

Forums>StrategyQuant>Pre-Sales Questions>Question about pseudo code

  • #237909 | Reply
    Participant
    1 Posts

    Hi, I think Strategyquant is one of  the most interesting programs I have come across in a long time. I have a question about the generated pseudo code. It typically looks like this:

    //——————————————————————–
    // Trading rule: Long entry (On Bar Open)
    //——————————————————————–
    if LongEntrySignal
    {
       // Action #1
    }

    //——————————————————————–
    // Trading rule: Short entry (On Bar Open)
    //——————————————————————–
    if (ShortEntrySignal
    and Not LongEntrySignal)
    {
       // Action #1
    }

    Does it make a difference that ShortEntrySignal checks there is no LongEntrySignal but LongEntrySignal does not check there is no ShortEntrySignal?

    Thanks.

    #237946 Reply
    tomas262
    Administrator
    1826 Posts

    Both trading signals for long and short should never be valid at the same but in case it happens the long signal will be executed

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Question about pseudo code

You can use BBCodes to format your content.
Your account can't use Advanced BBCodes, they will be stripped before saving.

Your information: