Does anyone has written a code to have a Time & Sales windoww in MultiCharts? with the possibility to put some filters?
If not is there a plan fo TS Support to insert is in the next realises?
It is a basic but definitely VERY important feature.
Tks
RA
Time & Sales
Re: Time & Sales
A T&S window has been asked for on this forum many times, but with no success......Does anyone has written a code to have a Time & Sales windoww in MultiCharts? with the possibility to put some filters?
If not is there a plan fo TS Support to insert is in the next realises?
It is a basic but definitely VERY important feature.
Tks
RA
I tried writing one as an indicator but it is not possible to stop the text scrolling to the left.
-
- Posts: 15
- Joined: 25 Aug 2007
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007
-
- Posts: 15
- Joined: 25 Aug 2007
Re: Time & Sales
Solidus posted a code on the TS forum (https://www.TS.com/Discussion ... _ID=104700).
if you set the Input "Volume.Threshold" to 1 it plots times and sales into the chart. Not the best solution, but works on tick/volume charts as on minute charts. Only the plotting to the right could be improved by modifiying the text_setlocation and the tading at bid/ask instead of uptick/downtick.
if you set the Input "Volume.Threshold" to 1 it plots times and sales into the chart. Not the best solution, but works on tick/volume charts as on minute charts. Only the plotting to the right could be improved by modifiying the text_setlocation and the tading at bid/ask instead of uptick/downtick.
- Attachments
-
- T&S.ELD
- (9.74 KiB) Downloaded 715 times
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Time & Sales
SP:Solidus posted a code on the TS forum (https://www.TS.com/Discussion ... _ID=104700).
if you set the Input "Volume.Threshold" to 1 it plots times and sales into the chart. Not the best solution, but works on tick/volume charts as on minute charts. Only the plotting to the right could be improved by modifiying the text_setlocation and the tading at bid/ask instead of uptick/downtick.
thanks for posting the code. much appreciated.
Re: Time & Sales
Change the line 111 from
to
and it plots the T&S to the point right and not into the bars.
Code: Select all
text_setlocation(vol.txt[ii],d,t,hval-diff*(ii+1));
Code: Select all
Text_SetLocation_s (vol.txt[ii], d, intportion (MinutesToTime ((GetAppInfo (7))*60*24)*100) , hval-diff*(ii+1));
and it plots the T&S to the point right and not into the bars.
Re: Time & Sales
Made some small modifications:
Added or changed for MC: TextLocation, Automatic Decimals, Block Alert as border, TextSize
Added or changed for MC: TextLocation, Automatic Decimals, Block Alert as border, TextSize
- Attachments
-
- Times and Sales 2 for MC.txt
- (5.36 KiB) Downloaded 754 times
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Time & Sales
nice codeMade some small modifications:
Added or changed for MC: TextLocation, Automatic Decimals, Block Alert as border, TextSize
thanks for sharing
one suggestion:
you can simplify the auto-decimal with this code:
Code: Select all
MyDecimalPlaces = Log(PriceScale) / Log(10) ;
Re: Time & Sales
Added TJ's suggestion and Daves Bid Ask Logic from viewtopic.php?f=5&t=6640, you need to set bid as Data2 and Ask as Data3
- Attachments
-
- T+S with Bid Data2 Ask Data3.txt
- (5.3 KiB) Downloaded 817 times
Re: Time & Sales
Thx for sharing the code.
How can I display the output on the left side of a chart?
How can I display the output on the left side of a chart?
Re: Time & Sales
You need to change the Text_SetLocation_s (......) lines. Take a look at "Using GetAppInfo for Chart Window information " for different time settings
https://www.multicharts.com/trading-sof ... GetAppInfo
https://www.multicharts.com/trading-sof ... GetAppInfo
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Time & Sales
One more tip:Added TJ's suggestion and Daves Bid Ask Logic from viewtopic.php?f=5&t=6640, you need to set bid as Data2 and Ask as Data3
You can put the auto.decimal in the ONCE block,
that should save some recalc cycles.
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Time & Sales
Arh... you are right, my oversight. You are a good coder. This indicator can be used as a platform for other analysis. Many thanks again for your sharing.TJ,
maybe it is difficult to read on the txt file, but the Auto.Decimals is already in the Once block.
Nevertheless the code isnt really a substitution for a native solution.