//+------------------------------------------------------------------+
//|                                                   tutorial14.mq4 |
//|                        Copyright 2020, MetaQuotes Software Corp. |
//|                                            https://triantoadi.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2020, MetaQuotes Software Corp."
#property link      "https://triantoadi.com"
#property version   "1.00"
#property strict
#property script_show_inputs
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
   extern int TakeProfit = 10;
   extern int StopLoss = 10;

void OnStart()
  {
   double TakeProfitLevel;
   double StopLossLevel;
   
   TakeProfitLevel = Bid + Point*TakeProfit;  
   StopLossLevel = Bid - Point*StopLoss;    //Point = 0.0001
   
   Alert("TakeProfitLevel = ",TakeProfitLevel );
   Alert("StopLossLevel = ",StopLossLevel);
   
  }