Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Anyone want to program "The Force" ?

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

    Anyone want to program "The Force" ?

    This is a simple entry method, which is traded in a partially discretionary way, ie. in addition to the indicator-based signals, the trader must review proximity of pivots (intraday and longer) and trendlines. So the vale of a strategy is for entry execution, rather than fully automated trading.

    Would anyone care to program it, please, and share the code (as a "cut & paste" programmer, I am not going to do it, but I am trying to avoid having to reinstall MetaTrader, on which it has already been programmed as an indicator) ? Lazy, I know...

    Indicator set :

    5 EMA (Open)
    5 EMA (Close)
    Stochastic 5,3,3 (actually, in NT, it seems the parameter inputs are set up to be 3,5,3 to be comparable with other charting platforms); OB/OS at 80:20.
    MACD (histogram only) : 12,26,1

    Long entry signal (reverse for short) :

    Stochastic crosses up and is not overbought; true / false switch to add rule "must be coming from <20" (>80 for shorts); MACD closes higher than previous bar; Price bar closes higher than previous bar;
    5 EMA(C) has crossed 5 EMA(O).

    Weekend project anyone ?

    J.

    #2
    jtrade,

    As a last resort you can also try one of the 3rd party NinjaScript Consultants here: http://www.ninjatrader.com/webnew/pa...injaScript.htm
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Thanks, Josh. I'm just reading the manual on strategy automation and I see that if a strategy is applied to a chart, Chart Trader is disabled. If I apply an automated entry strategy to a chart, can I either "attach" one of my ATM trade management strategies to execute immediately following entry, or can I add it manually to the strategy chart ? Or do the tade management rules have to programmed into the strategy itself ?

      Sorry, Josh, I am a total newb when it comes to NT strategies.

      Comment


        #4
        jtrade,

        You can program your NinjaScript strategy to attach ATM strategies to its entries. That sounds like what you are trying to do. Please take a look at the SampleAtmStrategy already installed on your NinjaTrader for how to do this.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          I'm curious if you've actually used these entry critera and how successful you've been with it.

          Mike

          Comment


            #6
            Originally posted by Mike Winfrey View Post
            I'm curious if you've actually used these entry critera and how successful you've been with it.

            Mike
            Hi, Mike,

            Today was my first day taking the entries - on Friday, I realised that my Ninja chart was out of synch with my TradeStation chart and, not having the MT4 platform, I didn't know which was correct. It turned out to be TS, btw, and I posted some questions about the NT MACD in the Indicator thread. Anyway, I very much like and use NT ChartTrader to execute via Interactive Brokers. However, because of the MACD issue, I downloaded MT4 free demo over the weekend to set up The Force in a form I knew would be correct and used that chart to generate live trades today. I used my standard 3 lot entry (whatever the actual value of lots, which today happened to be $100k per lot) with my own scale-out exits (based on my personal view of the actual chart). Trades as follows (times are CET), all EURUSD :

            10.06 -3 1.2945 +12 +0 +0
            11.26 3 1.2956 -18 -18 -18
            11.35 3 1.2958 +17 +0 +0
            14.40 3 1.3014 +17 +33 +75
            15.39 3 1.3116 +12 +26 +56

            Total 194 pips / $1945.45 in the bank (difference is that I round half-pips down).
            The third and fifth trades were re-entries in the direction of the prior signal.

            Fancy a bit of programming, Mike ?

            J.

            Comment


              #7
              btw, Mike, if you are interested in programming the entries, my interest is to be able to automate the entries and having them call my standard ATM strategy. I would never just turn the strategy on to trade automatically all day : I would always use discretion not to enter around news, into support / resistance etc. But when I essentially like the form of the chart, I do NOT want to miss an entry having sat patiently by the computer all morning, just becausee the phone rings, postman arrives, wife wants to talk about her feelings (!), whatever...

              I'm sure you get the picture !

              btw2, it would be interesting to backtest different timeframes...

              Comment


                #8
                Hello jtrade, re your MACD, is the 1 as a smoothing factor parameter correct?

                On another note, maybe you want to code this rather as an indicator instead of a strategy since you seem to be interested in trading this discretionary.

                Comment


                  #9
                  just thought I'd let anyone who's interested know that I have a version of this coded and am checking it to make sure I have it coded correctly. I'll post it here when I'm finished.

                  Mike Winfrey

                  Comment


                    #10
                    t-l - yes, it's 1, but see Mike's post after yours : he is doing some great work on this.

                    I should add that if anyone really wants to understand this method, they should study this thread http://www.forexfactory.com/showthread.php?t=120606 , particularly posts 1, 238 & 1512, which puts the indicator setup into a wider, more appropriate context.

                    Comment


                      #11
                      Originally posted by Mike Winfrey View Post
                      just thought I'd let anyone who's interested know that I have a version of this coded and am checking it to make sure I have it coded correctly. I'll post it here when I'm finished.

                      Mike Winfrey
                      Hey mike,

                      If you need any help testing it let me know.

                      Cheers
                      CiRioN

                      Comment


                        #12
                        Obviously there will have to be some differences since MACD settings of 12,26,1 cause a problem of it not plotting.

                        Edit:
                        Just whipped one together to test. This could be one style of implementation. Built on a basic Stochastics panel, The K line will turn Blue if going below 20 and then crossing above the D line and red if going above 80 and then crossing below the D line. If reversing course and is no longer valid the line will be green. The 50 line dashes represent the MACD Diff histogram, rising is blue and falling is red. Lastly, the dots represent the EMA's. If the 5 EMA Close line is lower than the 5 EMA Open line the dot is red, or blue if the opposite is true. Here is a shot of a chart showing all the individual indicators versus the 'Force'.
                        Attached Files
                        Last edited by eDanny; 02-04-2009, 08:32 AM.
                        eDanny
                        NinjaTrader Ecosystem Vendor - Integrity Traders

                        Comment


                          #13
                          Well, looking at it in action and found a bug where the K line can cross the D line and change color without first crossing the overbought/oversold lines.

                          Edit: Code may be ok now.
                          Last edited by eDanny; 02-02-2009, 01:46 PM.
                          eDanny
                          NinjaTrader Ecosystem Vendor - Integrity Traders

                          Comment


                            #14
                            I'll look at this some more tonight , if the MACD Avg is what the MT MACD histogram is, this will have to be fixed.

                            No, that can't be right. If you could use 12,26,1 the MACD line and Average line would be the same so I believe we have to use the Diff line and 12,26,2 to get as close as possible.
                            Last edited by eDanny; 02-02-2009, 05:25 PM.
                            eDanny
                            NinjaTrader Ecosystem Vendor - Integrity Traders

                            Comment


                              #15
                              Originally posted by eDanny View Post
                              I'll look at this some more tonight , if the MACD Avg is what the MT MACD histogram is, this will have to be fixed.

                              No, that can't be right. If you could use 12,26,1 the MACD line and Average line would be the same so I believe we have to use the Diff line and 12,26,2 to get as close as possible.

                              To my knowledge the histogram is the diff.

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              648 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              369 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              109 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              573 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              575 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X