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 ageeholdings, Today, 07:43 AM
                0 responses
                7 views
                0 likes
                Last Post ageeholdings  
                Started by pibrew, Today, 06:37 AM
                0 responses
                4 views
                0 likes
                Last Post pibrew
                by pibrew
                 
                Started by rbeckmann05, Yesterday, 06:48 PM
                1 response
                14 views
                0 likes
                Last Post bltdavid  
                Started by llanqui, Today, 03:53 AM
                0 responses
                6 views
                0 likes
                Last Post llanqui
                by llanqui
                 
                Started by burtoninlondon, Today, 12:38 AM
                0 responses
                12 views
                0 likes
                Last Post burtoninlondon  
                Working...
                X