Also I've tried loading the past 4000 values for the indicator in init() but that doesn't change anything.
int init() { ArraySetAsSeries(Top,true); ArraySetAsSeries(Bottom,true); int i; for(i=1;i<4000;i++) { Top[i]=iCustom(NULL,TimeFrame,"carmens_eyes_v2",till_breakeven_rate,breakeven_buffer1,space1,expand_rate1,start_at_pips_profit2,space2,expand_rate2, start_at_pips_profit3,space3,expand_rate3,1,i); Bottom[i]=iCustom(NULL,TimeFrame,"carmens_eyes_v2",till_breakeven_rate,breakeven_buffer1,space1,expand_rate1,start_at_pips_profit2,space2,expand_rate2, start_at_pips_profit3,space3,expand_rate3,2,i); }}
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
I've made a custom indicator similar to bolinger bands.
My EA is supposed to open and close orders when the price crosses the bands, but for about the first 200 bars, it opens and closes orders about 50 pips above the bands.
I believe the problem is because the custom indicator needs to read through some historical bars to start accurately calculating, but I have no idea how to tell my EA to let my indicator to do that.
I'm including the code for the indicator, hopefully it's an easy fix.