Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to implement possible different combinations of 4 true false

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to implement possible different combinations of 4 true false

    basically I want to answer which combination of indicators work best with the MACD?

    I have the basic MACD test and I want to test the perfect combination with 4 other indicators, say EMA, SMA, HMA, VMA

    I will have inputs for these so I can optimize in the Strategy Optimizer
    boolEMA. (T or F)
    boolSMA (T or F)
    boolHMA. (T or F)
    boolVMA. (T or F)

    how do I program this in the strategy builder

    I want to do this in one set

    I was thinking of using groups

    if all
    if Close > MACD
    group (if boolEMA = true && Close > EMA)
    group (if boolSMA = true && Close > SMA)
    group (if boolHMA = true && Close > HMA)
    group (if boolVMA = true && Close > VMA)

    then
    Enter Long Order


    the above wont work because if one bool is false, everything is false and I wont have an order

    how do I do this... There are 16 possible combinations... i don't want to do 16 strategies

    basically I want to answer which combination of indicators work best with the MACD?

    #2
    Hello AaronKoRn,

    Thank you for your note.

    You can't really do this in a single set because you can't just use a bool to control the conditions in this way. Your best bet would be to create 16 separate sets of conditions each with a different combination of indicators, and then the bools could control which set gets fired off to place an entry.

    Please let us know if we may be of further assistance to you.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    54 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    131 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    73 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X