Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Wizard?

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

    Strategy Wizard?

    Is it possible to code a strategy to where the entry trades are executed after they close past a moving average instead of two moving averages that crossover?

    #2
    Hello kinkeadfx,

    Thank you for your post.
    Originally posted by kinkeadfx View Post
    entry trades are executed after they close past a moving average
    Can you provide further detail on on this condition? What does closing past the moving average mean? Would the last price close above the moving average?

    Comment


      #3
      Yes the close of the bar would close above the sma or ema to enter a long position or close below to enter a short position. Just wanted to know if was possible to code this type of strategy with the strategy wizard using just one sma or ema indicator?

      Comment


        #4
        Hello kinkeadfx,

        Thank you for your response.

        Yes, this is possible in the Strategy Wizard using the Greater Than (>) and Less Than (<) operators and a single moving average compared against the Close.

        Comment


          #5
          Using the strategy wizard how do i make the entries on the crossover wait for two bars for confirmation?

          Comment


            #6
            Hello kinkeadfx,

            Thank you for your response.

            Wait two bars before entering after the cross occurs, look for the cross within the last two bars, or cross over occurring on both the last two bars?

            Comment


              #7
              Waiting for two bars to enter the trade after the cross occurs?

              Comment


                #8
                Hello kinkeadfx,

                Thank you for your response.

                Unfortunately, this is not possible without unlocking the code and manually programming.

                You would need to store the CurrentBar on the cross and then compare that against the CurrentBar on each bar update until the CurrentBar is greater than the stored variable by two.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Jimmyk, 01-26-2018, 05:19 AM
                6 responses
                835 views
                0 likes
                Last Post emuns
                by emuns
                 
                Started by jxs_xrj, 01-12-2020, 09:49 AM
                6 responses
                3,291 views
                1 like
                Last Post jgualdronc  
                Started by Touch-Ups, Today, 10:36 AM
                0 responses
                11 views
                0 likes
                Last Post Touch-Ups  
                Started by geddyisodin, 04-25-2024, 05:20 AM
                11 responses
                62 views
                0 likes
                Last Post halgo_boulder  
                Started by Option Whisperer, Today, 09:55 AM
                0 responses
                9 views
                0 likes
                Last Post Option Whisperer  
                Working...
                X