Trend line code fixed and fucnting right

Spezifikation


void OnCalculate(const int rates_total,
                 const int prev_calculated,
                 const datetime &time[],
                 const double &open[],
                 const double &high[],
                 const double &low[],
                 const double &close[],
                 const long &tick_volume[],
                 const long &volume[],
                 const int &spread[]) (

  int begin = trendlinePeriod + 1;
  int end = rates_total - 1;
  
  for (int i = begin; i <= end; i++) {
    if (Close[i - 1] <= Close[i - trendlinePeriod]) {
      if (IsPriceOnTrendline(i - 1, 0.0) && IsPriceOnTrendline(i, -1.0) && Close[i] < prevClose - minPriceDiff) {
        trendline[i] = (Close[i - trendlinePeriod] - Close[i]) / trendlinePeriod;
        trendline_start_bar = i - trendlinePeriod;
        ColorSetIndex(trendline_start_bar + 4, downtrendColor);
      } else {
        trendline[i] = 0.0;
      }
    } else if (Close[i - 1] >= Close[i - trendlinePeriod]) {
      if (IsPriceOnTrendline(i - 1, 0.0) && IsPriceOnTrendline(i, 1.0) && Close[i] > prevClose + minPriceDiff) {
        trendline[i] = (Close[i] - Close[i - trendlinePeriod]) / trendlinePeriod;
        trendline_start_bar = i - trendlinePeriod;
        ColorSetIndex(trendline_start_bar + 4, uptrendColor);
      } else {
        trendline[i] = 0.0;
      }
    } else {
      trendline[i] = 0.0;
    }

    if (trendline[i] != 0.0) 
      int count = 1;
      for (int j = i + 1; j <= end && count < minPointsForExtendedTrendline; j++) {
        if (IsPriceOnTrendline(j, trendline[i])) {
          count++;
        }
      }
      if (count >= minPointsForExtendedTrendline)
        // Extend trendline logic goes here
      

      

Bewerbungen

1
Entwickler 1
Bewertung
(143)
Projekte
168
23%
Schlichtung
7
29% / 43%
Frist nicht eingehalten
4
2%
Arbeitet
2
Entwickler 2
Bewertung
(73)
Projekte
122
52%
Schlichtung
4
25% / 75%
Frist nicht eingehalten
19
16%
Arbeitet
3
Entwickler 3
Bewertung
(38)
Projekte
40
25%
Schlichtung
23
13% / 70%
Frist nicht eingehalten
8
20%
Beschäftigt
4
Entwickler 4
Bewertung
(13)
Projekte
16
19%
Schlichtung
0
Frist nicht eingehalten
2
13%
Frei
5
Entwickler 5
Bewertung
(1)
Projekte
5
0%
Schlichtung
1
100% / 0%
Frist nicht eingehalten
2
40%
Frei
6
Entwickler 6
Bewertung
(255)
Projekte
413
38%
Schlichtung
86
44% / 19%
Frist nicht eingehalten
70
17%
Überlastet
7
Entwickler 7
Bewertung
(66)
Projekte
143
34%
Schlichtung
10
10% / 60%
Frist nicht eingehalten
26
18%
Frei
Ähnliche Aufträge
I'm looking to automate a strategy using MT4 Renko charts with three indicators: 1. Simple moving average (MA) 2. RSB bands (custom indicator) 3. PV2 (custom indicator) To open a buy, we need the following at the close of an up brick: 1. MA has to have crossed over or come within "x" pips (variable input) of the bottom RSB band before turning up. 2. PV white line is above the red line. Closing the trade is by any of
Hi, I am basically looking for 4 Recurring order Robots. I am looking for the the following 4 EA's or Robots, that Take Profit TP and open again ( No TL). #1 BUY LIMIT ORDER #2 BUY STOP ORDER PIPS : 15 (variable) PIPS : 15 (variable) TP : 10 (variable) TP : 10 (variable) SL: 0 (v ariable) SL: 0 (variable) #3
I am looking for an EA that give above a 50% winrate using a 1:1.5 RR preferably trading in london to new york session, nothing complicated just something profitable. I would love to see a sample of the project before I purchase well thank you
Hello I need a MT4 EA which open trade according to the provided indicator 1 Master/Main indicator 1 Filter Find attached for details EA settings will send via chat or email because unable to send PDF
I want to make something automatic which EMA will automatically trade in my account. For this I want to make a simple robot I want to get this made automatically on a simple EMA
**Project Title:** Development of a Complex High-Performance EA for Step Index **Project Overview:** I need an advanced Expert Advisor (EA) for trading the Step Index on MetaTrader 5. The EA should use multiple indicators and advanced risk management techniques to enhance profitability and manage risks effectively. **Trading Strategy Details:** Indicators: - 50-period EMA - 200-period EMA - RSI with 14 periods - MACD
Dear All, I need to design and implement an EA with the involvement of a possible AI. I would like the entries to be realized with all MACD, RSI, Stoch parameters but also Ai. I mainly want the system to immediately close the transaction itself at the time of trend reversal even before reaching the TP position. It should work for intervals M15, H1, H4 and maybe long-term on D1 Platform for MT5 and exclusive only
Hello, I want a Telegram trade copier converted to metatrader 5. I have 2 samples with. This are samples of what I needed, inbox to let discuss if you can get this done with ease. Thanks
Below follows specifications and the pictures of how the indicator should be. I believe that during the development it is necessary some adjustments that I may have forgotten while writing the descriptions, please take this into account. If necessary I have the pdf file that may be easier to understand. Doubts I am at your disposal
Saya memerlukan Expert Advisor berdasarkan sinyal AOX. Itu harus memiliki pemeriksaan dan penanganan kesalahan operasi perdagangan. Kriteria utama pembukaan dan posisi penutupan: ■ arah rata-rata bergerak ■ harga lebih tinggi dari bar sebelumnya. Lot perdagangan adalah parameter masukan

Projektdetails

Budget
30+ USD
Für die Entwickler
27 USD
Ausführungsfristen
bis 1 Tag(e)