Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

syntax help

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

    syntax help

    Hi,
    If I have a string input variable called LongDayOfWeek, What do I need to write to use that variable input instead of "DayOfWeek.Wednesday"?

    LongDayOfWeek = Wednesday
    _______________________________________________

    if ((Times[0][0].TimeOfDay == new TimeSpan(9, 35, 0))
    && (Times[0][0].DayOfWeek == DayOfWeek.Wednesday)) //i want to use LongDayOfWeek here instead of DayOfWeek.Monday
    {
    EnterLongStopMarket(Convert.ToInt32(DefaultQuantit y), PriorDayOHLC1.PriorHigh[0], @"longEntry");
    }

    thanks,
    Davidâ€ÂÂà ‚‹
    Last edited by trader3000a; 02-24-2023, 06:23 AM.

    #2
    never mind, I chatGPT'd it

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kinfxhk, 07-14-2026, 09:39 AM
    0 responses
    17 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    59 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    43 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    47 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    38 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X