//+------------------------------------------------------------------+ //| RSI.mq4 | //| Copyright © 2004, MetaQuotes Software Corp. | //| http://www.metaquotes.net/ | //+------------------------------------------------------------------+ #property copyright "Copyright © 2004, MetaQuotes Software Corp." #property link "http://www.metaquotes.net/" #property indicator_separate_window //---- input parameters //---- buffers //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- return(0); } //+------------------------------------------------------------------+ //| Relative Strength Index | //+------------------------------------------------------------------+ int start() { //---- double currentprice= 1.36350000; double cek_digit_point= 0.00010000; double res; int pos_distance= 3; double dpos_distance = 3.0; res = currentprice / cek_digit_point; Comment(res + " " + MathMod( (currentprice/ cek_digit_point),pos_distance) + " " + MathMod( (currentprice/ cek_digit_point),dpos_distance) + " " + MathMod(res, pos_distance) + " " + MathMod(res, dpos_distance) + " " + MathMod(13635, pos_distance) + " " + MathMod(13635.0, dpos_distance) + " " + MathMod(res, 3) + " " + MathMod(res, 3.0) + " " + MathMod(13635, 3) + " " + MathMod(13635.0, 3.0) ); return(0); } //+------------------------------------------------------------------+