智能交易
在MetaTrader市场下载MetaTrader 4的'Testing Honest Predictor' 自动交易程序(EA交易)
人气:833  销量:0  评价:0
起批 1-30000件 30001件以上
价格 ¥3988.00 ¥10.00
物流 :3988.00  
库存 888888件
品牌 顺水的鱼外汇EA
  • 商品详情
  • 评价详情(0)
  • 交易记录(0)
  • 概述
  • 评论 (5)
  • 评论 (6)
  • 新特性

Testing Honest Predictor

This simple Testing Honest Predictor (THP) Expert Advisor was created in order to easily and meaningfully test the Honest Predictor indicator (iHP) performances, within the MT4 Strategy Tester.

Given an asset and a timeframe, THP selects a part of the positions displayed by iHP and prints on the journal (screenshot #2) the percentage of winning positions as if they were executed by a user.

It accepts only positions for which iHP suggests a reliability level not "UNRELIABLE" and a probability higher than a given Minimum Accuracy.

From the tests done, the Honest Predictor indicator seems to avoid "naturally" unfavorable market conditions, although a multi-asset approach is needed to compensate for the low frequency of positions (note that the indicator payed version can be attached on as many charts as you want, at the same time).


THP Usage

Input Parameters:
  • Duration of Backtesting in days: the duration of the backtesting used by iHP to evaluate accuracy (=percentage of winning positions) and reliability level
  • Indicator Threshold: the limit above which iHP generates a position.
  • Expiry Time in bars: the expiration (in bars) for the positions generated by iHP.
  • Minimum Accuracy: minimum threshold of the backtesting iHP accuracy above which THP accepts the positions generated by iHP.
  • Verbosity Level: if =1 it also lists all the accepted position.

The first 3 parameters are just passed to the indicator (see here for a full description).

Set the testing period in the Strategy Tester, press Start (Open Price mode can be used) and THP will print on the journal (screenshot #2) the percentage of winning positions that you would have obtained by executing the indicator positions when its estimated accuracy is above the Minimum Accuracy and when the UNRELIABLE condition does not hold.

No trading orders are performed.


Interfacing iHP to an EA

For users who want to embed the iHP within an Expert Advisor, I report below a code example.

HistoryDays, Threshold and Expiration contain the 3 parameters values that have to be passed to the indicator.

Given a bar shift (> 0 and < HistoryDays*1440/Period()), the first 4 buffers can be read to check if iHP found a position at that bar or not:

string IndiName = "HistoryPredictor.ex4"; //name of the available iHP executable
double UpWon=iCustom(NULL,0,IndiName,HistoryDays,Threshold,Expiration,0,shift);
double DownWon=iCustom(NULL,0,IndiName,HistoryDays,Threshold,Expiration,1,shift);
double UpFail=iCustom(NULL,0,IndiName,HistoryDays,Threshold,Expiration,2,shift);
double DownFail=iCustom(NULL,0,IndiName,HistoryDays,Threshold,Expiration,3,shift);

They refer to: winning CALL positions (0), winning PUT positions (1), loser CALL positions (2) and loser PUT positions (3).

EMPTY_VALUE is returned if there is no position of that type at that shift.

Please note that the position outcome is known only if shift > Expiration, i.e. if it expired and the bar entered the backtesting period. Otherwise, while the outcome remains unknown, the position is recorded only in buffers 0 or 1.

ta itemprop="image" content="https://c.mql5.com/31/60/testing-honest-predictor-screen-6181.png" />
联系方式
公司:顺水的鱼外汇EA
状态:离线 发送信件 在线交谈
姓名:顺水的鱼(先生)
职位:投机客
电话:18391752892
手机:18391752892
地区:默认地区
地址:西安市高新区软件园
邮件:3313198376@qq.com
QQ:3313198376
微信:18391752892
阿里旺旺:顺水的鱼waterfish
Skype:3313198376@qq.com
加入购物车
立即购买