icustom(??)?
hi all
I want the code to extract values from indecator Tmaslope
icustom(??)?
thanks
This indicator in the code base has detailed information on how to use iCustom. Together with the MQL4 documentation you shouldbe able to write some code.
Unable to retrieve the value. I do not know.
double ts=iCustom(NULL,0,"TmaSlope.v1.2",56,0.4,0.4,-0.4,-0.4,4,0);
if(ts<0)
{
res=OrderSend(Symbol(),OP_BUY,LotsOptimized(),Bid,3,0,0,"",MAGICMA,0,Red);
return;
}
Unable to retrieve the value. I do not know.
double ts=iCustom(NULL,0,"TmaSlope.v1.2",56,0.4,0.4,-0.4,-0.4,4,0);
if(ts<0)
{
res=OrderSend(Symbol(),OP_BUY,LotsOptimized(),Bid,3,0,0,"",MAGICMA,0,Red);
return;
}
Have you compiled the indicator TmaSlope.v1.2
iCustom works with ex4 files
Otherwise play with this (Experts)
//+------------------------------------------------------------------+ //| Comments.mq4 | //| Copyright © 2012, Tjipke de Vries | //| | //+------------------------------------------------------------------+ #property copyright "Copyright © 2012, Tjipke de Vries" #property link "" //---- input parameters extern int eintPeriod = 56; extern double edblHigh1 = 0.5; extern double edblHigh2 = 1.0; extern double edblLow1 = -0.5; extern double edblLow2 = -1.0; double ts0,ts1,ts2,ts3,ts4,ts5; //+------------------------------------------------------------------+ //| expert initialization function | //+------------------------------------------------------------------+ int init() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| expert deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| expert start function | //+------------------------------------------------------------------+ int start() { //---- // double ts=iCustom(NULL,0,"TmaSlope.v1.2",56,0.4,0.4,-0.4,-0.4,4,0); ts0=iCustom(NULL,0,"TmaSlope.v1.2",eintPeriod,edblHigh1,edblHigh2,edblLow1,edblLow2,0,0); ts1=iCustom(NULL,0,"TmaSlope.v1.2",eintPeriod,edblHigh1,edblHigh2,edblLow1,edblLow2,1,0); ts2=iCustom(NULL,0,"TmaSlope.v1.2",eintPeriod,edblHigh1,edblHigh2,edblLow1,edblLow2,2,0); ts3=iCustom(NULL,0,"TmaSlope.v1.2",eintPeriod,edblHigh1,edblHigh2,edblLow1,edblLow2,3,0); ts4=iCustom(NULL,0,"TmaSlope.v1.2",eintPeriod,edblHigh1,edblHigh2,edblLow1,edblLow2,4,0); ts5=iCustom(NULL,0,"TmaSlope.v1.2",eintPeriod,edblHigh1,edblHigh2,edblLow1,edblLow2,5,0); subPrintDetails(); //---- return(0); } //+------------------------------------------------------------------+ //----------------------- PRINT COMMENT FUNCTION void subPrintDetails() { string sComment = ""; string sp = "----------------------------------------\n"; string NL = "\n"; sComment = "Comments EA Copyright © 2012, Tjipke" + NL; sComment = sComment + NL; sComment = sComment + "ts0 " + DoubleToStr(ts0,5) + NL; sComment = sComment + "ts1 " + DoubleToStr(ts0,5) + NL; sComment = sComment + "ts2 " + DoubleToStr(ts0,5) + NL; sComment = sComment + "ts3 " + DoubleToStr(ts0,5) + NL; sComment = sComment + "ts4 " + DoubleToStr(ts0,5) + NL; sComment = sComment + "ts5 " + DoubleToStr(ts0,5) + NL; sComment = sComment + "Buffervalues TmaSlope at bar 0 " + NL; Comment(sComment); } //+------------------------------------------------------------------+
Have you compiled the indicator TmaSlope.v1.2
iCustom works with ex4 files
Otherwise play with this (Experts)
Thank you very much. Thank you very much.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
hi all
I want the code to extract values from indecator Tmaslope
icustom(??)?
thanks