Dear Friends....someone know how many "index buffer" are on CumDelta.ex4?
I need to do that for my experiment:
double test=iClusterDelta_CumDelta.ex4(NULL,0,?,?...?...) ;
How could I found that??
Tnx Fabio
|
|||||
|
|||||
Dear Friends....someone know how many "index buffer" are on CumDelta.ex4?
I need to do that for my experiment:
double test=iClusterDelta_CumDelta.ex4(NULL,0,?,?...?...) ;
How could I found that??
Tnx Fabio
Sorry...I made an error ;(
So...the correct way to recall Delta_CumDelta.ex4 is it?
double testpostive=iCustom(NULL, 0, "Delta_CumDelta",...parameters?....,1,0);
double testnegative=iCustom(NULL, 0, "Delta_CumDelta",...parameters?....,2,0);
Is this correct? And the parameters that I see "auto - 10 - auto" How can I insert this?
Thanks again a Lot Mr. Deniss
@@@@@@@@@@@@@@@@@@@@
double iCustom( string symbol, int timeframe, string name, ..., int mode, int shift)
Calculates the specified custom indicator and returns its value. The custom indicator must be compiled (*.EX4 file) and be in the terminal_directory\experts\indicators directory.
Parameters:
symbol - Symbol the data of which should be used to calculate indicator. NULL means current symbol.
timeframe - Timeframe. It can be any of Timeframe enumeration values. 0 means the current chart timeframe.
name - Custom indicator compiled program name.
... - Parameters set (if necessary). The passed parameters and their order must correspond with the desclaration order and the type of extern variables of the custom indicator.
mode - Line index. Can be from 0 to 7 and must correspond with the index used by one of SetIndexBuffer functions.
shift - Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
@@@@@@@@@@@@@@@@@@@@
ÿ òàê âûçûâàþ
....
extern string Commen="-- Futures Ticker or AUTO";
extern string Instrument="AUTO";
extern int Update_in_sec=60;
extern string MetaTrader_GTM="AUTO";
......
for(int i=0; i<limit; i++)
{
t=iCustom(Symbol(),0,"ClusterDelta_CumDelta","__", Instrument,Update_in_sec,MetaTrader_GTM,0,i);
....
return(0);
Âñå ðàáîòàåò
òèíêîðñâèì íå äàåò âîçìîæíîñòü ñìîòðåòü êëàñòåðíûå ãðàôèêè
Many thanks MrBags...but I have some problem ;(
Êîä:#property indicator_separate_window #property indicator_buffers 2 #property indicator_color1 DarkGreen #property indicator_color2 Red //---- extern string Commen="-- Futures Ticker or AUTO"; extern string Instrument="AUTO"; extern int Update_in_sec=60; extern string MetaTrader_GTM="AUTO"; //---- double ExtBuffer1[]; double ExtBuffer2[]; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int init() { ObjectsDeleteAll(); SetIndexStyle(0,DRAW_HISTOGRAM,STYLE_SOLID,3); SetIndexStyle(1,DRAW_HISTOGRAM,STYLE_SOLID,3); SetIndexBuffer(0,ExtBuffer1); SetIndexBuffer(1,ExtBuffer2); IndicatorShortName("TEST CVD"); return(0); } int deinit() { //---- ObjectsDeleteAll(); //---- return(0); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int start() { // START int i, limit; int counted_bars = IndicatorCounted(); if(counted_bars < 0) return(-1); if(counted_bars > 0) counted_bars--; limit = Bars - counted_bars; //---- for(i=0; i<limit; i++) { // FOR //################################################################# double negative =iCustom(Symbol(),0,"ClusterDelta_CumDelta","__", Instrument,Update_in_sec,MetaTrader_GTM,0,i); double positive =iCustom(Symbol(),0,"ClusterDelta_CumDelta","__", Instrument,Update_in_sec,MetaTrader_GTM,1,i); //################################################################# ExtBuffer1[i] = negative; //ExtBuffer2[i] = positive; //********************************************************************************** } Comment("\n\n TEST CVD \n", "\n@@@@@@@@ KETRON82 @@@@@@@@ \n", "@ testnegative: ",DoubleToStr(negative,8)," @\n", "@ testpositive: ",DoubleToStr(positive,8)," @\n", "@@@@@@@@ KETRON82 @@@@@@@@ \n"); //################################################################# return(0); } // START //+------------------------------------------------------------------+
I don't now because the positive and negative (double) are "0" (empty) end the graph in separate window is "clear"
What do you think? Where is the errors?
Tnx Fabio
Hi, Fabio! I'm not strong in programming... and english)) But you can to insert next string:
int init()
{
ObjectsDeleteAll();
IndicatorBuffers(2);
SetIndexStyle(0,DRAW_HISTOGRAM,STYLE_SOLID,3);
SetIndexStyle(1,DRAW_HISTOGRAM,STYLE_SOLID,3);
SetIndexBuffer(0,ExtBuffer1);
SetIndexBuffer(1,ExtBuffer2);
IndicatorShortName("TEST CVD");
return(0);
}
After compiling indicator, remove it from chart and insert again.
Ïîáåäèòåëåé íå ñóäÿò... Õèùíèêîâ òîæå...
clusterdelta.com - áèðæåâîé èíôîðìàöèîííî-àíàëèòè÷åñêèé ïîðòàë
Ñ óâàæåíèåì, Ðàäèê
After compiling terminal will reload new code automaticaly.
There is only ONE buffer in CumDelta.double negative =iCustom(Symbol(),0,"ClusterDelta_CumDelta","__", Instrument,Update_in_sec,MetaTrader_GTM,0,i);
double positive =iCustom(Symbol(),0,"ClusterDelta_CumDelta","__", Instrument,Update_in_sec,MetaTrader_GTM,1,i);
Fabio, please, write what you want to get as a result? Cumulative Delta data for an expert ?
Äåíèñ äîáðûé âå÷åð! Èíäèêàòîðû îñòàíîâèëèñü â 22.00 Mñê. Âðåìÿ GMT - AUTO. ×òî ýòî ìîæåò áûòü åñëè âåñü âå÷åð ðàáîòàëè íà àâòî?
(C) 2009-2023 ClusterDelta.com.