|
|||||
|
|||||
Ok, thank you Deniss for your answer.
Good morning to all and to Deniss ;)
My last post is about some years ago ;) ....nice to re-meet you ;)
I am testing your MT4 indicators but I have one problem with icustom() function beacuse I found desrciption of 3.1 version of dPoc but in the 3.5 I saw that someting is changed.
input string indName= "ClusterDelta_dPOC_3.5";
input string instrument="AUTO";
input string Update_interval="every_1min";
input string MetaTrader_GMT="AUTO";
input string dPOC_Period="Daily";
input int Amount_of_dPOCs=1;
input bool Forex_auto_shift=true;
input int Forex_shift=0;
double dpoc=iCustom(_Symbol,_Period,indName,instrument,Up date_interval,MetaTrader_GMT,dPOC_Period,Amount_of _dPOCs,Forex_auto_shift,Forex_shift,0,1);
I used only buffer 0 in this example but I tested also for buffer 0 to 7 but nothing passed by iCustom()
Have I made some error in the "type" declaration .....example --> input string Update_interval="every_1min"; <-- Is Update_interval a string type? In dPoc 3.1 was in seconds.
Many thanks ;)
Tnx Deniss....I was busy this last days.
Many thanks for replay.....I corrected the code but there is something incorrect ;)
I Will post all the test code corrente. With other clusterdelta indicators I haven't found problem.
Many tanks again :)
This is the source code modified but it not work correctly ;)
I declared "input int Update_interval=60;" but nothing again ;)
//+------------------------------------------------------------------+
//| cluster test.mq4 |
//| Copyright 2017, SIMITCH Software Corp. |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2017, SIMITCH Software Corp."
#property link "https://www.mql5.com"
#property version "1.00"
#property strict
input string indName= "ClusterDelta_dPOC_3.5";
input string instrument="AUTO";
input int Update_interval=60;
input string MetaTrader_GMT="AUTO";
input int dPOC_Period=60;
input int Amount_of_dPOCs=1;
input bool Forex_auto_shift=true;
input int Forex_shift=0;
//+------------------------------------------------------------------+
//| Expert initialization function |
//+------------------------------------------------------------------+
int OnInit()
{
//---
//---
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Expert deinitialization function |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
//---
}
//+------------------------------------------------------------------+
//| Expert tick function |
//+------------------------------------------------------------------+
void OnTick()
{
//---
double dpoc=iCustom(_Symbol,_Period,indName,instrument,Up date_interval,MetaTrader_GMT,dPOC_Period,Amount_of _dPOCs,Forex_auto_shift,Forex_shift,0,1);
double dpoc1=iCustom(_Symbol,_Period,indName,instrument,U pdate_interval,MetaTrader_GMT,dPOC_Period,Amount_o f_dPOCs,Forex_auto_shift,Forex_shift,1,1);
double dpoc2=iCustom(_Symbol,_Period,indName,instrument,U pdate_interval,MetaTrader_GMT,dPOC_Period,Amount_o f_dPOCs,Forex_auto_shift,Forex_shift,2,1);
double dpoc3=iCustom(_Symbol,_Period,indName,instrument,U pdate_interval,MetaTrader_GMT,dPOC_Period,Amount_o f_dPOCs,Forex_auto_shift,Forex_shift,3,1);
double dpoc4=iCustom(_Symbol,_Period,indName,instrument,U pdate_interval,MetaTrader_GMT,dPOC_Period,Amount_o f_dPOCs,Forex_auto_shift,Forex_shift,4,1);
double dpoc5=iCustom(_Symbol,_Period,indName,instrument,U pdate_interval,MetaTrader_GMT,dPOC_Period,Amount_o f_dPOCs,Forex_auto_shift,Forex_shift,5,1);
double dpoc6=iCustom(_Symbol,_Period,indName,instrument,U pdate_interval,MetaTrader_GMT,dPOC_Period,Amount_o f_dPOCs,Forex_auto_shift,Forex_shift,6,1);
double dpoc7=iCustom(_Symbol,_Period,indName,instrument,U pdate_interval,MetaTrader_GMT,dPOC_Period,Amount_o f_dPOCs,Forex_auto_shift,Forex_shift,7,1);
Alert(dpoc, " ", dpoc1," ", dpoc2, " ", dpoc3, " ");
}
//+------------------------------------------------------------------+
(C) 2009-2023 ClusterDelta.com.