Download MetaTrader 5
To add comments, please log in or register
No time to learn MQL5? Order your application from a developer!
lebric
120
lebric 2016.01.23 14:44 

Hi,

 First , i m not a coder but i can read so much coding. I have an EA with fires a trade based on OnTick() "i think" but would like to get that confirmation based on closing /opening bar please , can someone help , thanks !!

  void OnTick()

  {

//----

   manage_trades();

      if (count==0)

     {

      double line=iCustom(NULL,0,"3c_Turbo_JRSX_Filtered",JRSX_Len,JRSX_Filter,0,0); 

      if (jrsx()=="Up" && line<=JRSX_BuyThreshold) opentrade(0);

      else if (jrsx()=="Dn" && line>=JRSX_SellThreshold) opentrade(1);

     }

//----

  }  

whroeder1
13600
whroeder1 2016.01.23 15:53  
lebric: based on closing /opening bar please
  1. Don't paste code
    Play video
    Please edit your post.
    For large amounts of code, attach it.

  2. use this
/
To add comments, please log in or register