Gamestudio Links
Zorro Links
Newest Posts
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 9,630 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Tradestation -> Zorro #459008
04/12/16 19:38
04/12/16 19:38
Joined: Feb 2015
Posts: 652
Milano, Italy
M
MatPed Offline OP
User
MatPed  Offline OP
User
M

Joined: Feb 2015
Posts: 652
Milano, Italy
Hi all,
Does anybody know if there is any automatic tool to translate trade-station script to zorro's scripting dialect?

Thank You

Re: Tradestation -> Zorro [Re: MatPed] #459011
04/13/16 05:31
04/13/16 05:31
Joined: Apr 2014
Posts: 482
Sydney, Australia
B
boatman Offline
Senior Member
boatman  Offline
Senior Member
B

Joined: Apr 2014
Posts: 482
Sydney, Australia
I don't know of anything automatic, but post whatever is giving you trouble and I'm sure you'll get all the help you need from the forum.

Re: Tradestation -> Zorro [Re: boatman] #459013
04/13/16 09:19
04/13/16 09:19
Joined: Feb 2015
Posts: 652
Milano, Italy
M
MatPed Offline OP
User
MatPed  Offline OP
User
M

Joined: Feb 2015
Posts: 652
Milano, Italy
ok, cool. Let's start This is a strategy developed by A. Unger:

Code:
// EasyLanguage (TradeStation) / PowerLanguage (MultiCharts) code
// basic code to play around with :-)

// DAX, 5min time frame, default settings, exchange time

input: 
	RangeMultiplier(0.95),
	BegTime(0900),
	EndTime(0955),
	CloseTime(2155),
	SkipDay(Friday),
	MyContracts(1);

variables:
	minSetup(0), maxSetup(0),
	slLong(0), slShort(0),
	daily_factor(false);


If Date <> Date[1] then begin
	maxSetup = 0;
	minSetup = 0;

	daily_factor = absvalue(opend(1)-closed(1))<0.75*(highd(1)-lowd(1));
end;

If daily_factor and Time >= BegTime and Time <= EndTime and Dayofweek(date) <> SkipDay and EntriesToday(date) = 0 then begin

	If maxSetup = 0 then begin
		// do once @ BegTime
		maxSetup = HighD(0) + RangeMultiplier * (HighD(0) - LowD(0));
		slLong = HighD(0);
	end;

	Buy("LEx") MyContracts contracts Next Bar at maxSetup stop;


	If minSetup = 0 then begin
		// do once @ BegTime
		minSetup = LowD(0) - RangeMultiplier * (HighD(0) - LowD(0));
		slShort = LowD(0);
	end;

	SellShort("SEx") MyContracts contracts Next Bar at minSetup stop;

end;

Sell("LXx") from entry("LEx") Next Bar at slLong stop;
BuyToCover("SXx") from entry("SEx") Next Bar at slShort stop;

If Time >= CloseTime then begin
	Sell("TimeLXx") from entry("LEx") Next Bar market;
	BuyToCover("TimeSXx") from entry("SEx") Next Bar at market;
end;

Setstopcontract;
SetStopLoss(1000);
SetExitOnClose;


Last edited by MatPed; 04/13/16 09:20.
Re: Tradestation -> Zorro [Re: MatPed] #459015
04/13/16 10:01
04/13/16 10:01
Joined: Apr 2014
Posts: 482
Sydney, Australia
B
boatman Offline
Senior Member
boatman  Offline
Senior Member
B

Joined: Apr 2014
Posts: 482
Sydney, Australia
And where have you gotten to with the Lite-C version?

Re: Tradestation -> Zorro [Re: boatman] #459016
04/13/16 10:35
04/13/16 10:35
Joined: Feb 2015
Posts: 652
Milano, Italy
M
MatPed Offline OP
User
MatPed  Offline OP
User
M

Joined: Feb 2015
Posts: 652
Milano, Italy
I can not read this code... This was the request for an automatic tool laugh

Re: Tradestation -> Zorro [Re: MatPed] #459020
04/13/16 22:39
04/13/16 22:39
Joined: Apr 2014
Posts: 482
Sydney, Australia
B
boatman Offline
Senior Member
boatman  Offline
Senior Member
B

Joined: Apr 2014
Posts: 482
Sydney, Australia
Can you at least explain what the code does? I'm sure if you looked into the basics of Easy Language, you could decipher it enough to at least put it into words.

Re: Tradestation -> Zorro [Re: boatman] #459042
04/15/16 17:03
04/15/16 17:03
Joined: Feb 2015
Posts: 652
Milano, Italy
M
MatPed Offline OP
User
MatPed  Offline OP
User
M

Joined: Feb 2015
Posts: 652
Milano, Italy
Thank You Boatman,
You are very kind I will try to code it in the Zorro's dialect as soon I will grab some time.

It's not all about a single strategy. I am finding some strategies that looks interesting from Andrea Unger http://www.oneyeartarget.com. But they have been developed in tradestation some automatic tools were welcome...


Moderated by  Petra 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1