+ Reply to Thread
Results 1 to 2 of 2
 0 Attachment(s)    

Thread: Adding additional buffer to SilverTrend indicator

  1. #1
    Junior Member
    Join Date
    Nov 2010
    Posts
    2

    Default Adding additional buffer to SilverTrend indicator

    Hi,
    i'm writing an EA using SilverTrend indicator and using iCustom function. i have to access the last trend signal given by this indicator. the problem is, silvertrend has only 2 buffers and they have a value only when it signals. but i want to call it anytime. so, i'm trying to add an additional buffer to Silvertrend which stores latest trend(up/down) for every bar. i added a buffer stores uptrend as 1 and downtrend as -1. but it takes 0 for all bars. how can i code this?
    Last edited by mourath; 01-09-2011 at 19:33.

  2. #2
    Junior Member
    Join Date
    Nov 2010
    Posts
    2

    Default

    i solved it. delete the old variable and operations about it. 2 buffers have a valid trend value for all the bars

+ Reply to Thread

Similar Threads

  1. Adding D'Alembert to an EA
    By funyoo in forum MQL programming
    Replies: 4
    Last Post: 10-22-2010, 12:15
  2. Adding sound and email alert to Zig and Zag indicator
    By dsrtradefx in forum MQL programming
    Replies: 1
    Last Post: 05-22-2010, 16:05
  3. Adding a martingale to an EA
    By funyoo in forum MQL programming
    Replies: 9
    Last Post: 11-07-2008, 21:24

Posting Permissions

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