Take trigger code from an existing indicator and place inside trigger functionality of an existing EA.

仕事が完了した

実行時間2 時間
依頼者からのフィードバック
Hit a few hitches along the way however the developer was able to provide a good solution. Will use his services again thanks...
開発者からのフィードバック
A kind, easy and nice person.. 100% recommended

指定

Hi,

I need someone to add code from an indicator and place it inside my EA.

The indicator code contains draw & delete trend line functions and secondary filter functions to produce buy and sell signals.

The freelancer will need to adjust the EA in the same format, due to my understanding of coding.

Basically take this code format from the indicator:

int counted_bars=IndicatorCounted();
   int limit=Bars-counted_bars;
   if(bars<Bars)
     {
      DeleteLines();
      for(int i=1; i<MaxBars-1; i++)
        {
         double Sar=iSAR(NULL,0,0.02,0.2,i);
         double SarBack=iSAR(NULL,0,0.02,0.2,i+1);
         //---
         double Price=(High[i]+Low[i])/2;
         double PriceBack=(High[i+1]+Low[i+1])/2;

         bool flag=true;
         //---Paramters for drawing green buy down line
         if(High[i+1]>High[i])
            if(SarBack<PriceBack && Sar>Price)
              {
               line_name_green[line_green]="Line_"+(string)i;
               flag=DrawLine("Line_"+(string)i,Time[i+1],High[i+1],Time[i],High[i],clrGreen);
               line_green++;
              }
        }
      for(int u=1; u<line_green; u++)
        {
         double line_price;
         for(int i=1; i<MaxBars-1; i++)
            //---Parameters for buy signal
           {
            line_price=ObjectGetValueByShift(line_name_green[u],i);
            double PriceMedian=(High[i]+Low[i])/2;
            double PriceMedianBack=(High[i+1]+Low[i+1])/2;
            double Ema5=iMA(NULL,0,5,0,MODE_EMA,PRICE_CLOSE,i);
            double Ema10=iMA(NULL,0,10,0,MODE_EMA,PRICE_CLOSE,i);
            //---
            if(Ema5>Ema10)
               if(PriceMedianBack<line_price && PriceMedian>line_price)
                  UpArrow[i]=Open[i];
           }
        }
      //Loops for green lines and UpArrow end here.

      //---   Down Arrow
      for(int i=1; i<MaxBars-1; i++)
        {
         bool flag=true;
         double Sar=iSAR(NULL,0,0.02,0.2,i);
         double SarBack=iSAR(NULL,0,0.02,0.2,i+1);
         //---
         double Price=(High[i]+Low[i])/2;
         double PriceBack=(High[i+1]+Low[i+1])/2;

         //---Paramters for drawing red up line

         if(Low[i+1]<Low[i])
            if(SarBack>PriceBack && Sar<Price)
               //---
              {
               line_name_red[line_red]="Line_"+(string)i; //Save name of red line
               flag=DrawLine("Line_"+(string)i,Time[i+1],Low[i+1],Time[i],Low[i],clrRed);
               line_red++;              //Icrement number of red lines
              }
        }
      //-----
      for(int n=1; n<line_red; n++)
        {
         double line_priceA;
         for(int i=1; i<MaxBars-1; i++)
            //---Parameters for buy signal
           {
            line_priceA=ObjectGetValueByShift(line_name_red[n],i);
            //---
            double PriceMedian=(High[i]+Low[i])/2;
            double PriceMedianBack=(High[i+1]+Low[i+1])/2;
            double Ema5=iMA(NULL,0,5,0,MODE_EMA,PRICE_CLOSE,i);
            double Ema10=iMA(NULL,0,10,0,MODE_EMA,PRICE_CLOSE,i);
            //---
            if(Ema5<Ema10)
               if(PriceMedianBack>line_priceA && PriceMedian<line_priceA)
                  //---
                  DownArrow[i]=Open[i];
           }
        }
     }

   bars=Bars;

and place it in this section of the EA:

//+------------------------------------------------------------------+
//|       TRIGGER FUNCTION                                           |
//+------------------------------------------------------------------+
void CheckForSignal()
  {
   static datetime candletime=0;
   if(candletime!=Time[0])
     {
      //---Insert Trendline V1 buy code here
      
      double Ema200=iMA(NULL,0,200,0,MODE_SMMA,PRICE_MEDIAN,1);
      double Price=(High[1]+Low[1])/2;

      //Did it make an up arrow on candle 1?
      if(Price>Ema200)

        {
         if(CloseOnOppositeSignal)
            exitsells();
         if(TotalOpenOrders()<MaxAmountOfTrades)
            if((HedgingAllowed) || (!HedgingAllowed && OpenOrders(OP_SELL)==0))
               EnterTrade(OP_BUY);
            else
               Print("Hedging did not allow this trade.");
        }
      //---Insert Trendline V1 sell code here
      
      //Did it make a down arrow on candle 1?
      if(Price<Ema200)

        {
         if(CloseOnOppositeSignal)
            exitbuys();
         if(TotalOpenOrders()<MaxAmountOfTrades)
            if((HedgingAllowed) || (!HedgingAllowed && OpenOrders(OP_BUY)==0))
               EnterTrade(OP_SELL);
            else
               Print("Hedging did not allow this trade.");
        }
      candletime=Time[0];
     }
  }

I will be happy to pass the EA and indicator on confirmed work agreement. Also it would be great if we could talk the job through on skype as I am learning to improve my coding.

I of course will only sign the job off on my testing the functionality on both tester and live trades. I have said 2 days to do the job but it may take another day for me to test fully. 

Regards Mike


応答済み

1
開発者 1
評価
(177)
プロジェクト
279
65%
仲裁
3
100% / 0%
期限切れ
65
23%
2
開発者 2
評価
(174)
プロジェクト
199
12%
仲裁
38
37% / 34%
期限切れ
5
3%
仕事中
パブリッシュした人: 2 codes
3
開発者 3
評価
(14)
プロジェクト
23
17%
仲裁
3
0% / 100%
期限切れ
5
22%
4
開発者 4
評価
(26)
プロジェクト
41
24%
仲裁
3
33% / 67%
期限切れ
12
29%
5
開発者 5
評価
(361)
プロジェクト
643
26%
仲裁
92
72% / 14%
期限切れ
12
2%
仕事中
パブリッシュした人: 1 code
6
開発者 6
評価
(588)
プロジェクト
1063
50%
仲裁
39
28% / 41%
期限切れ
49
5%
仕事中
パブリッシュした人: 1 article, 8 codes
7
開発者 7
評価
(277)
プロジェクト
334
55%
仲裁
14
36% / 29%
期限切れ
1
0%
類似した注文
Se requiere de un programador para modificar asesor experto de estrategia de ruptura. El EA realiza operaciones por quiebre de rango pero por operaciones de Orden de Mercado ( Ejecuta una operación de compra o venta inmediatamente al precio actual del mercado) y requiero cambiarlo a que realice operaciones de Orden P extremos. Adicional, requiere que se realice un filtro para entrar de nuevo al mercado en caso de
Hi there,my name si Andrea,i need help with building an indicator to save time while analyse the chart to support me according to my strategy.I would like to build some friendship and a good relationship to grow together.Im willing to share all my knowledge about trading in exchange for your work.There you have many opportunities to start a business such as trading itself or selling the indicator or whatever to a
Spikes EA 30 - 200 USD
Got you 🔥 You want a clear link name + eye-catching brand name (I’m guessing for trading or a forex page since you’ve been working on bots and strategies). Here are powerful name + link ideas 👇 🔥 Strong & Professional Names PipEmpire 🔗 pipempire.com 🔗 pipempirefx.com GoldWave Traders 🔗 goldwavetraders.com SmartEdge FX 🔗 smartedgefx.com QuantumPips 🔗 quantumpips.com CapeCapital FX (since you're in Cape Town
Spikes EA 30 - 200 USD
Got you 🔥 You want a clear link name + eye-catching brand name (I’m guessing for trading or a forex page since you’ve been working on bots and strategies). Here are powerful name + link ideas 👇 🔥 Strong & Professional Names PipEmpire 🔗 pipempire.com 🔗 pipempirefx.com GoldWave Traders 🔗 goldwavetraders.com SmartEdge FX 🔗 smartedgefx.com QuantumPips 🔗 quantumpips.com CapeCapital FX (since you're in Cape Town
Tradovate API to mt5 50 - 60 USD
Obtain indicator signals from tradovate use them to generate and control EA in mt5 Indicators include delta, volume , bid ask above x, big orders absorption. Stacked imbalance and failed auction. When their is confluence it make for entry and exit
hello people, i have this bot, it works, however i would like my own version similar as the developer isn't reliable and some things don't work Bitcoin Scalping Robot MT4 | Buy Trading Robot (Expert Advisor) for MetaTrader 4 i would like similar strategy with the addition of autolot sizes, obvs i have the set file
Hello, professional programmers! I'd like to request a special service. I need a trading bot like the one in the video, one that works on real accounts. My only request is that I don't pay any money until the bot is built and tested. Thank you very much
MT5 Manual Trade Panel 250 - 600 USD
MT5 Manual Trade Panel with Risk % Lot Calculation & User License System 11 hours ago MQL5 Experts Forex Trading robot/indicator debugging C++ Strategy modules Panels and dialog boxes Hello, I need a professional MT5 manual trading assistant panel (NOT auto trading EA). MAIN IDEA: A clean manual trading panel similar to TradingView long/short position tool inside MT5, designed mainly for Gold scalping (M5 /
Ai robot 30 - 50 USD
1️⃣ System Architecture An AI robot typically consists of the following subsystems: 🔹 1. Perception Layer Collects environmental data using: RGB / Depth cameras LiDAR Ultrasonic sensors IMUs (Inertial Measurement Units) Microphones Data is processed using: Computer Vision (e.g., object detection, SLAM) Signal processing Sensor fusion algorithms 🔹 2. Cognition / Intelligence Layer Implements AI models such as
As we were discuss privetly I would like also modification where the ea would close all charts under certain conditions and also to close positions. otherwise seems okay based on description but firstly would need to see demo version but cant download it

プロジェクト情報

予算
30+ USD
締め切り
最低 1 最高 2 日