dennis44
May 16 2005, 01:57 PM
Are there any plans to implement "for loops" in the Vt language. They would be useful for more involved trading systems.
Thanks,
Dennis
cskidmore
May 16 2005, 02:28 PM
Hello,
Any chance you could include a sample realworld code snippet and explanation to demostrate exactly what you're looking for? It helps when I can take a clear picture of what is being asked for to the developers. Many thanks!
Regards,
Chris
franrodgers0
Jul 14 2005, 02:20 AM
Hi!
For Loops, along with other real language features are desperately needed. A by no means complete list would include:
For...in :- for executing the same options, stops limits, hedging ect on a group of orders or positions.
For...Next, for looping a number of times.
Do loop until. Do while ect. for conditional looping.
Real If then else structures that allow loops and conditionals inside. This may allready be available I just have not got around to fully testing it yet.
Procedure and Function sub groups with paremeter passing so that options can be set for trading indicators and systems. I am currently building a system that requires percentage ranges, presently I would like to give the user the option of choosing if the range bars should lock on to real pip prices or if they should be allowed to go between these prices. This is something I would be able to implement easily if procedures and functions were made possible.
For a full list of other things needed in your program enviorment please e-mail me. I do understand that you are not developing a programming langugae, rather, a trading language, and so implementing full programming abilities would not be practical. But certantly more flexability is needed as not all investors are software developers and I beleive you will win a large market over if you can make your programming easer to use but more flexible at the same time.
Good luck with your trading!
Mr. Francis Rodgers
cskidmore
Jul 14 2005, 11:22 AM
Hello,
Thank you for your comments. We are currently exploring options available for restructuring of our current VT programming language to allow for more flexibility in trading system design.
Regards,
Chris
Claude
Jul 14 2005, 08:29 PM
Hello
I am a trade stations 2000 I user and for to loops are often used.
Such as
For count=1 to 10
Meaning the indicator will count to 10 and then start over. There is a way of re-creating that in VT language.
by getting a little creative by using this syntax.
Reset:=(10);
Length:=(1+Prev)-If(PREV=Reset,Reset,0);
This little formula will count to 10 and then start over. You can often use this in the place of a for to Loop.
franrodgers0
Jul 16 2005, 03:09 AM
Hi Claude
Cool suggestion! I will give that a try and see what happens! You seem to really know your stuff where VTrader is conserned
I have run down the VTrader documentation enough, so it not necessary to go down that road again. However if you have any more suggestions like that, and the time to post them, I would like to hear them, more especially if you can document clearly how they work!
Thanks again! I really appreicate it!
Mr. Francis Rodgers
cleon
Jul 28 2005, 02:10 AM
Hi,
Some days ago, I was trying to plot a line on a chart with a time frame other than a tick chart, like 15 min, 30 min and so on, but I didn't find any way to do that. So I added the following code:
{Price Simulation}
PMV := Ref(Mov(Close,1,S),-0);
Price_MV := PMV+((PMV*0)/100);
That is the same as a moving average = 1, so no average, just a real tick line on any chart, with any time frame. I still don't know if there's an easy way to do this using VT language, but with a little imagination sometimes, not always, we can get there.
Regards,
Cleon
cskidmore
Feb 26 2010, 02:05 PM
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.