Results 1 to 1 of 1
 2 Attachment(s)    

Thread: Put Demark Lines as a cutom indicator in my EA?

  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    1

    Default Put Demark Lines as a cutom indicator in my EA?

    Hi everyone out there im trying to learn how to build in a custom indicator in my expert advisor.
    But it doesent work? :S

    Does anyone know how i should do, to make it work??

    Code:
    double Buy1_1 = iRSI(NULL, 0, 2, PRICE_CLOSE, Current + 0);
    double Buy1_2 = 70;
    
    double Sell1_1 = iRSI(NULL, PERIOD_D1, 2, PRICE_CLOSE, Current + 0);
    double Sell1_2 = 30;
    
    <-----Here i do not know what to write. This should be the demark upper line
    double Buy2_1 = iCustom(NULL, 0, "Demark Lines", ?, ?, Current + ?);       
    double Buy2_2 = iHigh(NULL, 0, Current + 0);
    
    <-----Here i do not know what to write. This should be the demark lower line
    double Sell2_1 = iCustom(NULL, 0, "Demark Lines", ?, ?, Current + ?);       
    double Sell2_2 = iLow(NULL, 0, Current + 0);
    
    -----------------------------------------------
    
      if (Buy1_1 > Buy1_2 && Buy2_1 <= Buy2_2) Order = SIGNAL_BUY;
    
       if (Sell1_1 < Sell1_2 && Sell2_1 >= Sell2_2) Order = SIGNAL_SELL;

    Thanks for the help.
    Attached Files Attached Files

Similar Threads

  1. Demark Lines EA
    By funyoo in forum Expert advisors live statements
    Replies: 35
    Last Post: 07-05-2016, 08:04
  2. Tom DeMark TD Sequential EA
    By daxc in forum Expert advisors backtesting
    Replies: 16
    Last Post: 11-13-2014, 08:32
  3. Demark lines EA
    By tilo10 in forum Ideas for expert advisors
    Replies: 0
    Last Post: 08-04-2014, 22:35
  4. Demark Lines Indicator + Email Alert
    By bnbb2004 in forum Indicators
    Replies: 1
    Last Post: 07-17-2014, 13:08
  5. 0 20 50 80 lines
    By avus in forum Indicators
    Replies: 1
    Last Post: 09-04-2012, 18:46

Tags for this Thread

advisor, custom indicator, expert, expert advisor, how to, indicator, learn, signal

Posting Permissions

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