i have a question , that ea is only used for one chart , example 5m charts or 15m charts , can't hook to two charts 5m and 15m.
here is a simple ea
Code:
//+------------------------------------------------------------------+
//| aaa.mq4 |
//| Copyright ?2007, MetaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright ?2007, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net"
//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int init()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
//----
Comment(iStochastic(NULL,15,5,3,3,MODE_SMA,0,MODE_MAIN,0) );
//----
return(0);
}
//+------------------------------------------------------------------+
this can display value of 15m timeframe kdj, but if you hook it to 5m charts ,always display 0, if you hook it to 5m charts ,display normal value;
and if you change it to use 5m timeframe kdj, then you hook it to 5m display normal value ,but if you hook it to 15m charts ,display 0 always.
so here is the question:
how to use those two timeframe 5m and 15m kdj value in same time ?
thank you .