Results 1 to 4 of 4
 2 Attachment(s)    

Thread: #00_ZZ_Window indicator

  1. #1

    Question #00_ZZ_Window indicator

    Hi Funyoo,
    what's the command to call attached indicator? Starts with "iCustom....." and the "ifs" for buy/sell scripts.
    Thanks much.
    Attached Files Attached Files

  2. #2
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Quote Originally Posted by tamaraofx View Post
    Hi Funyoo,
    what's the command to call attached indicator? Starts with "iCustom....." and the "ifs" for buy/sell scripts.
    Thanks much.
    Hi tamaraofx,

    Code:
    double greendot=iCustom(NULL,0,"#00_ZZ_Window",ExtDepth,ExtDeviation,ExtBackstep,0,shift);
    double reddot=iCustom(NULL,0,"#00_ZZ_Window",ExtDepth,ExtDeviation,ExtBackstep,1,shift);
    double greenline=iCustom(NULL,0,"#00_ZZ_Window",ExtDepth,ExtDeviation,ExtBackstep,2,shift);
    double redline=iCustom(NULL,0,"#00_ZZ_Window",ExtDepth,ExtDeviation,ExtBackstep,3,shift);
    Then it depends what you want to code as conditions,

    For example :

    Code:
    if(greendot==-30 || greendot==70)buy...
    if(reddot==30 || reddot==-70 || reddot==-90 || reddot==90)sell...

  3. #3

    Default

    Hi Funyoo,
    Just trying to learn something here. Would the command/script be different if the indicator is used as main signal or filter?

    Would you kingly give the command/script for attached "arrzz2x" as a main signal and/or as filter.

    Greatly appreciate you help. Thanks much in advance.
    Attached Files Attached Files

  4. #4
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Quote Originally Posted by tamaraofx View Post
    Hi Funyoo,
    Just trying to learn something here. Would the command/script be different if the indicator is used as main signal or filter?

    Would you kingly give the command/script for attached "arrzz2x" as a main signal and/or as filter.

    Greatly appreciate you help. Thanks much in advance.
    Hi tamaraofx,

    Code:
    double long=iCustom(NULL,0,"ArrZZx2",SR,SRZZ,MainRZZ,FP,SMF,DrawZZ,PriceConst,4,shift);
    double short=iCustom(NULL,0,"ArrZZx2",SR,SRZZ,MainRZZ,FP,SMF,DrawZZ,PriceConst,5,shift);
    
    if(long>0 && long!=EMPTY_VALUE)buy
    if(short>0 && short!=EMPTY_VALUE)buy
    To use an indicator as a filter, you just need to replace the following red 0 by the wanted timeframe (1, 5, 15, 30, 60, 240, 1440, 10080).

    iCustom(NULL,0,"ArrZZx2",SR,SRZZ,MainRZZ,...

Similar Threads

  1. I need a better indicator!!!
    By MesquiteLizard in forum MQL programming
    Replies: 0
    Last Post: 09-08-2013, 01:13
  2. Replies: 4
    Last Post: 01-24-2012, 04:32
  3. MA TSI EA or Indicator
    By peter1977 in forum Ideas for expert advisors
    Replies: 3
    Last Post: 10-16-2010, 16:17
  4. Replies: 8
    Last Post: 06-03-2010, 02:30

Tags for this Thread

100, color, funyoo, indicator, learn, main, scripts, 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
  •