| / | Forum |
|
Yellowbeard
2010.04.20 05:40
|
|
Show Must Go On, or Once Again about ZigZag About an obvious but still substandard method of ZigZag composition, and what it results in: the Multiframe Fractal ZigZag indicator that represents ZigZags built on three larger ons, on a single working timeframe (TF). In their turn, those larger TFs may be non-standard, too, and range from M5 to MN1. |
2030 |
gordon
2010.04.20 06:06
You need to save the file handle returned by FileOpen() and pass that handle to FileWrite() and FileClose():
// ... int handle = FileOpen(Day()+".csv", FILE_CSV|FILE_WRITE, ';'); // if... FileWrite(handle, DoubleToStr(PnvH,Digits)); FileClose(handle);Day() will be automatically cast to string when passed to FileOpen() so there is no need to use DoubleToStr(). You do need to use DoubleToStr() to write PnvH so as the correct number of digits are printed to file. Next time: ![]() |
|
Yellowbeard
2010.04.20 06:23
gordon wrote >>
You need to save the file handle returned by FileOpen() and pass that handle to FileWrite() and FileClose(): Day() will be automatically cast to string when passed to FileOpen(), there is no need to use DoubleToStr(). Next time: Worked like a charm! Yellowbeard |