Topics
Replies
forextik
04 Oct 2016, 23:25
i check the open daily candle under mt4, and the calgo indicator, i daresay is not working correctly....
so day after day i start thinking that ctrader is'nt a good trading platform.
there are plenty of problem, i cannot link my ctrader ID to myfxbook and nobody listen to me....i wrote so many time to have a solution for this....and i can just say that all this problem make me trade like a unable trader....couse i m not quiet....
can you tell me hat do you think about ctrader and with which broker are you using it? couse i start thinking that problems are connected with the broker not only with spotware....
but why should i try using a not well working platform when we have mt4 very quick doing all via mobile and via pc.....boh
mat
@forextik
forextik
03 Oct 2016, 09:46
RE: indicators using cAlgo
harry said:
[Output("Main", Color = Colors.Turquoise)]
public IndicatorDataSeries Result { get; set; }
hi Harry.
yes i saw, and can understand the meaning, but what i am looking into is a line that is not a continuos one, i want ,when the day finish , the line too finish and the day after i have another line..... it is like if i need of a new property for drowing the line...??? couse it seems i havent found that one!!
this is what i am looking at for now.
then i have another question, about another free indicator, called woodiepivotpoints. this indicator has a problem: when i add it to a chart, the chart will be zoomed out, so that all the support and resistance are shown. but this is very annoying couse even if my chart zoom is at max, i cannot view the candle zoomed!!!!
if someone can help undestanding this behaviour i would be very pleased!;)
thanks in advance!
mat
@forextik
forextik
04 Oct 2016, 23:43
this is the mt4 daily open candle working as it should be.
the other one is not like this, the open is not correct in the calgo indicator,
i tried the mql calgo converter....i can say it is notihng at all working,
//*
//* my_DailyOpen_indicator
//*
//* Revision 1.1 2005/11/13 Midnite
//* Initial DailyOpen indicator
//* based pm
//*
#property copyright "Midnite"
#property link "me@home.net"
#property indicator_chart_window
#property indicator_buffers 1
#property indicator_color1 DodgerBlue
#property indicator_style1 2
#property indicator_width1 1
double TodayOpenBuffer[];
extern int TimeZoneOfData= 0;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
SetIndexStyle(0,DRAW_LINE);
SetIndexBuffer(0,TodayOpenBuffer);
SetIndexLabel(0,"Open");
SetIndexEmptyValue(0,0.0);
return(0);
}
//+------------------------------------------------------------------+
//| Custor indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int lastbar;
int counted_bars= IndicatorCounted();
if (counted_bars>0) counted_bars--;
lastbar = Bars-counted_bars;
DailyOpen(0,lastbar);
return (0);
}
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
int DailyOpen(int offset, int lastbar)
{
int shift;
int tzdiffsec= TimeZoneOfData * 3600;
double barsper30= 1.0*PERIOD_M30/Period();
bool ShowDailyOpenLevel= True;
// lastbar+= barsperday+2; // make sure we catch the daily open
lastbar= MathMin(Bars-20*barsper30-1, lastbar);
for(shift=lastbar;shift>=offset;shift--){
TodayOpenBuffer[shift]= 0;
if (ShowDailyOpenLevel){
if(TimeDay(Time[shift]-tzdiffsec) != TimeDay(Time[shift+1]-tzdiffsec)){ // day change
TodayOpenBuffer[shift]= Open[shift];
TodayOpenBuffer[shift+1]= 0; // avoid stairs in the line
}
else{
TodayOpenBuffer[shift]= TodayOpenBuffer[shift+1];
}
}
}
return(0);
}
@forextik