mike2tango:
Hello, I have following working successfully:
int modeH4_graph2_up = 0;
double graph2_up = iCustom(NULL,0,"N4 TF HAS Bar",MaMetod,MaPeriod,MaMetod2,MaPeriod2,BarWidth,BarColorUp,BarColorDown,TextColor, modeH4_graph2_up, 1) ;
Hello, I have following working successfully:
int modeH4_graph2_up = 0;
double graph2_up = iCustom(NULL,0,"N4 TF HAS Bar",MaMetod,MaPeriod,MaMetod2,MaPeriod2,BarWidth,BarColorUp,BarColorDown,TextColor, modeH4_graph2_up, 1) ;
I tried writing an EA to use the iCustom indicator to call "N4 TF HAS Bar" just as you have done.
I noticed, in the journal when I am running the EA in the Strategy Tester (15 min tf) that I get these problems:
The Heiken_Ashi_Smoothed,M30 loads over and over again for several minutes before the candles start moving.
I am not getting any values (0) when I send 30 as the timeframe.
I am seeing "unknown subwindow number -1 for ObjectCreate function".
Can you help? I kept my EA simple so that it would be easier for you to focus on the iCustom indicator.
Larene
Files:
heikentestea.mq4
3 kb
larenespitler:
I tried writing an EA to use the iCustom indicator to call "N4 TF HAS Bar" just as you have done.
Larene
I figured it out.
Larene
Files:
heikentestea_1.mq4
4 kb

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
I have found an indicator on the internet which I have attached, called the 4TF HAS BAR. This indicator shows 4 timeframes as bars in two different colours (blue for up and red for down).
In my EA,
Can somebody please complete the code pieces here that I need for my EA as well as that has to go into the indicator. I think it is something like this, but I cannot get it to work:
In the EA this code
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
In the indicator this code
....
....