Get confirmation from particular Timeframe and trade in other Timeframe
Forum on trading, automated trading systems and testing trading strategies
When you post code please use the CODE button (Alt-S)!

Thank you.
Forum on trading, automated trading systems and testing trading strategies
When you post code please use the CODE button (Alt-S)!

Thank you.
You agree to website policy and terms of use
Dear Friends,
I am Ramaraj ,I want to Get confirmation for trade in a Particular Time frame and trade in other Time Frame.
but the Expert Advisor is not allowing it.I have attached the code below for your reference.Can someone please help me with this one.
void start()
{
double sth=iStochastic(NULL,PERIOD_D1,12,10,3,0,0,0,0);
if(Hour()==10)
{
if(sth>=80)
{
bool sell=True;
}
}
double sth1=iStochastic(NULL,PERIOD_M30,12,10,3,0,0,0,0);
if(Hour()>=11&&Hour()<=12)
{
if(sth1>=80)
{
bool sellM30=True;
}
}
}