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 aussugardefender, Today, 01:07 AM
                0 responses
                3 views
                0 likes
                Last Post aussugardefender  
                Started by pvincent, 06-23-2022, 12:53 PM
                14 responses
                238 views
                0 likes
                Last Post Nyman
                by Nyman
                 
                Started by TraderG23, 12-08-2023, 07:56 AM
                9 responses
                384 views
                1 like
                Last Post Gavini
                by Gavini
                 
                Started by oviejo, Today, 12:28 AM
                0 responses
                4 views
                0 likes
                Last Post oviejo
                by oviejo
                 
                Started by pechtri, 06-22-2023, 02:31 AM
                10 responses
                125 views
                0 likes
                Last Post Leeroy_Jenkins  
                Working...
                X