15. 3. 2023

5 5

特定の時間からの決済損益(金額)

注記 – SQX ビルド 140 以降向けのアップデート版があります。.

 

Closed P/L from specific hour

 

Implemented in MT4/MT5.

 

More details will added soon.

 

あなたは私をクロネックスとして知っている。. 私はアイヴァン・ハデックです。ここで使用されている無料のブロックを作成し、その背景にある研究について以下の場所で執筆しています: algotrading.space. 何か作りますか? 一緒に働きましょう.
5 コメント
最古の
最新 最も投票された
エマニュエル
16. 3. 2023 9:05 am

Good Idea !! Thank you Ivan

エマニュエル
21. 9. 2023 8:22 am

Very interesting , however the ORDER_TIME_DONE constant will give an open time of the order I think.
I don’t think we have a closing time of an order in MQL5 , have we ?

エマニュエル
返信する  エマニュエル
21. 9. 2023 9:03 am

we need to make sure , it is a closing deal , an Out deal .

with HistoryDealGetInteger(deal_ticket, DEAL_ENTRY) == DEAL_ENTRY_OUT) ??

エマニュエル
返信する  エマニュエル
21. 9. 2023 9:20 am

We have the Profit, and we need to include, commission cost and swap cost :
sumPL += HistoryDealGetDouble(ticket, DEAL_PROFIT) + HistoryDealGetDouble(ticket, DEAL_COMMISSION) + HistoryDealGetDouble(ticket, DEAL_SWAP);
Do we ?

エマニュエル
21. 9. 2023 9:22 am

as the profit = 0 on opening deal, the ORDER_TIME_DONE will work on closing deal