Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Calculate number of shares with Strategy builder

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

    Calculate number of shares with Strategy builder

    I am trying to set the number of shares traded in a strategy based on $5000 position size. I would like to do this with the strategy builder

    I set a variable "Shares" to integer

    In the condition tab I have
    Position.MarketPosition=MarketPosition.Flat

    In the action box I am trying set Shares = 5000/Close[0];

    Using the strategy builder I am able to go under Misc - Set Shares
    but I can only set the Shares = Close[0]/5000; which is the opposite calculation I need

    Is there anyway to create this equation in the strategy builder

    Thank you

    Stefan

    #2
    Hello sdauteuil,

    Thank you for your reply.

    There would not be a way to set up this calculation in the Strategy Builder as it's not designed to handle much in the way of calculation. You'd need to unlock the code and manually add this logic.

    Please let us know if we may be of further assistance to you.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    79 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    146 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    79 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    52 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    56 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X