Hi All,
I'd like to use the values that generate arrows from an indicator file. However, iCustom doesn't allow me to choose an array from an indicator.
The EA that I have set up calls to, include files so that my EA isn't long and hard to scroll and so the trading criteria include file is where I need to have the values.
I've tried to take the arrays CrossUp and CrossDown and move them to the Global Variable include file, which compiles fine, but doesn't seem to allow me any advantage in using the values.
Thanks for any assistance.
Scott
The code that I see is available in this indicator is:
double CrossUp[];
double CrossDown[];
extern int FasterMode=3; //0=sma, 1=ema, 2=smma, 3=lwma
extern int FasterMA= 3;
extern int SlowerMode=3; //0=sma, 1=ema, 2=smma, 3=lwma
extern int SlowerMA= 3;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
SetIndexStyle(0, DRAW_ARROW, EMPTY);
SetIndexArrow(0, 233);
SetIndexBuffer(0, CrossUp);
SetIndexStyle(1, DRAW_ARROW, EMPTY);
SetIndexArrow(1, 234);
SetIndexBuffer(1, CrossDown);
I'd like to use the values that generate arrows from an indicator file. However, iCustom doesn't allow me to choose an array from an indicator.
The EA that I have set up calls to, include files so that my EA isn't long and hard to scroll and so the trading criteria include file is where I need to have the values.
I've tried to take the arrays CrossUp and CrossDown and move them to the Global Variable include file, which compiles fine, but doesn't seem to allow me any advantage in using the values.
Thanks for any assistance.
Scott
The code that I see is available in this indicator is:
double CrossUp[];
double CrossDown[];
extern int FasterMode=3; //0=sma, 1=ema, 2=smma, 3=lwma
extern int FasterMA= 3;
extern int SlowerMode=3; //0=sma, 1=ema, 2=smma, 3=lwma
extern int SlowerMA= 3;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
SetIndexStyle(0, DRAW_ARROW, EMPTY);
SetIndexArrow(0, 233);
SetIndexBuffer(0, CrossUp);
SetIndexStyle(1, DRAW_ARROW, EMPTY);
SetIndexArrow(1, 234);
SetIndexBuffer(1, CrossDown);