Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

'Trade Counter' Variable?

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

    'Trade Counter' Variable?

    I'm wondering if there is an automated way to limit the number of trades a strategy will make once it hits a certain limit. For example I have a strategy that works well if it trades <10 times, but there are days where it does poorly and much of that is due to overtrading. Is there a way that I can have the strategy turn off after 10 trades? I tried to use the strategy builder to implement a line of code to the effect of "if TradeCount < User Variable", but I can't find a variable as part of the indicators that will serve as a trade counter.

    Thanks in advance.

    #2
    Hello FutTrader9000,

    You could use similar logic to this sample which increments a variable. You would need to increment the series when you submit the entry and then part of your entry condition check that the value is less than the target number of entries.

    Is there a way to increment an int in the strategy builder? When I go to set an int equal to itself there's no way to add 1 to it as well. Just wondering if this is possible in the wizard.


    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    135 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X