Announcement

Collapse
No announcement yet.

MACD signal plot buy sell

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • MACD signal plot buy sell

    I would like to know if anyone has written a MACD EFS that plots a buy and sell signal on the price chart. I don't want the bars to change color because I use the AG XTL. I'd like an Green buy signal and a Red sell signal for a 12, 26, 9 MACD x-over. Using exp. MA's. An audio signal as well would be great too if anyone has coded all this.


    Thanks,
    Duke

  • #2
    Hello Duke,

    Please find your EFS formula attached below.

    A red or green circle will be drawn intra-bar at the crossovers. An audible alert will also be triggered when the crossover condition is true. If during the intra-bar trades the condition reverses and becomes false, the alert is rearmed and will trigger again once the condition becomes true.

    This formula is also configured to allow the user to change all MACD study parameters through the "Edit Studies" option. The input parameters and their defaults are as follows:

    nFastLength: 12
    nSlowLength: 26
    nSmoothing: 9
    nPriceSource: Close
    nSimpleMA_TorF: false

    Valid inputs for nPriceSource are:
    Open, High, Low, Close
    O, H, L, C
    HL/2, HLC/3, OHLC/4

    Valid inputs for nSimpleMA_TorF:
    true, T, false, F

    Attached Files
    Jason K.
    Project Manager
    eSignal - an Interactive Data company

    EFS KnowledgeBase
    JavaScript for EFS Video Series
    EFS Beginner Tutorial Series
    EFS Glossary
    Custom EFS Development Policy

    New User Orientation

    Comment


    • #3
      Sweet

      Thanks!!!

      Comment


      • #4
        Jason's MACD signal plot buy sell

        Jason,

        Your MACD signal buy sell is great!
        I was wondering if you could show me how to modify it to
        include the drop lines that can be configured in a normal MACD
        indicator?
        I really like your efs. thanks again.

        Mike

        Comment


        • #5
          I added Bands to the MACD and changed the Alert to an actual Buy Alert and Sell Alert voice command. I'll see if I can upload the Alert functions as well. The Bands are bascially overbought/oversold bands at .8 and -.8. This setting seems to be best for the SP eminis. It would need to be changed for NQ's or YM's.
          Attached Files

          Comment


          • #6
            How would i add a buy and sell command to this formula so that i can backtest it?

            Comment


            • #7
              czumwalt
              Buy and Sell commands have been added in Lines 88 and 95 respectively
              The strategy Buys (or Sells) at the Open of the bar following the one that generates the signal
              Alex
              Attached Files

              Comment

              Working...
              X