//+------------------------------------------------------------------+ //| BaseLine5digits220.mq4 | //| //+------------------------------------------------------------------+ #property strict #property show_inputs input double high = 0.0; //high input double low = 0.0; //low double inp_percentage = 61.8; //Percentage to return Price at double fb; double fim; void OnStart(){ double priceDifference = MathAbs(low - high) * inp_percentage/100; //get the price difference between the required percentage level and 0% fb=((high > low) ? NormalizeDouble(low + priceDifference, Digits) : NormalizeDouble(low - priceDifference, Digits)); fim=fb+0.013596; MessageBox(fim, "BaseLine of 220",0); }