GbpChf - expert for MetaTrader 5




GbpChf - expert for MetaTrader 5


The code of the adviser, excluding the position opening algorithm, is copied from the advisor Dual MACD

Testing Gbp/Chf


 int size_need_position=ArraySize(SNeedPosition);
            if(main_0[1]>0 && main_1[1]>0)
                if(main_0[1]<main_1[1] && main_0[0]>main_1[0])

     {
      if(!InpReverse)
        {
         ArrayResize(SNeedPosition,size_need_position+1);
         SNeedPosition[size_need_position].pos_type=POSITION_TYPE_BUY;
         return(true);
        }
      else
        {
         ArrayResize(SNeedPosition,size_need_position+1);
         SNeedPosition[size_need_position].pos_type=POSITION_TYPE_SELL;
         return(true);
        }
     }
            if(main_0[1]<0 && main_1[1]<0)
                if(main_0[1]>main_1[1] && main_0[0]<main_1[0])
Trading settingsIn the Expert Advisor, you can both enable and disable the Take Profit, Stop Loss and Trailing Stop levels. To disable the selected parameter, simply select the parameter set to "0.0".
Trailing can be triggered either in N-seconds or only at the moment of the birth of a new bar. Trailing interval in seconds is set in Trailing, in seconds. Rule: if the interval is set less than "10" - this means work ONLY at the time of birth of a new bar, if the interval is set exactly or more than "10" - this means work every "N" seconds.


Additional featuresOnly one positions - there is always only one position in the market.Reverse - the flip of trading signalsClose opposite - closing positions opposite to the trading signal, and first comes the guaranteed closing of the opposite position and only then opening a new position in the direction of the signalPlease note: the trading signal has the highest priority! You can limit its execution only with the help of the parameter Only one positions. If Only one positions is "true" and the number of positions opened by this advisor on this symbol is greater than "1" - then the trading signal is ignored.
The Close opposite parameter is "true": first CLOSE the opposite position, then work out the trading signal.

Management of position size (lot calculation)A lot can be either permanent (Money management set in Constant lot and set the lot size in The value for "Money management") or dynamic - in percent risk per trade (Money management set in Risk in percent for a deal and set risk percent in The value for "Money management").


Download GbpChf - expert for MetaTrader 5




Related News




Latest News
Fiat-Renault deal hopes lift European shares
21.08.2019 08:24
(Reuters) - European shares rebounded from the previous session's sharp falls on Wednesday, with brokers pointing to an Italian report on continuing merger talks between Fiat Chrysler Automobiles (MI:FCHA) and Renault SA (PA:RENA) as pushing car industry shares higher. The pan-European STOXX 600 index (STOXX) rose 0.5% at 0716 GMT, with
Read more
Forex - Dollar Hovering Near 3-Week Highs ahead of Fed Minutes
21.08.2019 08:21
Investing.com - The U.S. dollar was hovering just below three-week highs in subdued trade on Wednesday as investors looked ahead to the minutes of the Federal Reserve’s July meeting later in the day for fresh clues on the monetary policy outlook. The Fed cut rates for the first time since 2008 last month in what Chairman Jerome Powell called
Read more
China says natural for China, U.S. to have differences on trade
21.08.2019 08:18
BEIJING (Reuters) - China's Foreign Ministry said on Wednesday it was natural for the United States and China to have differences on trade, but the key was to resolve issues through dialogue. Ministry spokesman Geng Shuang made the comments at a daily news briefing in Beijing.
Read more
Goldman moves to take majority control of China joint venture
21.08.2019 08:15
By Jennifer Hughes and Alun John HONG KONG (Reuters) - Goldman Sachs (N:GS) has applied for majority control of its Chinese joint venture, the bank confirmed on Wednesday, the latest international bank to do so ahead of Chinese plans to eventually allow foreigners full control. The bank submitted an application with the China Securities Regulatory
Read more
Citigroup, BNP caught up in U.S. case against Huawei CFO: documents
21.08.2019 08:12
By Karen Freifeld NEW YORK (Reuters) - U.S.-based Citigroup (N:C) and French bank BNP Paribas (PA:BNPP) are caught up in the U.S. criminal case against the chief financial officer of China's Huawei Technologies, according to newly available documents. The banks were named in documents released on Tuesday after a hearing in British Columbia
Read more