Gold Scalping Indicator for gold

MQL5 Uzman Danışmanlar

İş Gereklilikleri

//+------------------------------------------------------------------+
//|                             Gold Scalping Indicator for gold.mq5 |
//|                             Copyright 2000-2024, MetaQuotes Ltd. |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2000-2024, MetaQuotes Ltd."
#property link      "https://www.mql5.com"
#property version   "1.00"
//+------------------------------------------------------------------+
//| Include                                                          |
//+------------------------------------------------------------------+
#include <Gold Scalping \Gold Scalping .mqh>
#include <Gold Scalping \Signal\SignalMA.mqh>
#include <Gold Scalping \Trailing\TrailingParabolicSAR.mqh>
#include <Gold Scalping \Money\MoneySizeOptimized.mqh>
//+------------------------------------------------------------------+
//| Inputs                                                           |
//+------------------------------------------------------------------+
//--- inputs for Gold Scalping 
input string             Inp_Gold Scalping _Title                      ="Gold Scalping MAPSARSizeOptimized";
int                      Gold Scalping _MagicNumber                    =27893;
bool                     Gold Scalping _EveryTick                      =false;
//--- inputs for signal
input int                Inp_Signal_MA_Period                  =12;
input int                Inp_Signal_MA_Shift                   =6;
input ENUM_MA_METHOD     Inp_Signal_MA_Method                  =MODE_SMA;
input ENUM_APPLIED_PRICE Inp_Signal_MA_Applied                 =PRICE_CLOSE;
//--- inputs for trailing
input double             Inp_Trailing_ParabolicSAR_Step        =0.02;
input double             Inp_Trailing_ParabolicSAR_Maximum     =0.2;
//--- inputs for money
input double             Inp_Money_SizeOptimized_DecreaseFactor=3.0;
input double             Inp_Money_SizeOptimized_Percent       =10.0;
//+------------------------------------------------------------------+
//| Global Gold Scalping  object                                             |
//+------------------------------------------------------------------+
CGold Scalping  ExtGold Scalping ;
//+------------------------------------------------------------------+
//| Initialization function of the Gold Scalping                             |
//+------------------------------------------------------------------+
int OnInit(void)
  {
//--- Initializing Gold Scalping 
   if(!ExtGold Scalping .Init(Symbol(),Period(),Gold Scalping _EveryTick,Gold Scalping _MagicNumber))
     {
      //--- failed
      printf(__FUNCTION__+": error initializing Gold Scalping ");
      Gold Scalping Indicator for gold();
      return(-1);
     }
//--- Creation of signal object
   CSignalMA *signal=new CSignalMA;
   if(signal==NULL)
     {
      //--- failed
      printf(__FUNCTION__+": error creating signal");
      Gold Scalping Indicator for gold();
      return(-2);
     }
//--- Add signal to Gold Scalping  (will be deleted automatically))
   if(!ExtGold Scalping .InitSignal(signal))
     {
      //--- failed
      printf(__FUNCTION__+": error initializing signal");
      Gold Scalping Indicator for gold();
      return(-3);
     }
//--- Set signal parameters
   signal.PeriodMA(Inp_Signal_MA_Period);
   signal.Shift(Inp_Signal_MA_Shift);
   signal.Method(Inp_Signal_MA_Method);
   signal.Applied(Inp_Signal_MA_Applied);
//--- Check signal parameters
   if(!signal.ValidationSettings())
     {
      //--- failed
      printf(__FUNCTION__+": error signal parameters");
      Gold Scalping Indicator for gold();
      return(-4);
     }
//--- Creation of trailing object
   CTrailingPSAR *trailing=new CTrailingPSAR;
   if(trailing==NULL)
     {
      //--- failed
      printf(__FUNCTION__+": error creating trailing");
      Gold Scalping Indicator for gold();
      return(-5);
     }
//--- Add trailing to Gold Scalping  (will be deleted automatically))
   if(!ExtGold Scalping .InitTrailing(trailing))
     {
      //--- failed
      printf(__FUNCTION__+": error initializing trailing");
      Gold Scalping Indicator for gold();
      return(-6);
     }
//--- Set trailing parameters
   trailing. Step(Inp_Trailing_ParabolicSAR_Step);
   trailing.Maximum(Inp_Trailing_ParabolicSAR_Maximum);
//--- Check trailing parameters
   if(!trailing.ValidationSettings())
     {
      //--- failed
      printf(__FUNCTION__+": error trailing parameters");
      Gold Scalping Indicator for gold();
      return(-7);
     }
//--- Creation of money object
   CMoneySizeOptimized *money=new CMoneySizeOptimized;
   if(money==NULL)
     {
      //--- failed
      printf(__FUNCTION__+": error creating money");
      Gold Scalping Indicator for gold();
      return(-8);
     }
//--- Add money to Gold Scalping  (will be deleted automatically))
   if(!ExtGold Scalping .InitMoney(money))
     {
      //--- failed
      printf(__FUNCTION__+": error initializing money");
      Gold Scalping Indicator for gold();
      return(-9);
     }
//--- Set money parameters
   money.DecreaseFactor(Inp_Money_SizeOptimized_DecreaseFactor);
   money.Percent(Inp_Money_SizeOptimized_Percent);
//--- Check money parameters
   if(!money.ValidationSettings())
     {
      //--- failed
      printf(__FUNCTION__+": error money parameters");
      Gold Scalping Indicator for gold();
      return(-10);
     }
//--- Tuning of all necessary indicators
   if(!ExtGold Scalping .InitIndicators())
     {
      //--- failed
      printf(__FUNCTION__+": error initializing indicators");
      Gold Scalping Indicator for gold();
      return(-11);
     }
//--- succeed
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Deinitialization function of the Gold Scalping                           |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
   Gold Scalping Indicator for gold();
  }
//+------------------------------------------------------------------+
//| Function-event handler "tick"                                    |
//+------------------------------------------------------------------+
void OnTick(void)
  {
   ExtGold Scalping .OnTick();
  }
//+------------------------------------------------------------------+
//| Function-event handler "trade"                                   |
//+------------------------------------------------------------------+
void OnTrade(void)
  {
   ExtGold Scalping .OnTrade();
  }
//+------------------------------------------------------------------+
//| Function-event handler "timer"                                   |
//+------------------------------------------------------------------+
void OnTimer(void)
  {
   ExtGold Scalping .OnTimer();
  }
//+------------------------------------------------------------------+

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(13)
Projeler
15
7%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
1
7%
Yüklendi
2
Geliştirici 2
Derecelendirme
(7)
Projeler
8
0%
Arabuluculuk
1
0% / 0%
Süresi dolmuş
0
Yüklendi
Benzer siparişler
QQE Signals EA Beta Version Dear Sir or Madam, I would like to have this strategy as a complete Expert Advisor (.ex5 file) with accompanying files in MQL5 and be able to trade fully automatically on MT5. This EA should run mainly on Currencypairs, but also on XAU, BTC. Indicators: QQE Signals ATR Stop Loss Finder The indicators must be translated from Pine Script into MQL5 (source code attached). Strategy: If a
Bladerunner strategy and reversals This is a trend following strategy.Aimed at looking for crossovers in market.Using the Exponential Moving Average.When the market is in an uptrend,wait for it to cross below the EMA and retest back touching the EMA to make and entry
FXSTATE_TESTER 100+ USD
Specify your Requirements Specification here point by point. Try to describe your requirements briefly and clearly, so that your potential developer is able to correctly assess its complexity and cost, as well as the required execution time. A bad or too generic description will result in your order being ignored, or you will spend a lot of time negotiating the details with each applicant. Remember: It is better to
FXSTATE_TESTER 100+ USD
Specify your Requirements Specification here point by point. Try to describe your requirements briefly and clearly, so that your potential developer is able to correctly assess its complexity and cost, as well as the required execution time. A bad or too generic description will result in your order being ignored, or you will spend a lot of time negotiating the details with each applicant. Remember: It is better to
I will like to have EA that trade based on order flow/order block putting pending orders waiting for price to fill in the imbalancement left behind by makert makers and stop loss at 25 pips take profit at 25pips
Introduction This EA has 2 strategies, namely STRATEGY 1 AND STRATEGY 2 , and allows the user to choose ONLY 1 strategy to trade. These strategies are different because they have different calculation methods to determine the price levels for EA to open the pending BUY and SELL LIMIT orders at the OPEN of a daily candle. The EA trading and operation logics ARE THE SAME for these 2 strategies. This EA is a
Hi, I Need a simple Expert Adviser to trade on price only, no indicators. When activated, the EA simultaneously places 2 pending orders. One is placed as a Buy above the price, and the other is placed as a Sell below (eg; 20 pips, variable). Each order has "parental control" over the other (meaning, when one order is triggered, it cancels out the other). Both pending orders have a trailing stop (eg; 30 pips
CRYPGENESIS 30+ USD
Can you create a robot that uses two moving exponential moving averages (EMAs): Requirements Specification for MetaTrader 5 Robot This document outlines the requirements for a MetaTrader 5 trading robot that utilizes two moving exponential moving averages (EMAs) to generate buy and sell signals. 2. Objectives Develop a trading robot that uses two EMAs to identify potential entry and exit points. Ensure the robot can
Please let me know thoughts, pricing and how long it will take please. Project Overview This system will have two main components: * Master EA: Originates trades. * Slave EA: Receives and executes trades on client accounts. The Slave EAs will connect to the Master EA to mirror trades, enabling a high-capacity, scalable copy trading system on MT5 that can handle up to 20,000 accounts if necessary. The Slave and Master
Fx Melvin 90 - 100 USD
Hie... l want a trading robot that can trade bot currencies and indices.. it must be able to open and close positions on it's own aswell as capitalising on both directions either buy or sell on each candle stick scalping..it must work 24/7

Proje bilgisi

Bütçe
30+ USD
Son teslim tarihi
from 1 to 30 gün

Müşteri

Verilmiş siparişler1
Arabuluculuk sayısı0