Trend function

MQL4 ライブラリ

仕事が完了した

実行時間2 日
開発者からのフィードバック
very very nice client :)

指定

int Trend (int &candles, int &strenght)

 

The idea is to check if the upper timeframe trend agreed with the indicator on the current timeframe.

I need a function that returns 1 if the trend is positive, otherwise 0, moreover I need that the function can also write in the first parameter (candles) how many candles ago the trend started; in the second parameter, it has to write the strenght of the trend, to understand if is a strong trend and when the trend has started.

How to calculate the strength:Consider the % variation of currency value from the start of the trend.

Suppose that I received a signal in D1 that suggest me to go sell. Through this function I want to check if the trend of the upper timeframes, in this case W1 and MN 1, confirm me that going sell is ok, and also understand when the trend started and how much is its strength.

Thus the result should be the same as the image attached.



ファイル:

JPG
trend.JPG
162.3 Kb

応答済み

1
開発者 1
評価
(414)
プロジェクト
670
33%
仲裁
60
17% / 32%
期限切れ
113
17%
仕事中
2
開発者 2
評価
(879)
プロジェクト
1393
67%
仲裁
117
32% / 42%
期限切れ
215
15%
3
開発者 3
評価
(28)
プロジェクト
47
23%
仲裁
13
31% / 15%
期限切れ
12
26%
4
開発者 4
評価
(564)
プロジェクト
933
47%
仲裁
302
59% / 25%
期限切れ
125
13%
取り込み中
5
開発者 5
評価
(91)
プロジェクト
144
38%
仲裁
67
15% / 48%
期限切れ
55
38%

プロジェクト情報

予算
20 - 30 USD
VAT(付加価値税) (22%): 4.4 - 6.6 USD
合計: 24.4 - 36.6 USD
開発者用
18 - 27 USD
締め切り
最低 2 最高 4 日