Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

strategy anayzer

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

    strategy anayzer

    when I apply my strategy via strategy analyzer, I have to comment out this line from my strategy.
    // if (State == State.Realtime)

    how to I auto detect the execution via strategy analyzer so I don't have to do this action?

    #2
    Hello junkone,

    Thanks for your post.

    You can check the account name.

    if (Account.Name == "Backtest")
    Print("In Strategy Analyzer");


    You can do this in State.Configure or State.DataLoaded or in OnBarUpdate().

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    75 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
    50 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    54 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X