Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SetStopLoss

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

    SetStopLoss

    Hi all,

    I am currently trying to construct a strategy that uses multiple orders and dynamic stop loss orders.

    For the the SetStopLoss i am recieving the error CS1501 for the following code.

    I was just wondering if someone could point out where the error may lie.

    PHP Code:
    SetStopLoss("long 2 - profit target 5%", CalculationMode.Price, APreviousValueAtTime("Close", 16, 0, 0).RequestesTime[0] - 1 * TickSize); 
    
    Many Thanks for any help
    4blue
    Last edited by 4blue; 01-01-2010, 07:34 PM.

    #2
    4blue, believe you miss a parameter in the used overload then -

    Code:
    [COLOR=#000000][COLOR=#0000bb]SetStopLoss[COLOR=#007700]([COLOR=#dd0000]"long 2 - profit target 5%"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]CalculationMode[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]Price[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]APreviousValueAtTime[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]"Close"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]16[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]0[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]0[/COLOR][COLOR=#007700]).[/COLOR][COLOR=#0000bb]RequestesTime[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]0[/COLOR][COLOR=#007700]] - [/COLOR][COLOR=#0000bb]1 [/COLOR][COLOR=#007700]* [/COLOR][COLOR=#0000bb]TickSize[/COLOR][COLOR=#007700]), false;[/COLOR][/COLOR]
    [/COLOR]
    [/COLOR]

    Comment


      #3
      thank you for quick response.

      Cant see the trees for the forest moment.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      633 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      364 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      105 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      567 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      568 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X