Jump to content

Adding buffers to indicator


name000

Recommended Posts

I would really appreciate if somebody can help me to add buffers properly to G0iler indi. I tried to add my self, but I receive EMPTY_VALUE and I don't know where is the problem.

 

Here are both files (original and with added buffers):

http://mir.cr/0CJNV54Z

Thank you!

Link to comment
Share on other sites

I would really appreciate if somebody can help me to add buffers properly to G0iler indi. I tried to add my self, but I receive EMPTY_VALUE and I don't know where is the problem.

 

Here are both files (original and with added buffers):

http://mir.cr/0CJNV54Z

Thank you!

 

Incorrect use of buffer. no looping was done on buffer such as:

 

for(int i = 0; i < limit; i++)

bbMacd = iMA(NULL, 0, FastLen, 0, MODE_EMA, PRICE_CLOSE, i) - iMA(NULL, 0, SlowLen, 0, MODE_EMA, PRICE_CLOSE, i);

 

You want to convert to buffer mode, will be difficult for you.

Link to comment
Share on other sites

hi,

 

You can put the following code and your line will appear.

 

#property indicator_chart_window
#property indicator_buffers 6

#property  indicator_color1  CLR_NONE
#property  indicator_color2  White
#property  indicator_color3  Orange
#property  indicator_color4  Lime
#property  indicator_color5  DodgerBlue
#property  indicator_color6  Red

 

These are the 8 displaying Buffers that required looping for repetitive task such as price derived indicators and some periodic calculation like Pivot lines , Support & Resistance line etc. If not it is best to use Object.

 

In the above code, will turn on the color, but is not the right way, the buffer still got not much effect in the programming.

Edited by ArtOfTrade
Link to comment
Share on other sites

Sorry, I didn't explain why I need these buffers in there. This indi create 5 lines on chart (Entry1, Entry2, TP1, TP2 and SL). I need to pickup this data with iCustom from EA, and only way to do that is through buffers. If there is some other way how I can get data from indi I would really like to know. Thank you for your efforts!
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...