| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | Rounding Print-statement to Full Number i am facing somewhat the same problem when printing a to a TXT-file, this solution rounding to price does not work for me as am im trying to round time or any number not correlated to price in a text file i am trying to make tradestation to manipulate the price of a certain underlying and print the full numbers incl Hour and Minute in a text file so they can later be imported as 3d party ascii data without needing to do some workaround with open office example... Code: Variables: myvalue(0);
myvalue = mavalue + 1;
Print(File("c:\TradeStationDataExport\TS_Data.txt"), myvalue); Output in TXT File: 1.00 2.00 3.00 Needet: 1 2 3 i have tried pretty much all rounding functions (and ofcourse the simple Round reserved word) i could get my hands on and i made up some myself, unfortunally this seems not to work while printing data to an TXT-file. Thoughts ? | ||
| |
|
| | #2 | ||
![]() | Re: Rounding Print-statement to Full Number you need to cut off the decimals. and you need to convert the number to string. NUMTOSTR
__________________ Only an idiot would reply to a stupid post | ||
| |
|
| The Following User Says Thank You to Tams For This Useful Post: | ||
flyingdutchmen (09-10-2010) | ||
| | #3 | ||
![]() | Re: Rounding Print-statement to Full Number TAMS is correct, Try this, Print( Numtostr(MyValue,0) ); EasyTrader_I. | ||
| |
|
| | #4 | ||
![]() | Re: Rounding Print-statement to Full Number Thank you | ||
| |
|
| | #5 | ||
![]() | Re: Rounding Print-statement to Full Number | ||
| |
|
| | #6 | ||
![]() | Re: Rounding Print-statement to Full Number Quote:
__________________ Only an idiot would reply to a stupid post | ||
| |
|
| | #7 | ||
![]() | Re: Rounding Print-statement to Full Number from here i would be able to use further calculations onto those range bars like finding swing high's/low's which wasnt possible in TS, at least not standard. timebased swing highs and low do not have the same quality. this is just a workaround. It filters out alot of noise and give me more quality swings. i did not like the MC rangebars so i made my own in TS which do fit my conditions | ||
| |
|
![]() |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pesavento Pattern | Tams | Trading Indicators | 20 | 05-03-2010 09:00 AM |
| Print (EasyLanguage) | Tams | Coding Forum | 8 | 10-22-2009 01:20 PM |