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 CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      163 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      82 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      125 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      206 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      184 views
      0 likes
      Last Post CarlTrading  
      Working...
      X