PureBytes Links
Trading Reference Links
|
Just a little follow-on to Bob Hunt's data extraction code. This will
establish different "Trgt" file names so the same indicator can be
run on weeklu or monthly charts.
The change is contained in the "if barnumber == 1 module. Just
replace that module with this code, or add the appropriate lines.
there are other and more fancy ways to do this, including making the
symbolname part of the datafile, but I am sticking with Bob's naming
conventions so there is no confusion...
BTW, is the swing machine module posted anywhere, or could Clyde
email the zipfile to me?
Cliff
---------------------
If BarNumber = 1 Then Begin
If datacompression = 1 then Trgt = "C:\swngmach\intraday"
If datacompression = 3 then Trgt = "C:\swngmach\weekly"
If datacompression = 4 then Trgt = "C:\swngmach\monthly"
FileDelete(Trgt);
FileAppend(Trgt,"Date,Time,Open,High,Low,Close"+NewLine);
End;
|