How to run a paid indicator from the Market in your Strategy Tester

 

For example, you find the Uniform Moving Price Range indicator that is sold in the Market. First, download it to the terminal by clicking "Download demo".



After the download, the indicator is available in the "Market" folder. But you cannot run it on the chart, since you've downloaded the demo version of a paid product. The "Ok" button is missing.



Demo versions cannot run on the chart, because otherwise no one would buy them. However, before buying a product, the Buyer can see it on the visual testing chart in the strategy tester. All you need is a simple Expert Advisor that calls this indicator. To call the indicator with the default parameters, you need to know its name. In this case its name is shown in the Navigator - Uniform_Moving_Price_Range_demo.

Use the #define macro to specify the name of the indicator that will be used in the Expert Advisor for testing. Create the market_indicator macro specifying the \Market folder, in which the indicator is located.

#define market_indicator "Market\\Uniform_Moving_Price_Range_demo"

Create an indicator using the iCustom(_Symbol, _Period, market_indicator) function, where market_indicator is used as an ordinary string constant. After creating the indicator, check its handle.

//+------------------------------------------------------------------+
//|                                   Test_Indicator_from_Market.mq5 |
//|                        Copyright 2012, MetaQuotes Software Corp. |
//|                                              http://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2012, MetaQuotes Software Corp."
#property link      "http://www.mql5.com"
#property version   "1.00"

#define market_indicator "Market\\Uniform_Moving_Price_Range_demo"
int indicator_handle;
//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {
//--- An attempt to create an indicator
   indicator_handle=iCustom(_Symbol,_Period,market_indicator);
//--- An invalid handle means problems with an indicator
   if(indicator_handle==INVALID_HANDLE)
     {
      Print("Failed to create indicator ",market_indicator,". Error ",GetLastError());
      return(-1);
     }
//--- Initialization has completed successfully, return 0
   return(0);
  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
//---

  }
//+------------------------------------------------------------------+

Run the Expert Advisor in the strategy tester on the desired symbol and timeframe in the visual testing mode.



The indicator appears on the chart, and its values are shown in the Data Window.



Thus, you can try the demo version of any paid indicator from the Market - just download the attached template and write the name of the indicator that you have downloaded to the terminal from the Market. After that, run the resulting Expert Advisor in the strategy tester in the visual mode.

Free indicators from the Market can be run in a usual way - just apply them on a chart in the terminal.
 

Do it simpler :)


 
TheXpert:

Do it simpler :)

I love it.

 
How can I use the moving average, 200 daily, adjust so that it shows me in the other timeframes also 200 DAYS?? and not the periods of the selected time frames for calculation takes! 

thanks in advance
 

Now you can test any indicator simplier - https://www.metatrader5.com/en/terminal/help/startworking/interface

Context menu

Commands

Custom Indicators Menu

Attach to Chart Attach to Chart — apply a selected indicator to the active chart. The same action can be performed by a double click on the indicator. Besides, using the Drag'n'Drop method one can apply an analytical tool to any chart or a subwindow of already attached indicator.

Test Test — go to testing the selected indicator in the strategy tester.

Modify Modify — open the source code file (*.MQ5) of a selected indicator in MetaEditor. The same action can be performed by selecting an indicator and pressing the Enter key.

Delete Delete — delete a selected custom indicator. This action deletes both its executable file (*.EX5) and its source code file (*.MQ5). The same action can be performed by clicking the Delete key.

Create Create — go to the creation of a custom indicator. The execution of this command opens MQL5 Wizard in MetaEditor where an indicator can be created. The same action can be performed by clicking the Insert key.

Add to Favourites Add to Favourites — add a selected indicator to favourites.

Set hotkey Set hotkey — assign a hotkey to the selected indicator.

Order your own indicator Order your own indicator — go to ordering a development of an MQL5 program at the freelance service "Jobs" at MQL5.community.

Refresh Refresh — re-read the information about existing compiled indicators from the hard disk. The execution of this command is necessary when copying already compiled files to the corresponding folder of the client terminal.

 
See the problem with this post, is that your not even given, the ablility to "DOWNLOAD DEMO" for indicators on the market place.
 
COGSx86:
See the problem with this post, is that your not even given, the ablility to "DOWNLOAD DEMO" for indicators on the market place.
I think you can ask the author of the indicator to do some testing for you and send results. I have had fairly good luck with most of the authors.
 

tq for new info.. its good to know it

 
What about the Strategy Tester for Indicator on MT5, it has limited habilities but I suppose it works on demo version?