extern bool NoNewTrade = False; // open new series after close all or not
extern bool TradeBuy = True; // open all Buy orders Type
extern bool TradeSell = True; // open all Sell odrers Type
extern bool NewSerialBuy = True; // open new seria MartinGaile Buy
extern bool NewSerialSell = True; // open new seria MartinGaile Sell
extern bool NewKneeIlanBuy = True; // open new knee MartinGaile (level) Buy
extern bool NewKneeIlanSell = True; // open new knee MartinGaile (level)Sell
extern bool TradePyrBuy = True; // open Pyramid Buy
extern bool TradePyrSell = True; // open Pyramid Sell
extern string _s2_ = "--> Use Indicators ? ";
extern bool SglStartMartin = false; // open new MartinGaile series by Indicators (start order)
extern bool SglKneeMartin = False; // open new MartinGaile knees by Indicators (all Martin order)
extern bool SglStartPyramid = False; // Open Pyramid orders by Indicators
extern string _s3_ = "--> Lots Settings <---";
extern int lotdecimal = 2; // 2 - MicroLots 0.01, 1 - MiniLots 0.1, 0 - NormalLots 1.0
extern double StartLot = 0.1; // StartLot if Risk = 0
extern double Risk = 0.01; // First Order in % from depo(0.05...3), if = 0, when StartLot
extern double MaxLot = 10000; // MaxLot of MartinGaile
extern double MaxLotP = 10000; // MaxLot of Pyramid
extern double MaxLotLock = 1.5; // MaxLot when start Lock
extern int MaxTrades = 100; // Maximal orders of Martingaile
extern string _s4_ = "--> MartinGaile Settings <---";
extern int IlanStep = 30; // Step between MartinGaile Orders
extern double IlanLotExponent = 1.7; // LotExponent of MartinGaile (next Lot = prev*LotExp)
extern bool NonStopIlan = True; // True - New Knee Martin will open always(with any Pyramid), False - New Knee Martin will not open if there is just 1 order of Pyramid
extern bool OppositeOrder = false; // True - open opposite order with last Martim Order(in % from Last)
extern double OppositeOrderKoef = 0.3; // what % of Last Martin order will open Opposite
extern int StartOpposite = 5; // from what knee Martin start Opposite order
extern bool RybDrawdownTrendOps = true; // Open Trend order in % from sumBuy-sumSell?
extern int DrawdownTrendOps = 20; // In what drowdownopen trend order?
extern double KoefDrawdownTrendOps = 0.2; // % from sumBuy-sumSell?
extern string _s5_ = "--> Pyramid & Lock Settings <---";
extern string _s5_1_ = "--> Pyramid <---";
extern int MethodPyr = 1; // 0- in % from sum Martin orders(1+2+3+all knees), 1- in % only from Last Martin order
extern int PyramidStart = 6; // From what knee start Pyramid
extern double PyramidKoef = 0.5; // what % from Sum Martin knees (levels) or Last Martin order we open Lot Piramid
extern int PyramidStep = 30; // Step of "counter_MartinGaile" Pyramid
extern int PyrMaxOrder = 10000; // Max Orders of Pyramid
extern int PyramidStepI = 30; // Step Pyramid if it go in trend
extern double PyramidLotExponent = 5; // Multiplier for pyramid: NewPyrLot = preLotRyr/PyramidLotExponent
extern bool KysKys = True; // If we have Profit in CounterTrendPyramide - use Overlap for overcome(eat) bad Martin orders by this profit?
extern bool KysKysT = True; // If we have Profit in TrendPyramide - use Overlap for overcome(eat) bad Martin orders by this profit?
extern string _s5_2_ = "--> Lock <---";
extern bool OpenLock = False; // Use Lock?(only if sum MartinOrders>=MaxLotLock
extern double LockKoef = 0.8; // Lock lot in % from sum Martin orders
extern int DistanLock = 15; // Distance to pending order Lock
extern string _s5_3_ = "--> Swing Settings<---";
extern bool OpenSwing = False; // Use Swing_Lock (only if sum MartinOrders>=MaxLotLock & OpenLock=true)
extern double SwingKoef = 0.8; // Swing_Lock lot in % from sum Martin orders
extern int DistanSwing = 15; // Distance to pending order Swing_Lock
extern string _s6_ = "--> Martingaile LAST TP <---";
extern bool LastTP = true; // Use Last TP?
extern bool KysKysLast = True; // Use Overlap first order of the series by Last TP?
extern double KoefLast = 0.2; // Coefficient of Overlap LastTP (how many profit we use for overlap)
extern int LastTPTake = 25; // Take Last TP (in Pips)
extern int ColOrLastOn = 5; // From what # of MartinLevel(knee) start LastTP
extern bool LastTradePir = false; // if True - always LastTP, if False - LastTP stop if there is order of Pyramid
extern string _s7_ = "--> Close Settings <---";
extern string _s7_1_ = "--> Close Serieses separately by TP in DD(pips) <---";
extern bool CloseTP = True; // Use Close the series separate TP in DD
extern int ColCloseTP = 6; // Over how many Martin orders that he should closed TP(# Martin order)
extern double TakeProfit = 10; // TP of Series (pips)
extern string _s7_2_ = "--> Close Global TP (all serieses,pips) <---";
extern bool CloseTPALL_OT = True; // Use Close TP Martin separately
extern bool CloseTPALL = True; // Global TP
extern double TakeProfitALL = 50; // TP (pips)
extern string _s7_3_ = "--> Global Close in Money <---";
extern bool CloseProfit = False; // Use Close Money
extern double MinProfit = 100; // Min Profit for Global close(money)
extern string _s7_4_ = "--> Swing Close Settings <---";
extern bool CloseProfitSwing = False; // Use Close Swing Money
extern double MinProfitSwing = 0; // Min Profit for Swing close(money)
extern string _s7_5_ = "--> Eqity Close <---";
extern bool CloseEquity = false; // Use Eqity Close
extern double MaxEquityProfit = 5; // what %% +depo need for close Eqity
extern string _s8_ = "--> Other Settings <---";
extern bool CloseBY = True; // Use CloseBy function for close in Eqity? (close by lock, do not reboot terminal!)
extern bool UseNewBar = False; // Use filter NewBar? If TRUE - 1 odrer per 1 candle, not more
extern int Pause = 120; // at InstaForex we cannot close order 120 sec after his open
extern bool Debug = False; // draw debuggin ? (better FALSE in tests & optimisations)
//-------------------для Show_Info()--------------------------------------------
extern bool DisplayInfo = true; // draw info indicators (better FALSE in tests & optimisations)
extern bool VisualButton = True; // draw key-scripts (better FALSE in tests & optimisations)
extern int ExMagicBuy = 1000; // Magic Martin Buy
extern int ExMagicBuyP = 2000; // Magic trend_Pyramid Buy
extern int ExMagicBuyPT = 3000; // Magic countertrend_Pyramid Buy
extern int ExMagicSell = 4000; // Magic Martin Sell
extern int ExMagicSellP = 5000; // Magic trend_Pyramid Buy
extern int ExMagicSellPT = 6000; // Magic countertrend_Pyramid Buy
extern int Slippage = 5; // requotes
bool DeleteOrders=True; // Удалять отложенные ордера
//----------------------------------------------------------
extern string t101 = "Indicator SAR settings";
extern double Sar_Step = 0.02; // Add to stop level
extern double Sar_maximum = 0.2; // Max stop level
extern int SAR_TF = 60; // 1-1 min 5-5 min 15-15 min 30-30 min 60-1 h 0-current TF
extern string t102 = "Indicator MA settings";
extern int MA_period = 3; // period of MA fast
extern int MA_Method = 1; // (MODE_SMA=0; MODE_EMA=1; MODE_SMMA=2; MODE_LWMA=3)
extern int MA_Price = 0; // (PRICE_CLOSE=0; PRICE_OPEN=1; PRICE_HIGH=2; PRICE_LOW=3; PRICE_MEDIAN=4, (high+low)/2;
//PRICE_TYPICAL=5, (high+low+close)/3; PRICE_WEIGHTED=6, (high+low+close+close)/4)
extern int MA_TF = 60; // 1-1 min 5-5 min 15-15 min 30-30 min 60-1 h 0-current TF
//-----------------------------------------------------------
extern string t11 = "Profit indicator settings";
extern color ColorInd = Silver; // text Color
extern int xDist = 50; // x coordinates
extern int yDist = 100; // y coordinates
extern int FontSize = 0; // text size