Premium1 468x60 forex
Page 28 of 28 FirstFirst ... 18 26 27 28
Results 271 to 274 of 274
Like Tree67Likes

AllPivots

This is a discussion on AllPivots within the Trading tools forums, part of the Trading Forum category; Originally Posted by julio@ Hi dear Igor, I am using the following parameters in the iCustom () function but when ...

          
   
  1. #271
    Developer igorad's Avatar
    Join Date
    Feb 2013
    Posts
    2,095
    Follow igorad On Twitter Add igorad on Facebook Add igorad on Google+
    Add igorad on Linkedin
    Quote Originally Posted by julio@ View Post
    Hi dear Igor,

    I am using the following parameters in the iCustom () function but when it is executed in the EA it performs the entries in the S1 and R1 of the previous week. What am I doing wrong?

    Attachment 35524




    Regards,

    Hi julio@,

    Please check out the updated AllPivots indicators for both platforms that work in EAs properly.

    AllPivots-voltycloudtrader_v1.8-allpivots.png


    Code:
    input string            pivotsInputs               = "===== AllPivots settings: =====";
    input ENUM_TIMEFRAME    pivotsTimeFrame            =       D1;    // TimeFrame 
    input int               pivotsLength               =        1;    // Length in periods(eg. 2= 2 days)  
    input ENUM_PIVOTS       pivotsMode                 = floor_piv;   // Pivot Mode  
    input string            pivotsValues               = "0;1;2;3;4"; // Pivot values(ratios)
    input ENUM_BASEPRICE    pivotsBasePrice            = prevtypical; // Base Price
    input int               pivotsBaseHourShift        =        0;    // Base Hour Shift(eg.0-start of the day)
    input bool              pivotsShowMedians          =    false;    // Show Medians 
    input ENUM_RANGE        pivotsRangeMode            =   hilo_r;    // Range Mode
    input string            pivotsAvgPeriod            =      "1";    // Avg Periods in bars  
    input int               pivotsSessionStartHour     =        0;    // Session Start Hour(eg. 9 for DAX,0-for Forex)
    input int               pivotsSessionEndHour       =        0;    // Session End Hour(eg. 22 for DAX,0-for Forex)
    input int               pivotsNumberOfDigits       =        4;    // Number of digits after decimal point 
    input bool              pivotsShowPivots           =     true;    // Show Pivots
    input int               pivotsShift                =        1;    // AllPivots Shift
    input int               pivotsEntryMode            =        1;    // Entry Mode: 0-off,1-sell above r1/buy below s1,2-r2/s2,3-r3/s3   
    
    
    string            UniqueName              =  "Pivots";            // Unique Name
    bool              ShowOnWeekends          =  false;               // Show Piovts On Weekends
    bool              ShowGradientLevelColor  =  true;                // Show Gradient Level Colors
    color             MainPivotColor          =  clrSilver;           // Main Pivot Color
    int               MainPivotWidth          =  1;                   // Main Pivot Width
    color             UpperLevelColor         =  clrTomato;           // Upper Level Color         
    color             LowerLevelColor         =  clrLimeGreen;        // Lower Level Color
    ENUM_LINE_STYLE   LevelStyle              =  STYLE_SOLID;         // Level Style
    int               LevelWidth              =  2;                   // Level Width                   
    bool              ShowMedians             =  false;               // Show Medians 
    color             MedianColor             =  clrSilver;           // Median Color
    bool              ShowGradientMedianColor =  true;                // Show Gradient Median Colors
    ENUM_LINE_STYLE   MedianStyle             =  STYLE_DOT;           // Median Style
    int               MedianWidth             =  0;                   // Median Width
    bool              ShowPivotValues         =  false;               // Show Pivot Values
    string            FontName                =  "Arial";             // Font Name
    int               FontSize                =  7;                   // Font Size
    color             TextColor               =  clrWhite;            // Text Color
    bool              ShowGradientTextColor   =  false;               // Show Gradient Text Colors
    ENUM_ANCHOR_POINT DescriptionAnchor       =  0;                   // Level's Description Anchor
    bool              UseStaticLocation       =  true;                // Use Static Location for the Level's Description
    int               DescriptionDistance     =  0;                   // Distance from the Anchor(in bars) for Level's Description  
    bool              ShowPeriodSeparators    =  true;                // Show Period Separators
    color             PeriodSeparatorsColor   =  clrGray;             // Period Separators Color
    bool              ShowBackground          =  false;               // Show Background
    color             BackgroundColor         =  clrBlack;            // Background Color
    bool              ShowGradientBgColor     =  true;                // Show Gradient Background Colors
    bool              ShowComment             =  false;               // Show Comments
    
    
    r1[0] = iCustom(_Symbol,0,"AllPivots_v5.9 600+","",pivotsTimeFrame,UniqueName,pivotsLength,pivotsMode,pivotsValues,pivotsBasePrice,pivotsBaseHourShift,pivotsRangeMode,pivotsAvgPeriod,pivotsSessionStartHour,pivotsSessionEndHour,pivotsNumberOfDigits,
                    "",pivotsShowPivots,ShowOnWeekends,ShowGradientLevelColor,MainPivotColor,MainPivotWidth,UpperLevelColor,LowerLevelColor,LevelStyle,LevelWidth,pivotsShowMedians,MedianColor,ShowGradientMedianColor,
                    MedianStyle,MedianWidth,ShowPivotValues,FontName,FontSize,TextColor,ShowGradientTextColor,DescriptionAnchor,UseStaticLocation,DescriptionDistance,ShowPeriodSeparators,
                    PeriodSeparatorsColor,ShowBackground,BackgroundColor,ShowGradientBgColor,ShowComment,1,bar);
       
    s1[0] = iCustom(_Symbol,0,"AllPivots_v5.9 600+","",pivotsTimeFrame,UniqueName,pivotsLength,pivotsMode,pivotsValues,pivotsBasePrice,pivotsBaseHourShift,pivotsRangeMode,pivotsAvgPeriod,pivotsSessionStartHour,pivotsSessionEndHour,pivotsNumberOfDigits,
                    "",pivotsShowPivots,ShowOnWeekends,ShowGradientLevelColor,MainPivotColor,MainPivotWidth,UpperLevelColor,LowerLevelColor,LevelStyle,LevelWidth,pivotsShowMedians,MedianColor,ShowGradientMedianColor,
                    MedianStyle,MedianWidth,ShowPivotValues,FontName,FontSize,TextColor,ShowGradientTextColor,DescriptionAnchor,UseStaticLocation,DescriptionDistance,ShowPeriodSeparators,
                    PeriodSeparatorsColor,ShowBackground,BackgroundColor,ShowGradientBgColor,ShowComment,7,bar);
    Regards,
    Igor
    Attached Files Attached Files
    twix and julio@ like this.

  2. #272
    Junior Member
    Join Date
    Mar 2017
    Posts
    3
    Quote Originally Posted by igorad View Post
    Hi julio@,

    Please check out the updated AllPivots indicators for both platforms that work in EAs properly.

    Click image for larger version. 

Name:	VoltyCloudTrader_v1.8 allpivots.png 
Views:	78 
Size:	86.6 KB 
ID:	35558


    Code:
    input string            pivotsInputs               = "===== AllPivots settings: =====";
    input ENUM_TIMEFRAME    pivotsTimeFrame            =       D1;    // TimeFrame 
    input int               pivotsLength               =        1;    // Length in periods(eg. 2= 2 days)  
    input ENUM_PIVOTS       pivotsMode                 = floor_piv;   // Pivot Mode  
    input string            pivotsValues               = "0;1;2;3;4"; // Pivot values(ratios)
    input ENUM_BASEPRICE    pivotsBasePrice            = prevtypical; // Base Price
    input int               pivotsBaseHourShift        =        0;    // Base Hour Shift(eg.0-start of the day)
    input bool              pivotsShowMedians          =    false;    // Show Medians 
    input ENUM_RANGE        pivotsRangeMode            =   hilo_r;    // Range Mode
    input string            pivotsAvgPeriod            =      "1";    // Avg Periods in bars  
    input int               pivotsSessionStartHour     =        0;    // Session Start Hour(eg. 9 for DAX,0-for Forex)
    input int               pivotsSessionEndHour       =        0;    // Session End Hour(eg. 22 for DAX,0-for Forex)
    input int               pivotsNumberOfDigits       =        4;    // Number of digits after decimal point 
    input bool              pivotsShowPivots           =     true;    // Show Pivots
    input int               pivotsShift                =        1;    // AllPivots Shift
    input int               pivotsEntryMode            =        1;    // Entry Mode: 0-off,1-sell above r1/buy below s1,2-r2/s2,3-r3/s3   
    
    
    string            UniqueName              =  "Pivots";            // Unique Name
    bool              ShowOnWeekends          =  false;               // Show Piovts On Weekends
    bool              ShowGradientLevelColor  =  true;                // Show Gradient Level Colors
    color             MainPivotColor          =  clrSilver;           // Main Pivot Color
    int               MainPivotWidth          =  1;                   // Main Pivot Width
    color             UpperLevelColor         =  clrTomato;           // Upper Level Color         
    color             LowerLevelColor         =  clrLimeGreen;        // Lower Level Color
    ENUM_LINE_STYLE   LevelStyle              =  STYLE_SOLID;         // Level Style
    int               LevelWidth              =  2;                   // Level Width                   
    bool              ShowMedians             =  false;               // Show Medians 
    color             MedianColor             =  clrSilver;           // Median Color
    bool              ShowGradientMedianColor =  true;                // Show Gradient Median Colors
    ENUM_LINE_STYLE   MedianStyle             =  STYLE_DOT;           // Median Style
    int               MedianWidth             =  0;                   // Median Width
    bool              ShowPivotValues         =  false;               // Show Pivot Values
    string            FontName                =  "Arial";             // Font Name
    int               FontSize                =  7;                   // Font Size
    color             TextColor               =  clrWhite;            // Text Color
    bool              ShowGradientTextColor   =  false;               // Show Gradient Text Colors
    ENUM_ANCHOR_POINT DescriptionAnchor       =  0;                   // Level's Description Anchor
    bool              UseStaticLocation       =  true;                // Use Static Location for the Level's Description
    int               DescriptionDistance     =  0;                   // Distance from the Anchor(in bars) for Level's Description  
    bool              ShowPeriodSeparators    =  true;                // Show Period Separators
    color             PeriodSeparatorsColor   =  clrGray;             // Period Separators Color
    bool              ShowBackground          =  false;               // Show Background
    color             BackgroundColor         =  clrBlack;            // Background Color
    bool              ShowGradientBgColor     =  true;                // Show Gradient Background Colors
    bool              ShowComment             =  false;               // Show Comments
    
    
    r1[0] = iCustom(_Symbol,0,"AllPivots_v5.9 600+","",pivotsTimeFrame,UniqueName,pivotsLength,pivotsMode,pivotsValues,pivotsBasePrice,pivotsBaseHourShift,pivotsRangeMode,pivotsAvgPeriod,pivotsSessionStartHour,pivotsSessionEndHour,pivotsNumberOfDigits,
                    "",pivotsShowPivots,ShowOnWeekends,ShowGradientLevelColor,MainPivotColor,MainPivotWidth,UpperLevelColor,LowerLevelColor,LevelStyle,LevelWidth,pivotsShowMedians,MedianColor,ShowGradientMedianColor,
                    MedianStyle,MedianWidth,ShowPivotValues,FontName,FontSize,TextColor,ShowGradientTextColor,DescriptionAnchor,UseStaticLocation,DescriptionDistance,ShowPeriodSeparators,
                    PeriodSeparatorsColor,ShowBackground,BackgroundColor,ShowGradientBgColor,ShowComment,1,bar);
       
    s1[0] = iCustom(_Symbol,0,"AllPivots_v5.9 600+","",pivotsTimeFrame,UniqueName,pivotsLength,pivotsMode,pivotsValues,pivotsBasePrice,pivotsBaseHourShift,pivotsRangeMode,pivotsAvgPeriod,pivotsSessionStartHour,pivotsSessionEndHour,pivotsNumberOfDigits,
                    "",pivotsShowPivots,ShowOnWeekends,ShowGradientLevelColor,MainPivotColor,MainPivotWidth,UpperLevelColor,LowerLevelColor,LevelStyle,LevelWidth,pivotsShowMedians,MedianColor,ShowGradientMedianColor,
                    MedianStyle,MedianWidth,ShowPivotValues,FontName,FontSize,TextColor,ShowGradientTextColor,DescriptionAnchor,UseStaticLocation,DescriptionDistance,ShowPeriodSeparators,
                    PeriodSeparatorsColor,ShowBackground,BackgroundColor,ShowGradientBgColor,ShowComment,7,bar);
    Regards,
    Igor
    Hi Igor,

    One good turn deserves another. It works perfectly for me. I really appreciate what you’ve done for me.

    Thanks for your support.

  3. #273
    Administrator newdigital's Avatar
    Join Date
    Feb 2013
    Posts
    9,830
    Blog Entries
    1563
    Follow newdigital On Twitter Add newdigital on Facebook Add newdigital on Google+ Add newdigital on MySpace
    Add newdigital on Linkedin
    Quote Originally Posted by vsreeram77 View Post
    when i placed in mt4, system hangs immediately, Igor please do the needful
    Quote Originally Posted by vsreeram77 View Post
    after restart, it is showing as like belowAttachment 35577
    Quote Originally Posted by vsreeram77 View Post
    levels for the current day is not coming.. i post previous old version, which works as the best one

    Attachment 35578
    Market is closed today because of weekend (current day will be tomorrow on Monday for example).
    You can try to test tomorrow when the market will be opened.
    If still problems - post here and I will ask Igorad to check.
    Premium Trading Forum: subscription, public discussion and latest news
    Trading Forum wiki || Social networks for the forum
    Trading blogs || My blog
    ePayments: premium subscription without paypal

  4. #274
    Member
    Join Date
    Jun 2015
    Posts
    67

    Display the label when zoom in

    Hello ND,
    Please allow to display the label on the far right when I zoom in.

    The label displays correct on the left on a "normal" chart but when I zoom in on a 5 minute chart then the label does not display. See images attached.

    This display is fine:
    AllPivots-hotforex-metatrader1.jpg

    Can this display be corrected:
    AllPivots-hotforex-metatrader2.jpg

    Thank you

Page 28 of 28 FirstFirst ... 18 26 27 28

Tags for this Thread

Bookmarks

Posting Permissions

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