Thread: How to code?
View Single Post
  #894 (permalink)  
Old 05-12-2008, 12:11 AM
Badguy's Avatar
Badguy Badguy is offline
Member
 
Join Date: Jan 2006
Posts: 43
Badguy is on a distinguished road
How to use CCI Woodies in EA

Hi Cracks

maybe somebody can help me.

The EA makes no trades with this settings

When i will use the indicator CCI_Woodies_Lnx_v4.mq4 in an EA then I use following code:


extern int TrendCCI_Period = 14;
extern int EntryCCI_Period = 6;
extern int LSMAPeriod = 25; // LSMA period
extern int Trend_period = 5;
extern int CountBars = 1000;
extern int CCISize = 2;
extern int TCCISize = 1;
extern int TrendSize = 1;
extern int NoTrendSize = 1;
extern bool ShowLSMA = false;
extern int LineSize3 = 1;

and definition for Indicator is:

double CCI_0 = iCustom(NULL,0,"CCI_Woodies_Lnx_v4",
TrendCCI_Period,EntryCCI_Period,LSMAPeriod,Trend_p eriod,
CountBars,CCISize,TCCISize,TrendSize,NoTrendSize,S howLSMA,LineSize3,0);

to many parameters for indicator?

No error by compiling

In the journal edit:

CCI_Woodies_Lnx_v4 USDJPY,M15: removed

See EA_Test_template
Attached Files
File Type: mq4 CCI_Woodies_Lnx_v4.mq4 (7.9 KB, 2 views)
File Type: mq4 EA_Test_Template CCI Woodies.mq4 (10.3 KB, 4 views)
Reply With Quote