strategy automaticly export into a xls sheet.

trading strategies and money management discussion, code, results

Moderator: moderators

phi
rank: <50 posts
rank: <50 posts
Posts: 4
Joined: Mon Jun 19, 2006 3:28 pm
Reputation: 0
Gender: None specified
Contact:

strategy automaticly export into a xls sheet.

Postby phi » Mon Jun 19, 2006 4:27 pm

HI i´m new in this froum. and i have already a question;)
maybe someone can help me.

i have a strategy like this


{*******************************************************************
Description : Moving Average Crossover (2 Line) Long Entry
Provided By : Omega Research, Inc. (c) Copyright 1999
********************************************************************}




Inputs: Price(Close), FastLen(9), SlowLen(18);




If CurrentBar > 1 AND AverageFC(Price, FastLen) Crosses Above AverageFC(Price, SlowLen) Then
Buy ("MAC") 10 contracts This Bar on Close;


Print(date,close);


and i want to export the buysignal into a excel sheet.
it should export every day if it is long or short or flat, and the date, price close.
you think this is possible?

many thanks

josef

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.

phi
rank: <50 posts
rank: <50 posts
Posts: 4
Joined: Mon Jun 19, 2006 3:28 pm
Reputation: 0
Gender: None specified
Contact:

Postby phi » Sat Jun 24, 2006 6:15 pm

maybe somebody can help me please?

thx

josef

phi
rank: <50 posts
rank: <50 posts
Posts: 4
Joined: Mon Jun 19, 2006 3:28 pm
Reputation: 0
Gender: None specified
Contact:

Postby phi » Tue Jul 25, 2006 6:12 pm

maybe someone can take a look at this..

many tahnks

josef

twalker
rank: <50 posts
rank: <50 posts
Posts: 5
Joined: Wed Aug 02, 2006 10:34 am
Reputation: 0
Location: London
Gender: Male
Contact:

Postby twalker » Mon Sep 11, 2006 11:42 am

I have been trying to do the same thing and asked this question on the TS forum to which I received the folloing code

{Collect Statistics & Write Excel file}

vars:
Intrabarpersist xAction("");
condition0=(Action<>"" AND Action<>"Spread Warning" AND Action<>xAction);

vars:xDate("");
xDate=DateToString( DateToJulian( Date ) );

If condition0 then begin //Check only for new trades

if time>=0930 AND time<1601 then
fileappend("c:\TSStats1_" + NumToStr( Date, 0 ) + ".csv",
GetSymbolName +";" +
xDate +";" +
numtostr(t,0)+";"+
numtostr(C,2) +";"+
Action+";"+
a1Min+";" +
a5Min+";" +
a15Min+";"+
a60Min+";"+
a120Min+";"+
aDaily+";"+
aWeek+
NewLine);

end;//End Printing
{Update Intrabarpersist values}
xAction=Action;

This seems to be decipherable so you can adjust the data for what is required to be exported. I am using this as a way to automate execution through another platform.

phi
rank: <50 posts
rank: <50 posts
Posts: 4
Joined: Mon Jun 19, 2006 3:28 pm
Reputation: 0
Gender: None specified
Contact:

Postby phi » Tue Sep 12, 2006 6:03 am

thx twalker!

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.


Return to “strategy trading & money management”