Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Tradecounter

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

    Tradecounter

    Hello, I use the strategy builder and like to limit my daily trades with my strategy to 3 trades per day

    I tried to use a variable for counting trades but it doesnt work right.

    The issue is that only 1 trade will be made.

    This is what I created for test and it dont work:
    -Variable: Tradecounter default 0
    Strategy:

    Set 1
    If XY is true
    and TradeCounter = 0

    go Long
    set Tradecounter = 1

    Set 2
    If XY is true
    and TradeCounter = 1

    go Long​
    set TradeCounter = 2

    Set 3
    If XY is true
    and TradeCounter = 2

    go Long​
    set TradeCounter = 3



    I dont understand whats wrong with this logic

    Thank you​

    #2
    Hello Uregon,

    Did you also increase the strategies entries per direction property to 3? That would be required because you are submitting entries into the same direction, they will be ignored if that property is at the default of 1.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    72 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    39 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
    53 views
    0 likes
    Last Post CarlTrading  
    Working...
    X