Excel Formula

MQL4 Sonstiges

Auftrag beendet

Ausführungszeit 2 Tage
Bewertung des Kunden
Great job! High quality in a short time!

Spezifikation

Hi,

I tried to convert a MQ4 file to an Excel file manually.

So I search the codes in the in the Turtle Trading indicator and this are the results:

Go Long:

if(((CLOSE > rhigh && i > 0) || (HIGH > rhigh && StrictEntry == true)) && LongInfo[i] == OUT_OF_MARKET)

Go Short:

if(((CLOSE < rlow && i > 0) || (LOW < rlow && StrictEntry == true)) && ShortInfo[i] == OUT_OF_MARKET)

Stop Long:

if(((CLOSE < slow && i > 0) && (CLOSE > long_price || Greedy== false)) ||

(LOW < slow && StrictExit == true && (LOW > long_price || Greedy == false)) &&

LongInfo[i] == IN_THE_MARKET)

Stop Short:

if(((CLOSE > shigh && i > 0) && (CLOSE < short_price || Greedy == false)) ||

(HIGH > shigh && StrictExit == true && (HIGH < short_price || Greedy == false)) &&

ShortInfo[i] == IN_THE_MARKET)

The formula for excel (Go Long) should be: =ALS(EN(CLOSE>rlow;LOW>rlow);CLOSE;0)

 

... I want to calculate the Close Value, so if the formula is 'true' I want to see the Close value of it.

But it didn't work.

Who know the correct formula's for the entries and stops (for long and short)?

The system is attached as a zip (including Excel, ex4 and mq4 file).

 

Specification:

A. The Trading strategy is based on Turtle Trading system.

B. Rules of opening positions:

1). Signals to open long position (buy):

    - CLOSE > than rHigh (only the first bar)

2). Signals to open a short position (short):

    - CLOSE < than rLow (only the first bar)

3). Signals to exit a long position:

    -When the short position starts, the previous bar/line

4). Signals to exit a short position:

    -When the long position starts, the previous bar/line

5). It's the same formula that be used in the attached file on the jobpage.


rHigh = The highest value in a period (20)

rLow = The lowest value in a period (20)


rHigh = Lowerline

rLow = Upperline 

 

A more extensive explanation is enclosed. 

 

Best Regards,

Bastiaan

Bewerbungen

1
Entwickler 1
Bewertung
(34)
Projekte
80
34%
Schlichtung
13
31% / 54%
Frist nicht eingehalten
19
24%
Frei
2
Entwickler 2
Bewertung
(94)
Projekte
101
41%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
4
4%
Frei
3
Entwickler 3
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Ähnliche Aufträge
The strategy is for an advanced trader with a high risk tolerance. I do not need code yet; I need the documented logic. Requirements for the Plan: Indicator Stack: Define 2–3 specific indicators (e.g., VWAP, Volume-Weighted MACD, or Bollinger Band Squeeze) and the exact parameters for each. Entry Logic: Precise conditions for a "Buy" signal (e.g., "Price closes above Upper Band with a 20% volume spike"). Exit & Risk

Projektdetails

Budget
25 - 50 USD
Ausführungsfristen
von 1 bis 3 Tag(e)