Attachments forums

List of attachments posted on this forum.


All files on forums: 163059

Re: XARD - Simple Trend Following Trading System

traderduke, Mon Mar 09, 2020 2:10 am

emrahgk wrote: Sun Mar 08, 2020 3:05 am

can you explain a little more
Here is an example of the view and the code;
Coding;
extern int maxBars = 400;

int start() {
int limit;
int counted_bars=IndicatorCounted();
if(counted_bars<0) return(-1);
if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;
if ( limit > maxBars )
{
limit = maxBars;
}

MRtools would be a better source of MAXBARS coding . I'm sure he would be glad to assist.
All files in topic