Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy uses 2 conditions

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

    #16
    Hello Clevchin,

    It looks like you have a couple of problems here. The first would be to set the defaults for the bool variable to false, you will need to remove the conditions you added before you can reset the default.

    The other problem is that you never set the bool value and you are comparing the variable against its self.

    In Set 1 you would remove the bool condition totally, as an action use Misc -> Set MACD_UP and check the box to make it true. This sets the variable to true when the cross happens.
    In Set 3 you would edit the bool condition to be the following:
    • Left: User variables -> MACD_UP
    • Center: equals
    • Right: Misc -> True
    That will check if the bool was set to true as part of the condition
    In set 3 add an action of Misc -> Set MACD_UP and uncheck the box to make it false.

    You then would repeat these same changes for the sets 2 and 4 with MACD_DOWN.

    Comment


      #17
      Thanks. I'll give it a go.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      78 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      40 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      63 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      63 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      54 views
      0 likes
      Last Post CarlTrading  
      Working...
      X