Mehrdad Sarrafi / Publications
Forum
resourse management in iCustom
I've written code that captures the signals of an indicator for different inputs and at various timeframes. In version 4, this was straightforward, and obtaining the indicator's output was possible with a single command. in MQL4 I also draw a table for 10 symbols and 8 TF and 5 indicator for each of
ArraySetAsSeries does not work !!
Here I have written some codes to show that ArraySetAsSeries function does not have any effect in Arrays!! any boddy can help me? why this function has no effect in my metatrader??? #property indicator_chart_window #property indicator_buffers 1 #property indicator_plots 1 //---- plot Label1
problem with iCustom
hi here I have a custom indicator , But when I use it in my expert 's backtest, I only receve maximum one signal ! and in the back test I only have maximum 1 trade (depending on start time of backtest ) !! here I have deleted the SendOrder to minimize code size , i only receive one print
metatrader doenot delete my indicator by ChartIndicatorDelete
hi I want to delete all indicators from my chart by running a piece of code in my expert or script but it doesnot work properly . some times delete one from 5 indicators, some times 2 . and also it has delay!!! please help me what can I do to insure the proper answer from metetrader void OnStart()
question about EventChartCustom function
ButtonCreate( long chart_id,CChartObjectButton &btn, int i, const string name, const int x, const int y) { if (!btn.Create(chart_id, "Sym_" +( string )i+ "_" +name, 0 ,x,y, 77 , 25 )) return ( false ); //"Button_"+name if (!btn.Description(name))
how can I find index when out of range occured in in an indicator
Hi in an indicator that I have written , array out of range error occures, without removing the indicator from chart I whant to printf the index amount for my debug something like this : if( _LastError>0) printf(" i is : ", i , " during error" );//==4002 please some one guide me how is it possible
static variable in objects !!
Hi can anybody tell : why all function in different object behave like they have the same static variable ? the result is only : div thank you in advanced class sweep { protected : private : public : sweep() {} ; ~sweep() {}; bool
Trend Line class
Hi .. I have coded a new class for defining and saving trend line as below: class TrendLine { public : datetime time1,time2; double price1,price2; TrendLine( void ){}; TrendLine( datetime t1, double p1, datetime t2, double p2) {
name of object doesnot change in mql5
hello I write a code to alarm breaking trendline and i write last alarm time in object name ObjectSetString(currChart,object_name,OBJPROP_NAME,TimeToString(TimeCurrent())); it is ok in mql4 but doesnot work in 5 !! can any body help me i use OBJPROP_TEXT for another purpose and i want to change only