Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Buy and Hold in strategy builder

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

    Buy and Hold in strategy builder

    I've been trying to do a buy and hold strategy in strategy builder. I can get the cumulative profit but I want to see maximum drawdown on a daily basis as trade progresses. Is this possible to do in strategy builder?

    #2
    Hello Karl Armstrong,

    Thanks for your post.

    There is not a "good" way to do this in the Strategy Builder due to the limited ability to perform some math operations.

    You could approximate it in the Strategy Builder by using a double variable and comparing the Close price minus (offset) the Strategy.AveragePrice and if less to then store that value in the variable. The variable value can then be displayed with Drawing>TextFixed. However, the value would be in points and would be - when the trade is positive.

    Otherwise, your best bet would be to unlock the strategy and work directly in code.








    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    29 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    46 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X