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 cre8able, Yesterday, 01:16 PM
                3 responses
                11 views
                0 likes
                Last Post cre8able  
                Started by ChartTourist, Today, 08:22 AM
                0 responses
                6 views
                0 likes
                Last Post ChartTourist  
                Started by LiamTwine, Today, 08:10 AM
                0 responses
                2 views
                0 likes
                Last Post LiamTwine  
                Started by Balage0922, Today, 07:38 AM
                0 responses
                5 views
                0 likes
                Last Post Balage0922  
                Started by JoMoon2024, Today, 06:56 AM
                0 responses
                6 views
                0 likes
                Last Post JoMoon2024  
                Working...
                X