I have a script to export quotes but it only works if I open a chart. Can't I modify so that I'm not obliged to open a chart first ?
Excerpt of source code :
<CODE REMOVED>
Where do you think it gets the prices from?
Well I thought that Bars was for current chart and iBars( string symbol, int timeframe) wouldn't need any chart since symbol and timeframe have been given.
Please edit your post . . . please use the SRC button to post code: How to use the SRC button.
done thanks didn't see src in the first place ;)
Where do you think it gets the prices from?
I think it is ok, the symbol, theperiod parameters are not taken from the opened chart, can be anything. From one chart you can access all other existing chart and timeframe data.
I think the problem is that the chart is the only "interface" for running a task (script), an opened chart is needed for tasks that do not even require any chart.
This is my second unsuccessfull attempt to export ticks to a file after getting some help I corrected but still the file is created but stays empty why :
You FileOpen() the file tick after tick after tick . . . why ?
1.33685 1.33690 1.33684 1.33688
1.33685 1.33695 1.33684 1.33688
1.33717 1.33718 1.33710 1.33713
1.33717 1.33718 1.33710 1.33710
1.33717 1.33718 1.33710 1.33715
1.33717 1.33718 1.33710 1.33715
1.33717 1.33718 1.33710 1.33714
1.33717 1.33718 1.33710 1.33715
1.33717 1.33718 1.33710 1.33716
1.33717 1.33719 1.33710 1.33719
1.33717 1.33719 1.33710 1.33718
You FileOpen() the file tick after tick after tick . . . why ?
1.33685 1.33690 1.33684 1.33688
1.33685 1.33695 1.33684 1.33688
1.33717 1.33718 1.33710 1.33713
1.33717 1.33718 1.33710 1.33710
1.33717 1.33718 1.33710 1.33715
1.33717 1.33718 1.33710 1.33715
1.33717 1.33718 1.33710 1.33714
1.33717 1.33718 1.33710 1.33715
1.33717 1.33718 1.33710 1.33716
1.33717 1.33719 1.33710 1.33719
1.33717 1.33719 1.33710 1.33718
Oh yeah thank you very that works it saves my life !
Oh yeah thank you very that works it saves my life !
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I have a script to export quotes but it only works if I open a chart. Can't I modify so that I'm not obliged to open a chart first ?
Excerpt of source code :