Forum on trading, automated trading systems and testing trading strategies
When you post code please use the CODE button (Alt-S)!
Thank you.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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;
}
}
}