• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Separate Long/Short Stop Loss

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

    Separate Long/Short Stop Loss

    Hello,

    I am looking for a way to have my stop loss for longs only set when the entry is for a long order and vice versa for shorts. The thing is that I need MarketPosition to be Flat, otherwise the stop moves on each new bar, same thing happens if I put the stop loss right above the line of code that specifies the entry. I would put Flat as a condition in each of my trades, but A. I'm not sure this would even prevent my stop from moving if it was in each one of my entries, and B. I need to be able to get out of a long and reverse to a short, so that's a no go. Any ideas?

    If I've been unclear in any way, let me know and I'll provide more information/code snippets.

    Thank you!

    #2
    Nevermind, sorry. This was actually pretty straightforward.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by superkolleech, Today, 12:46 AM
    1 response
    12 views
    0 likes
    Last Post MojoJojo  
    Started by davidwade, Today, 02:51 AM
    0 responses
    3 views
    0 likes
    Last Post davidwade  
    Started by aviat72, 04-26-2020, 09:41 PM
    10 responses
    92 views
    0 likes
    Last Post kissandfly  
    Started by healthooa, Today, 01:28 AM
    0 responses
    8 views
    0 likes
    Last Post healthooa  
    Started by harjinderjit, Yesterday, 08:24 PM
    0 responses
    20 views
    0 likes
    Last Post harjinderjit  
    Working...
    X