거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Telegram에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
조회수:
13459
평가:
(4)
게시됨:
2008.05.16 06:37
업데이트됨:
2014.04.21 14:51
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Attached is a trend estimator (similar to a BB) developed to address the problem of the delay inherent in the usual averaging techniques. Regular averages give you information relating to events  at 1/2 the averaging length in the past. It uses an algorithm similar to what one probably finds in the MT STD channel (fitting a straignt line over a fixed number of periods), and outputs the last point as well as 2 deviation channels, the width of which is set by the user. 
Note:

1) I am new to MQL4 programming (though not to programming in general), so there may be code errors or ways to optimize the code. If so, please let me know (& I'll fix them) or post it back.
2) I use geometric averaging rather than linear averaging, which you can change in the function "get_avg" if you like. I like the former as it is less sensitive to excusions.
3)I have found (for my own use) it works best on the hourlies over 5 days (120 pts) or the 4 hourlies over 20 days (120 points).
4)The deviation channels are not STD channels, as the deviation above and below the trend are calculated separately and maybe not all that correctly (my forte is math, not stats, alas...).


 

Graphical Calculator Graphical Calculator

It allows you to calculate profits, StopOuts, and margin, just moving in the chart three lines that correspond with the opening level, StopLoss and TakeProfit of the position.

Clock v 1.3 Clock v 1.3

The indicator shows in the chart the current time in different time zones.

GTerminal_V5   Graphic orders and indicators GTerminal_V5 Graphic orders and indicators

Execution of orders by slanting lines. For the purposes of real trading and learning, graphical orders are implemented in Tester. The EA was evaluated on MQL4 Forum. Version_V5 considers all the suggestions and wishes.

Function ObjectGetValue_ByCurrent    .....Delta_ByCurrent   .....Delta_ByTimeShift .....Delta_PerBar Function ObjectGetValue_ByCurrent .....Delta_ByCurrent .....Delta_ByTimeShift .....Delta_PerBar

A test script with the functions that calculate the true value of a graphical object's Y coordinate. It is useful to watch the bar forming.