Custom Symbol - script to modify custom symbol and reset existing history

MQL5 스크립트 다른

작업 종료됨

실행 시간 2 시간
고객의 피드백
Raymond completed the job quickly and tested perfectly on first demo. Great code very well commented. Will be my go to guy from now on....
피고용인의 피드백
Clear specifications and straight on point. Thanks for the collaboration, Ian.

명시

The attached simple script (sTestComb.mq5) reads a txt file and uses this as a basis to update the "SYMBOL_FORMULA" for a custom symbol.  The problem I have is the existing history is NOT updated.

The job is to create a script that will:

1. Read the attached GComb.txt file from the files directory and update the "SYMBOL_FORMULA" based on it. 

            Custom Symbol should be called "CombG", based on a FOREX major pair.  

            Custom Symbol should only be updated, not created from new.

2. Delete the old history and build a new history for the custom symbol based on the updated formula from the GComb.txt file. 

Note1: Please ensure that event handling is covered in the script.

Note2: The same script will be run multiple times per day updating the same Custom symbol (CombG). 

 

References: 

https://www.mql5.com/en/articles/8226 (CUSTOM SYMBOLS: PRACTICAL BASICS)

https://www.mql5.com/en/code/18855 (Symbol - library for MetaTrader 5)


파일:

TXT
GComb.txt
99 b

응답함

1
개발자 1
등급
(40)
프로젝트
55
35%
중재
2
0% / 50%
기한 초과
0
무료
2
개발자 2
등급
(94)
프로젝트
190
66%
중재
8
25% / 50%
기한 초과
2
1%
무료
3
개발자 3
등급
(57)
프로젝트
72
22%
중재
13
46% / 15%
기한 초과
5
7%
무료
4
개발자 4
등급
(144)
프로젝트
199
42%
중재
20
25% / 55%
기한 초과
10
5%
무료

프로젝트 정보

예산
30 - 60 USD
기한
 3 일