ADR

Jan 02, 2017 at 12:07
Vues 1,029
1 Replies
Membre depuis Jun 30, 2015   posts 7
Jan 02, 2017 at 12:07
Please i need someone to help me get 5day Average daily range to my meta 4 platform...I have no idea how to get this and how to install it..I will appreciate your help!!
Membre depuis Jan 03, 2017   posts 46
Jan 18, 2017 at 12:07
//adr calculating
int digits=(int)MarketInfo(Symbol(),MODE_DIGITS);
double pipsdouble=MarketInfo(Symbol(),MODE_POINT)*MathPow(10,digits%2);
 
intADR_D1=int((iHigh(Symbol(),PERIOD_D1,1)-iLow(Symbol(),PERIOD_D1,1))/pipsdouble);

int ADR_W1=int((iMA(Symbol(),PERIOD_D1,5,0,MODE_SMA,PRICE_HIGH,1) - iMA(Symbol(),PERIOD_D1,5,0,MODE_SMA,PRICE_LOW,1))/pipsdouble); //5 days ADR

int ADR_M1=int((iMA(Symbol(),PERIOD_D1,25,0,MODE_SMA,PRICE_HIGH,1)-iMA(Symbol(),PERIOD_D1,25,0,MODE_SMA,PRICE_LOW,1))/pipsdouble);

Se connecter / S’inscrire to comment
You must be connected to Myfxbook in order to leave a comment
*Lutilisation commerciale et le spam ne seront pas tolérés et peuvent entraîner la fermeture du compte.
Conseil : Poster une image/une url YouTube sera automatiquement intégrée dans votre message!
Conseil : Tapez le signe @ pour compléter automatiquement un nom dutilisateur participant à cette discussion.