Forex Zone - Forex Forum

Conversion of an old format of MetaTrader 4 code to new MT4 build > 600+ format

Discussion started on Indicator Modifications

  • Starter
  • Posts: 7
  • Points: 390
  • Likes Received: 1
  • Reputation: +0/-0
Dear all,

I am new here. can anyone kindly help me convert this indicator to the new format compatible to run in an EA in recent MT4 build. As I checked through the code and noticed the buffers won't work since the old MT4 language was used to write the indicator. For example, Init() which should be OnInit() in new builds etc. Please kindly help as I attach the warning message I get from my system and indicator source file.

Thanks.


Linkback: https://www.forex.zone/indicator-modifications/16/conversion-of-an-old-format-of-metatrader-4-code-to-new-mt4-build-andgt-600plus-format/3055/
#1 - March 11, 2020, 11:01:33 PM
Attachments:
« Last Edit: March 11, 2020, 11:03:37 PM by dabtchero »

Administrator
  • Hero Member
  • Posts: 4731
  • Points: 34628
  • Likes Received: 4838
  • Reputation: +220/-14
You mentioned a single indicator, but attached 2 different indicators. Why?
#2 - March 11, 2020, 11:22:54 PM

  • Starter
  • Posts: 7
  • Points: 390
  • Likes Received: 1
  • Reputation: +0/-0
Sorry about that. But they both have a similar issue.

Thanks. so 
#3 - March 12, 2020, 06:15:59 AM

Administrator
  • Hero Member
  • Posts: 4731
  • Points: 34628
  • Likes Received: 4838
  • Reputation: +220/-14
Here is the new version of 100pipstodayscalper+push. It was a simple change to get this working. Everything else has stayed the same.
#4 - March 14, 2020, 04:08:21 PM
Attachments:

Administrator
  • Hero Member
  • Posts: 4731
  • Points: 34628
  • Likes Received: 4838
  • Reputation: +220/-14
For the half-trend indicator, I tested it and it works. It also compiles fine.
#5 - March 14, 2020, 04:10:36 PM

  • Starter
  • Posts: 7
  • Points: 390
  • Likes Received: 1
  • Reputation: +0/-0
Thanks a lot for the help. It worked :D:D
#6 - March 15, 2020, 08:19:29 PM

Members:

0 Members and 1 Guest are viewing this topic.