logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
jer99  
#1 Posted : Sunday, September 10, 2006 12:02:18 PM(UTC)
jer99

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 1/19/2006(UTC)
Posts: 33

I'm using Professional to trade forex with realtime quotes from Reuters for Forex (and eod for equitites). I use the Downloader 9.2 for forex and 8.x for EOD.

If I run a system test on the Yen ($$USDJPY), it runs for a bit and then errors out saying"Simulation encountered invalid security".

Any ideas?

Jerry

henry1224  
#2 Posted : Wednesday, September 13, 2006 6:37:43 AM(UTC)
henry1224

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/29/2004(UTC)
Posts: 1,394
Location: Glastonbury, CT

Was thanked: 2 time(s) in 2 post(s)
Jerry, It would help if you provided the code from the system test,to see where the Error would occur.
jer99  
#3 Posted : Wednesday, September 13, 2006 7:58:17 AM(UTC)
jer99

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 1/19/2006(UTC)
Posts: 33

Sorry about that...

The buy is : MACD()-Mov(MACD(),9,E)>0 AND Ref(MACD()-Mov(MACD(),9,E),1) <0

The sell: MACD()-Mov(MACD(),9,E)<0 AND Ref(MACD()-Mov(MACD(),9,E),1) >0

Max loss = 4% longs, Max profit = 0.02 I'm testing the YEN at 15 min, 30 min and 60 min at the same time.

It errors on each one and tells me that $$USDJPN is an invalid symbol.

I am using Downloader 8 for my EOD and Downloader 9.2 for real time forex.

wabbit  
#4 Posted : Wednesday, September 13, 2006 6:43:54 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
Jerry,

Rule 1 : NEVER use forward referencing.
Rule 2 : NEVER use forward referencing.
Rule 3 : NEVER use forward referencing.

Are we seeing a pattern here?

As far as the coding goes, try this:

Code:

ind:=MACD();
x:=ind > Mov(ind,9,E);
buy:=x=1 and Alert(x=0,2);
sell:=x=0 and Alert(x=1,2);
{code doesn't really need the '=1' - added for symmetry!}

jer99 wrote:
I'm testing the YEN at 15 min, 30 min and 60 min at the same time.
It errors on each one and tells me that $$USDJPN is an invalid symbol.


Try running one at a time. Which timeframe causes the error? If no error, pick two timeframes and run them simultaneously, if no error then pick another combination of two timeframes and run them together. When do any errors occur?


Or was it a coding issue?



wabbit [:D]




jer99  
#5 Posted : Wednesday, September 13, 2006 7:43:21 PM(UTC)
jer99

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 1/19/2006(UTC)
Posts: 33

hmmm...

Must have been the forward reference (duh!!)

It works!!!!

Thanks again...

I'm getting there...[:D]

Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.