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

Forums>AlgoWizard / EA Wizard>Application Support>How do I nest conditions in the IF section

  • #110820 |
    Customer
    8 Posts

    How do I nest conditions in the IF section

    That is –

    If A is True and ((B and C are true) or (D and E are true))

    I cannot find an area where the brackets () can be added.

    #120702
    Mark Fric
    Administrator
    1182 Posts

    Hello,

    there is a possibility to specify and/or conditions and to select brackets in every trading rules line, see attached image.

    The condition in the second screenshot corresponds to your example, the ‘Market Condition is Flat’ is only an example.

    Attachments in this forum are visible only for registered users.
    Attachments in this forum are visible only for registered users.

    Mark
    StrategyQuant architect

    #120706
    Participant
    4 Posts

    The nesting condition is not so easy for newbie like me but it is much interest. Kindly,give an example of how to use brackets in conjuction with the AND/OR connectors.For instance if( A or B or C and D,E) then……..How/where do you place the brackets.Kindly attach an image.

    Machairu

    #120710
    Customer
    8 Posts

    I can see what you are saying but this is very obtuse.
    How do I close the brackets in correct sequence?

    #120712
    Participant
    4 Posts

    Hey Dave,
    I meant something like this: Is there the correct way to place the brackets.
    Case 1 (A or B or C and D or E)
    Case 2 ((A or B or C) and (D or E))
    Case 3 (((((A ) or (B ) or (C ) and ((D) or (E)))))

    Sorry for being obtuse.

    Machairu

    #120713
    Customer
    8 Posts

    Hi Machairu

    I think you misinterpreted my request. I was not directed at you. We have a common request.

    This was directed at SQ support.

    Regards
    David

    #120719
    Mark Fric
    Administrator
    1182 Posts

    Hey Dave,
    I meant something like this: Is there the correct way to place the brackets.
    Case 1 (A or B or C and D or E)
    Case 2 ((A or B or C) and (D or E))
    Case 3 (((((A ) or (B ) or (C ) and ((D) or (E)))))

    I understand it could be little bit complicated at first, but after you’ll understand it it is actually very simple.
    The only difference between how you wrote it and EA Wizard is that in EA Wizard each condition A, B, C, D, E is in its own line.
    But you’ll use the same brackets.

    For example Case 2 : ((A or B or C) and (D or E))
    can be made in EA Wizard like:
    (( A
    or B
    or C )
    and
    (D
    or E))

    Mark
    StrategyQuant architect

    #120725
    Customer
    8 Posts

    Thanks for your reply Mark.
    Only now have I woken up to the fact that when adding conditions, the second and last columns contain the dropdowns for the brackets.

    Your support is really appreciated.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.