Get confirmation from particular Timeframe and trade in other Timeframe

To add comments, please log in or register
RockyRaju
13
RockyRaju  

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;

     }

     }

     }

Sergey Golubev
Moderator
106094
Sergey Golubev  

Forum on trading, automated trading systems and testing trading strategies

When you post code please use the CODE button (Alt-S)!

Use the CODE button

Thank you.

To add comments, please log in or register