Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

2 trades

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

    2 trades

    Hello,

    I tried to find out without success how I can determine in my script-coded-strategy that strategy takes only 2 trades once conditions are filled. I tried also with variables.

    EG when MACD is falling there should be only 2 entries short and when rising there should be only 2 entries long (not important if 1,2,3 or more contracts per entry)

    I don´t mean EntriesperDirection and EntryHandling. This is clear of course.

    Thanks
    Tony

    #2
    tonynt,

    I am happy to assist.

    You could use a flag, such as one set to -1 for short, 0 for flat, 1 for long, and then use it as a filter for your entrance conditions. You could use standard C# counters as well. It is up to you how to increment and reset them.

    Here is a thread where someone wanted something similar.



    Please let me know if I can assist further.
    Adam P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by judysamnt7, 03-13-2023, 09:11 AM
    4 responses
    59 views
    0 likes
    Last Post DynamicTest  
    Started by ScottWalsh, Today, 06:52 PM
    4 responses
    36 views
    0 likes
    Last Post ScottWalsh  
    Started by olisav57, Today, 07:39 PM
    0 responses
    7 views
    0 likes
    Last Post olisav57  
    Started by trilliantrader, Today, 03:01 PM
    2 responses
    21 views
    0 likes
    Last Post helpwanted  
    Started by cre8able, Today, 07:24 PM
    0 responses
    10 views
    0 likes
    Last Post cre8able  
    Working...
    X