Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Crazy amount of entries

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

    Crazy amount of entries

    Does anyone have any idea why I am getting so many entries like this?


    #2
    Hi TDHarris5, thanks for writing in. Is the strategy running OnEachTick or OnPriceChanged? Please also share how you are exiting the position. Please include screen shots of all the sets in use.

    Kind regards,
    -ChrisL

    Comment


      #3
      Hi Chris,

      I am using on price change and the exit is just a hard stop.

      Comment


        #4
        I tried changing it to on each tick and I am still having the same issue.

        Comment


          #5
          Hi TDHarris5, thanks for your reply. I have an example here that shows how to do one trade per bar in a OnEachTick strategy;
          Hi, I'm currently working on a strategy that is utilizing OnTickChange data using the linked method. I am using a Tick Chart. The strategy uses onTickChange to make intrabar entry, and does so fine with the Set1 and Set2, but if/when profit target is hit, it will submit another order after the profit target if the


          Kind regards,
          -ChrisL

          Comment


            #6
            Hi Chris,

            I read through that post of how to set one trade per bar but I am still lost. Could you walk me through how it should look in the Strategy Builder?

            Thanks

            Comment


              #7
              Hi TDHarris5, thanks for the follow up. The code/builder example can be downloaded from Post Albums on that thread. Please first download it and then go to Tools>Import to import the .zip file. After this, you can open up the example through the builder and study how it works. It works by keeping track of two variables, EntryBar and ActiveBar. EntryBar is set when the strategy enters the market, then the strategy won't enter Set 2 again while EntryBar = CurrentBar because part of the entry condition in Set 2 requires EntryBar to = -1. It will get reset in Set 1 when the ActiveBar is no longer equal to CurrentBar.

              Kind regards,
              -ChrisL

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by NullPointStrategies, 03-13-2026, 05:17 AM
              0 responses
              86 views
              0 likes
              Last Post NullPointStrategies  
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              151 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              79 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              53 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              61 views
              0 likes
              Last Post TheRealMorford  
              Working...
              X