Results 1 to 2 of 2
 0 Attachment(s)    

Thread: Hello help is needed

  1. #1
    Junior Member
    Join Date
    Sep 2012
    Posts
    4

    Default Hello help is needed

    hi new to this forum i came in search for a mod to the force index indicator in mt4 im looking for a sound alert when crossing certain levels in the + area and - area is there such mod exist ? if not can you direct me on how to program it? must be honest have never programed if someone can it will be great
    thanks nir.
    Last edited by nirim123; 09-27-2012 at 21:58.

  2. #2
    Junior Member
    Join Date
    Sep 2012
    Posts
    4

    Default Found this

    Force Index Level Alert
    //+------------------------------------------------------------------+
    //| expert start function |
    //+------------------------------------------------------------------+
    int start()
    {
    //----
    int top_lvl = 0.0055;
    int low_lvl = -0.0055;
    if (iForce(NULL,0,13,MODE_EMA,PRICE_TYPICAL,0)>top_lv l||(iForce(NULL,0,13,MODE_EMA,PRICE_TYPICAL,0)<low _lvl)) {
    Alert("The Force is: "+iForce(NULL,0,13,MODE_EMA,PRICE_TYPICAL,0));
    //SendMail("Force Levels","Time to trade");
    }
    //----
    return(0);
    }
    //+------------------------------------------------------------------+


    but havnt got it to work in the original indicator the code is :

    //+------------------------------------------------------------------+
    //| Force Index.mq4 |
    //| Copyright 2005, MetaQuotes Software Corp. |
    //| MetaTrader 4 Trading Platform / MetaQuotes Software Corp. |
    //+------------------------------------------------------------------+
    #property copyright "Copyright 2005, MetaQuotes Software Corp."
    #property link "http://www.metaquotes.net"

    #property indicator_separate_window
    #property indicator_buffers 1
    #property indicator_color1 DodgerBlue
    //---- input parameters
    extern int ExtForcePeriod=13;
    extern int ExtForceMAMethod=0;
    extern int ExtForceAppliedPrice=0;
    //---- buffers
    double ExtForceBuffer[];
    //+------------------------------------------------------------------+
    //| Custom indicator initialization function |
    //+------------------------------------------------------------------+
    int init()
    {
    string sShortName;
    SetIndexBuffer(0,ExtForceBuffer);
    //---- indicator line
    SetIndexStyle(0,DRAW_LINE);
    //---- name for DataWindow and indicator subwindow label
    sShortName="Force("+ExtForcePeriod+")";
    IndicatorShortName(sShortName);
    SetIndexLabel(0,sShortName);
    //---- first values aren't drawn
    SetIndexDrawBegin(0,ExtForcePeriod);
    //----
    return(0);
    }


    //+------------------------------------------------------------------+
    //| Force Index indicator |
    //+------------------------------------------------------------------+

    int start()
    {
    int nLimit;
    int nCountedBars=IndicatorCounted();
    //---- insufficient data
    if(Bars<=ExtForcePeriod) return(0);
    //---- last counted bar will be recounted
    if(nCountedBars>ExtForcePeriod) nCountedBars--;
    nLimit=Bars-nCountedBars;
    //---- Force Index counted
    for(int i=0; i<nLimit; i++)
    ExtForceBuffer[i]=Volume[i]*
    (iMA(NULL,0,ExtForcePeriod,0,ExtForceMAMethod,ExtF orceAppliedPrice,i)-
    iMA(NULL,0,ExtForcePeriod,0,ExtForceMAMethod,ExtFo rceAppliedPrice,i+1));
    //---- done

    return(0);
    }
    //+------------------------------------------------------------------+





    can anyone check this out plz ?

Similar Threads

  1. My supertrend EA - help needed!
    By Viv108 in forum Ideas for expert advisors
    Replies: 22
    Last Post: 07-15-2013, 14:16
  2. Simple EA needed...
    By xxxxx11 in forum Expert advisors backtesting
    Replies: 1
    Last Post: 10-09-2011, 15:25
  3. Help needed
    By Leverage1 in forum MQL programming
    Replies: 0
    Last Post: 05-15-2011, 05:04
  4. Help needed for programming EA
    By vassil88 in forum MQL programming
    Replies: 0
    Last Post: 10-11-2010, 16:45
  5. Help needed with dual sdl EA
    By roblis13 in forum MQL programming
    Replies: 1
    Last Post: 12-05-2009, 08:57

Tags for this Thread

color, custom indicator, expert, how to, index, indicator, low, metatrader, mq4, mt4, time, trading, trading platform

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •