Indicator based on Chart Objects

İş tamamlandı

Tamamlanma süresi: 4 gün
Müşteri tarafından geri bildirim
Fast, Knowledgeable, Efficient!!!

İş Gereklilikleri

Indicator for Chart Object Statistics 


I have a set of 3 x indicators that paint chart objects, which is great, but backtesting across 60 instruments is taking a long time and I would like a way of producing a quick stat report by dropping an indicator into a chart with the 3 x indicators already running and it will read all the chart objects and provide some statistics in a text box on the chart. 


The objects represent entries, with entry price, TakeProfit price and StopLoss price.  
The format of the chart object name text gives you the name of the indicator that produced the object. 
The format of the chart object names are listed below, but I will give exact examples once the job is started. 
I will provide the indicators once the job is started. 
The indicator must be able to have a setting that limits the number of bars we go back looking for chart objects (max bars for example) 
If (max bars) is not set, then we use the max number of bars on the current chart. 


Skills you will need (off the top of my head, you may have a better way of doing this) 

1. Loop through all the objects on the chart and where the object name matches one of the indicators (substring) you will need to store details about that object in a list or dictionary i.e. indicator name, bar number, price, daily ATR and daily ADR at that bar, StopLoss size, TakeProfit size.   
2. You will then need to work out the highest point (BUY) or lowest point (SELL) from that bar before the StopLoss is hit and if the StopLoss is not hit, then just the highest / lowest point and store all of that also in the dictionary for the object instance, do this for all the objects that match the naming convention etc ... 
3. you need to store the bar number where if the price goes beyond the StopLoss. 
4. You need to store the highest and lowest price from the entry bar to the StopLoss bar or to BAR[0] (latest bar), you can then use these to make calculations for the report. 


The statistics I require are : 

1. number of BUY wins, SELL wins  (based on entry, take profit and stop loss of the chart objects) 
2. number of BUY losses, SELL losses (based on entry, take profit and stop loss of the chart objects) 
3. Max Favourable Excursion (MFE) in ticks from the entry price (in the relevant direction (BUY/SELL) that price makes after the entry before returning past the StopLoss. 
4. If the price has not receded back to the stop loss, then just the maximum distance in ticks price has travelled so far for that entry 
5. Max Favourable Excursion (MFE) represented as a multiple of the StopLoss size for the specific trade i.e. MFE(ticks)/StopLoss(ticks) 
6. At the time of entry you will need to record/store the Daily ATR(14) and Daily ADR(14) so you can also base the Max excursion as a percentage % of dATR and dADR as well as in ticks and StopLoss size i.e. dATR = 100(ticks) MFE = 200(ticks) then ... MFE dATR% = 200% etc 
7. I also need the MFE Average price in ticks (add up all the MFEs and divide by number of MFEs), same for daily ATR% and daily ADR% that the price has travelled for each type, this would be based on the current daily ATR(14) and daily ADR(14) 


The statistics for all 3 x indicators should be presented in a text box on the chart (position must be adjustable from each corner) 
The text size, font and colour should be a setting 
The report name string should be a setting 


The statistics will be something like this, repeated for all 3 x indicators (only 1 x Indicator in example below) 

———————————— 
INDI EURUSD H1 REPORT 
———————————— 
INDI1 BUY WINS 10 
INDI1 BUY LOSS 10 
INDI1 BUY MFE MAX ticks 100 
INDI1 BUY MFE MAX SL size 10 
INDI1 BUY MFE MAX dATR% 300% 
INDI1 BUY MFE MAX dADR% 323% 
INDI1 BUY MFE AVG ticks 24 
INDI1 BUY MFE AVG SL size 3 
INDI1 BUY MFE AVG dATR% 100% 
INDI1 BUY MFE AVG dADR% 123% 
———————————— 
INDI1 SELL WINS 10 
INDI1 SELL LOSS 10 
INDI1 SELL MFE MAX ticks 100 
INDI1 SELL MFE MAX SL size 10 
INDI1 SELL MFE MAX dATR% 300% 
INDI1 SELL MFE MAX dADR%323% 
INDI1 SELL MFE AVG ticks 24 
INDI1 SELL MFE AVG SL size 3 
INDI1 SELL MFE AVG dATR% 100% 
INDI 1SELL MFE AVG dADR% 123% 
———————————— 


The format for the chart object names is similar to this (this is one example, I can show the other formats once the job is started and provide the indicators so you can see the objects on a chart. 

DIRECTION is either SELL or BUY 
INDINAME_PREFIX is the name of the indicator that produced the object for example INDI1, INDI2, INDI3 

-- 
<INDINAME_PREFIX><DIRECTION>SL2020.05.26 04:00:00 // SL 
<INDINAME_PREFIX><DIRECTION>TP2020.05.26 04:00:00 // TP 
<INDINAME_PREFIX><DIRECTION>cLine2020.05.26 04:00:00 // Execution Price 
-- 

The code must be efficient and easy to read in case I want to add more stats going forward.


There is a lot to take in, please read the above carefully and ask questions :)



Thanks for looking, have fun! 

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(1235)
Projeler
2820
80%
Arabuluculuk
156
22% / 43%
Süresi dolmuş
488
17%
Serbest
2
Geliştirici 2
Derecelendirme
(157)
Projeler
174
43%
Arabuluculuk
6
0% / 67%
Süresi dolmuş
8
5%
Serbest
3
Geliştirici 3
Derecelendirme
(17)
Projeler
24
33%
Arabuluculuk
5
20% / 40%
Süresi dolmuş
8
33%
Serbest
4
Geliştirici 4
Derecelendirme
(33)
Projeler
35
40%
Arabuluculuk
11
9% / 91%
Süresi dolmuş
4
11%
Serbest
5
Geliştirici 5
Derecelendirme
Projeler
0
0%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Serbest
Benzer siparişler
Hey greetings. Am in need of a tradingview developer that can add a simple alert to my existing tradingview indicator with a simple conditions. Kindly bid for the project if it is what you can do for me and let proceed
see trade open on every tick seconde ok forex pair us us30 if is current running at 40170.00 so open 2 trade buy stop and sell stop both in every tick pending order of buy stop will 40171.00 and sell stop pending order will be 40169.00 buy stop will open at 40171.00 and tp will be 40173.00 and SL will be 40169.50 ok if buy stop hit sell stop order automatically will be close now if sell stop order open at 40169.00 so
Hi Teams Looking for trading strategy or an EA, which can trigger trade, in XAUUSD, With fixed SL of 2 USD AND TP OF 3 TO 5 USD. Any strategy any time frames. Can work on lowest size
Looking for a programmer to code EA for Buy Stop/Sell Stop HFT Trading designed for Ger40 EA must be able to trade on live account and Dll must be used for EA speed slippage control and spread filter
i want a forex robot that will read chats and enter trades on its oown. i want it to be able to use all trading strategies and partterns. good risky manegmemt, i want it to forcuse on Gold and and all major forex pairs. i want it to use stop loses and take profits as the market might change direction anytime. i want to work on both mt5 and mt4
I want to make something automatic which EMA will automatically trade in my account. For this I want to make a simple robot I want to get this made automatically on a simple EMA
Saya memerlukan Expert Advisor berdasarkan sinyal AOX. Itu harus memiliki pemeriksaan dan penanganan kesalahan operasi perdagangan. Kriteria utama pembukaan dan posisi penutupan: ■ arah rata-rata bergerak ■ harga lebih tinggi dari bar sebelumnya. Lot perdagangan adalah parameter masukan
I have a machine learning library in MT5 that I want to make an indicator with… You think you can help me? My strategy is simple... Predicting the Daily, Weekly, and Monthly High, Low, and Close prices... Then BUY @ LOW and SELL @ HIGH
Yellow/orange bot 30 - 60 USD
I require a bot that will trade under this condition: 1: in an uptrend I will draw yellow lines and if trend changes to downtrend and reaches one yellow line it opens a sell trade. In downtrend I will draw orange line if trend changes to uptrend and touch the line it enter buy trade. 2: if I was already in a trade, eg. Buy trade and trend changes and touches yellow line I
We are looking for an experienced MQL5 developer to create a custom drawing tool for MetaTrader 5. The tool should include the following functionalities: - Creation of 4 equally spaced horizontal lines on the chart. - A trend-line that measures the price movement. - Interactive buttons to control the drawing of these objects. - The tool should be user-friendly and efficiently handle chart events. **Requirements:** -

Proje bilgisi

Bütçe
75 - 125 USD
Geliştirici için
67.5 - 112.5 USD
Son teslim tarihi
from 1 to 2 gün