Results 1 to 1 of 1
 1 Attachment(s)    

Thread: Help using indicator?

  1. #1
    Junior Member
    Join Date
    Jun 2009
    Posts
    3

    Default Help using indicator?

    Hello

    Sorry, not sure if this is the right section for this request.

    I've been trying to detect changes in the Slope direction line and Im not having any luck.

    double up = iCustom(Symbol(),NULL,"Slope_Direction_Line",35,3, 0,0,2);
    double down = iCustom(Symbol(),NULL,"Slope_Direction_Line",35,3, 0,1,2);
    double up_d = iCustom(Symbol(),NULL,"Slope_Direction_Line",35,3, 0,0,3);
    double down_d = iCustom(Symbol(),NULL,"Slope_Direction_Line",35,3, 0,1,3);


    if( down != EMPTY_VALUE && up == EMPTY_VALUE && up_d != EMPTY_VALUE && down_d != EMPTY_VALUE )
    {
    //Sell
    }
    if( up != EMPTY_VALUE && down == EMPTY_VALUE && up_d != EMPTY_VALUE && down_d != EMPTY_VALUE )
    {
    //Buy
    }



    I keep getting confirmation of a trend change when there actually hasn't been one. Im aware it repaints to some degree but no matter how much I change the shift it still occurs.

    Thanks for your time
    Attached Files Attached Files

Similar Threads

  1. DMI indicator for MT4
    By PascalSonia in forum Indicators
    Replies: 0
    Last Post: 07-20-2015, 14:07
  2. Replies: 4
    Last Post: 01-24-2012, 04:32
  3. Replies: 8
    Last Post: 06-03-2010, 02:30

Tags for this Thread

indicator, request, time, trend

Posting Permissions

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