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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      65 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      35 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      59 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      62 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      51 views
      0 likes
      Last Post CarlTrading  
      Working...
      X