How to create a loop for an MT4 indicator

To add comments, please log in or register
Jimmy Jay
11
Jimmy Jay  
Hi guys,

I have an indicator that exports historical price data to csv files. I'm not much of a coder and am having trouble with this.

What I'd really, really appreciate it would be if someone would be able to help where and how to put a loop in the indicator, details are as follows:

1. The indicator runs (once I click on it)

2. It exports to csv (which it already does)

3. Waits 60 seconds and then runs through again exporting to a csv

So I guess something like this - [loop starts] [indicator runs] [waits 60 seconds] [loops back to the start and indicator runs again].

If anyone could help that would be great. Thanks a lot. James

The indicator is attached.
Files:
out_hist.mq4 9 kb
Jack Thomas
1626
Jack Thomas  
Jimmy Jay:
Hi guys,

I have an indicator that exports historical price data to csv files. I'm not much of a coder and am having trouble with this.

What I'd really, really appreciate it would be if someone would be able to help where and how to put a loop in the indicator, details are as follows:

1. The indicator runs (once I click on it)

2. It exports to csv (which it already does)

3. Waits 60 seconds and then runs through again exporting to a csv

So I guess something like this - [loop starts] [indicator runs] [waits 60 seconds] [loops back to the start and indicator runs again].

If anyone could help that would be great. Thanks a lot. James

The indicator is attached.
Recommended options:
  1. Check the codebase section.
    https://www.mql5.com/en/code

  2. Learn to code, and create the item yourself.
    https://www.mql5.com/en/docs

  3. There are numerous programmers who would be very happy to help you.
    https://www.mql5.com/en/job

  4. Check the marketplace.
    https://www.mql5.com/en/market

    Please note that MT4 is an OBSOLETE product and is no longer available directly from Metaquotes.

    You would be better off focusing on learning to code for MT5.


MQL5 Code Base
MQL5 Code Base
  • www.mql5.com
The Repulse Multi Timeframe indicator measures and displays the bullish or bearish pressure associated with each price candlestick in the form of a curve. In this indicator Jurik MA is sigmoidal (Softmax) normalized - made as oscillator that ranges in 0 to 1 range, and if you use hyperbolic normalization it will range from -1 to +1 range. The...
To add comments, please log in or register