Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Copy properties

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

    Copy properties

    I am confused about how best to 'capture' the values of some Strategy Properties into an instance of a class.

    What I want to do is use the values of some properties as the "base" parameters in my logic but also have them over written by some other Strategy Properties depending on the situation.

    I want to make a new class whose constructor would create default values copying the "base" parameters but received an error that I need an instance of the strategy.​





    ​I am a programmer, good at programming, web design, software development
    Last edited by donwynne; 09-12-2022, 09:32 PM.

    #2
    Hello donwynne,

    Thank you for your post.

    So I may better assist you, please clarify what you are aiming to achieve:
    • Which properties/parameters are you referring to? Please provide an example.
    • At what point are you wanting these values to be overriden/changed?
      • You mentioned "depending on the situation" - do you mean that the original "base" parameter will be updated once a certain condition within your logic is met?
    • What is the exact error message that you got and when does it occur?
      • To send a screenshot with Windows 10 or newer I would recommend using the Windows Snipping Tool.
      • Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save it as a jpeg file and send the file as an attachment.

    I look forward to your reply.

    Comment

    Latest Posts

    Collapse

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