//+------------------------------------------------------------------+
//|                                                   tutorial15.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 = 100;
extern int StopLoss = 100;
void OnStart()
   {
      double TakeProfitLevel;
      double StopLossLevel;
      
      TakeProfitLevel = Bid + Point*TakeProfit;
      StopLossLevel = Bid - Point*StopLoss;
      
      Alert("TakeProfitLevel = ", TakeProfitLevel);
      Alert("StopLossLevel = ", StopLossLevel);
      
 int result = OrderSend("EURUSD", OP_BUY, 1.0, Ask, 10, StopLossLevel, TakeProfitLevel, "My 1st Order !" );
   }