読み取り専用

フォーラムは現在、読み取り専用のアーカイブとなっています。.

バグ報告やプラットフォームに関する質問はこちら → [email protected]

私たちのコミュニティはDiscordとYouTubeで活動しています。ぜひ参加してください!

ご参加ください Discord YouTube

-$30kの時間は0と1ですか? [画像付き]

2件の返信

4xtasy

定期購入者、bbp_participant、コミュニティ、2件の返信。.

プロフィールを表示

9年前 #116203

Under trade analysis, it says I lost $30,000 on hours 0 and 1. This is when the EA closes a trade, I presume?

How could I use this info to make the EA better? This is for years 2012-2016.

0

Tomas Matejka

管理者、sq-ultimate、2件の返信.

プロフィールを表示

9年前 #141080

こんにちは,

 

it takes trade opening time into consideration. If you want to filter these times out you need to add a time condition into your EA

// Variables
extern string TradeStartTime = "2:00";
extern string TradeStopTime = "23:59";

if(TimeCurrent()>StrToTime(TradeStartTime) && TimeCurrent()<StrToTime(TradeStopTime)) {
...here goes the original trading rules (code) ...
}

0

MFXS

登録者、bbp_participant、コミュニティ、9件の返信。.

プロフィールを表示

9年前 #141427

Hey Tomas, what language is that? It looks a little simpler than MQL4, or was this just a generic logical example? I’ve avoided working with time in MQL4 so to get around this same issue on my 4h strategy I used something along the lines of:

bool NotFirstBar = iVol(NULL,1440,0) > iVol(NULL,240,0);

if(NotFirstBar)bool Buy;
//(Current daily volume greater than current 4 hour volume - this is only ever false for the first bar of the day)

Under trade analysis, it says I lost $30,000 on hours 0 and 1. This is when the EA closes a trade, I presume?

How could I use this info to make the EA better? This is for years 2012-2016.

 

FYI this is actually just a difficult period of the day to trade. Very low liquidity, only Sydney and NZ online. Larger time frame signals occur here, but pair often ranges against the signal through Asia. The yuan fix a few hours later tends to clear things up.

0

2件の返信を表示中 - 1 - 2件目 (全2件中)