one to one coaching

IO Cross Indy

stovedude

Active member
I made this indy for chetachukwu. I'm sure he won't mind sharing it. It doesn't repaint the arrows, but they do print on the previous closed candle. Maybe somebody can find some usefulness from it. You will need the other 2 indicators, but need only to attach the first.
 

Attachments

checkmail

Member
Treid to send you PM but its not loading

Treid to send you PM but its not loading

Hello stovedude this is checkmail and am searching for an MA Trend/line indicator , which changes its color when two ema/sma (open/close) cross each other at a point.

Means this indicator is similar to our ema cross indicator which draws arrows and alerts when two ema crosses each other to upside/downside, only this will be drawing an trendline/ema line that changes color on crosses.

Hope you have it in your collection, if not could you please try to code it, am needing it as soon as possible.

Thanks in Advance.:)

Fix the bug please :


#property copyright ""
#property link ""


#property indicator_chart_window

#property indicator_buffers 3
#property indicator_color1 Green
#property indicator_color2 Red
#property indicator_color3 Yellow

extern int PeriodAv=12;
extern int PeriodAv1=24;
extern int Flat=1;
extern color ColorUp=Green;
extern color ColorDown=Red;
extern color ColorFlat=Yellow;
extern int Width=2;


double Line1[], Line2[], Line3[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,Width,ColorUp);//DRAW_LINE
SetIndexBuffer(0,Line1);
SetIndexStyle(1,DRAW_LINE,STYLE_SOLID,Width,ColorDown);
SetIndexBuffer(1,Line2);
SetIndexStyle(2,DRAW_LINE,STYLE_SOLID,Width,ColorFlat);//DRAW_LINE
SetIndexBuffer(2,Line3);
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----

//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
//----
int i, Counted_bars=IndicatorCounted();

i=Bars-Counted_bars-1;

while(i>=0)
{
double MA_0=iMA(NULL,0,PeriodAv,0,MODE_EMA,PRICE_CLOSE,i),
MA_2=iMA(NULL,0,PeriodAv1,0,MODE_EMA,PRICE_CLOSE,i+1);

if(MA_0>MA_2) Line1=MA_0;
else
if(MA_0<MA_2) Line2=MA_0;
else if(MA_0==MA_2)
Line3=MA_0;
i--;
}
//----
return(0);
}
//+------------------------------------------------------------------+:)
 
I made this indy for chetachukwu. I'm sure he won't mind sharing it. It doesn't repaint the arrows, but they do print on the previous closed candle. Maybe somebody can find some usefulness from it. You will need the other 2 indicators, but need only to attach the first.

I see. but i dont really mind, its just that i like like sharing things that i am truely sure of and evaluated very very well before i go into action. i dint think that am am done evaluating the indy. i just discovered from you now that it prints at previous bar, ( dint know before) its just that it a little too early to share it, but well thank for everything i appreciate.:)

thank you
 
I made this indy for chetachukwu. I'm sure he won't mind sharing it. It doesn't repaint the arrows, but they do print on the previous closed candle. Maybe somebody can find some usefulness from it. You will need the other 2 indicators, but need only to attach the first.
It shows nothing on the chart.
Reason:
2010.11.28 00:40:40 os gaussian ma GBPUSD,H4: cannot load external expert 'OneSideGaussianLibrary'
2010.11.28 00:40:40 Cannot open file 'C:\Programme\Forex4you UGC\experts\OneSideGaussianLibrary.ex4' on the GBPUSD,H4
2010.11.28 00:40:40 Cannot open file 'C:\Programme\Forex4you UGC\experts\libraries\OneSideGaussianLibrary.ex4' on the GBPUSD,H4
 
one to one coaching
Top