Topic: Request for help adding a new indicator

Hello, good time
In addition to thanking you for the support and good Forex Strategy program, I created an indicator in the C language format that the Forex Strategy program understands and I use it in the exit logic of the transaction within the program, but the serious problem I have is when exporting the robot that the codes are incompatible with the MetaTrader language, that is, the Forex Strategy program cannot export the robot at all and gives a message that there is no code to integrate into the robot, how can I solve this problem so that my indicator is created in the program folder as mqh so that the problem is solved

Post's attachments

ds.jpg 114.13 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

Re: Request for help adding a new indicator

How can I make my indicator compatible with the program to be implemented in the robot and how can I solve this problem so that my indicator is created in the program folder as mqh, which will solve the problem and include my indicator in the created robot?

Re: Request for help adding a new indicator

I used various artificial intelligence tools to implement it but I was unsuccessful. Is there a program that can do this for me? The CS code in Forex Strategy Builder works perfectly, but I cannot define and create the mqh file that will implement the robot during the expertization process and create the class, variables, and indicator logic in the robot.

Re: Request for help adding a new indicator

If you succeeded to create a C# version of your indicator for Forex Strategy Builder, you have done the more complicated task.

Now you have to write a version of your indicator in MQL.

It will be very useful to look for examples in the "Repository" section of this website.

I noticed your indicator is a version of Donchian. Please look at this Bollinger Bands version by Footon here: Better Bollinger bands by footon

You will find both, the C# and the MQL code.

Happy hacking!

Re: Request for help adding a new indicator

Well, my problem is exactly this, I create the code with mqh, but when I export the robot from the Forex Strategy program, I encounter error messages and the robot does not become an expert. Is there a specific logic for this part that needs to be considered? How can it be implemented so that the robot runs?



Popov wrote:

If you succeeded to create a C# version of your indicator for Forex Strategy Builder, you have done the more complicated task.

Now you have to write a version of your indicator in MQL.

It will be very useful to look for examples in the "Repository" section of this website.

I noticed your indicator is a version of Donchian. Please look at this Bollinger Bands version by Footon here: Better Bollinger bands by footon

You will find both, the C# and the MQL code.

Happy hacking!

Re: Request for help adding a new indicator

You have to place your indicator code in this folder:

C:\Program Files\Forex Strategy Builder Pro\User Files\MT4 Files\MQL\Forexsb.com\Custom

We use the, so called Pascal Case. Please see how the other indicators are named.