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

Notification

Icon
Error

Options
Go to last post Go to first unread
SulemanShah  
#1 Posted : Friday, February 27, 2009 3:51:31 AM(UTC)
SulemanShah

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 2/25/2009(UTC)
Posts: 6
Location: Switzerland

Hi All,
I am new to Metastock and trading and have a question about the usage of Parabolic SAR to identify entry points.

I have a programming background, so I am comfortable with the formula. I have read the thread http://forum.equis.com/forums/thread/23419.aspx

For long positons
-------
Cross(C,SAR(0.02,0.2))



but can't seem to get my system tester to show any entry points when I can clearly see on the graph, the P SAR cross the High/Lows.

I am working with e.g. gb;tsco(TESCO) on a 1min feed with 2 days worth of data. My limit is 3/4 points from my entry, whether Long/Short.

I am missing something very blindingly obvious :-(

Please help me out. Thanks in advance.

Regards,

Suleman
Justin  
#2 Posted : Friday, February 27, 2009 7:25:58 AM(UTC)
Justin

Rank: Advanced Member

Groups: Registered, Registered Users, Unverified Users
Joined: 9/13/2004(UTC)
Posts: 673
Location: Salt Lake City, UT

You really have to look at the Orders tab in the results to know what is happening. Are there are trades being Considered? Are they being Canceled due to Open Cost?

It would appear that this security trades at a value over 300. If you left the Default Trade Size as Number of Units - 100 and an Initial Equity of 10,000, every trade would end up canceled due to the open cost (you would need over 30,000 just to get into one trade).

SulemanShah  
#3 Posted : Monday, March 2, 2009 10:58:21 AM(UTC)
SulemanShah

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 2/25/2009(UTC)
Posts: 6
Location: Switzerland

Hi Justin,
Thanks for answering. I am still confused. I changed

These are settings I am using, all the rest are default.

Buy Order
-----------
Cross(L,SAR(0.02,0.2))

Sell Short Order
-----------------
Cross(H,SAR(0.02,0.2))



What I want to achieve is that, on the buy side, once the price crosses Cross(L,SAR(0.02,0.2)) I want to place a buy order with a limit of 3 points. On the sell side, once the price crosses Cross(H,SAR(0.02,0.2)), I want to place a sell order with a limit of 3 points. This time I am using the US&DJI as an example, with 1 min chart for the period 01st Jan 2009 to 2nd Mar 2009. I must be missing some setting like you mentioned. Please can you help me?

Thanks,

Suleman

SulemanShah  
#4 Posted : Monday, March 2, 2009 11:21:00 AM(UTC)
SulemanShah

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 2/25/2009(UTC)
Posts: 6
Location: Switzerland

No orders are generated....

Orders

Summary

Considered Opened Executed Cancelled Total 662 0 0 662
Justin  
#5 Posted : Monday, March 2, 2009 12:36:52 PM(UTC)
Justin

Rank: Advanced Member

Groups: Registered, Registered Users, Unverified Users
Joined: 9/13/2004(UTC)
Posts: 673
Location: Salt Lake City, UT

Note that the trades are considered but then canceled. This means this is not a formula problem but a system testing option problem.

If you do not have enough initial equity to buy the number of units defined on the system testing options page, the trade will cancel.

On the System Testing Options page, try increasing your initial equity from 10000. Also try changing the Default Size from "Number of Units" to "% of Available Equity" and set the value to something under 100, i.e. 50 or 95 (I recommend 50 if you are doing both long and short trades).
SulemanShah  
#6 Posted : Monday, March 2, 2009 1:19:01 PM(UTC)
SulemanShah

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 2/25/2009(UTC)
Posts: 6
Location: Switzerland

Hi Justin,
Thanks for replying to my forum query. I have realized my mistake, in that I am not asking the right question.

Basically, I want to generate a Buy signal when the SAR indicator changes from being "ABOVE" the price to "BELOW" the price. I have attached a image and marked 2 buy and sell signal I would expect to see. Maybe I am using the wrong formula? I have used just today's data on the DJIA for this example. I will be trading the FTSE or the DJIA.

Regards,

Suleman
><br></div>
            
</div> 
        </div>
    </td>
</tr>
<tr class=
Back to top
SulemanShah  
#7 Posted : Tuesday, March 3, 2009 2:39:14 AM(UTC)
SulemanShah

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 2/25/2009(UTC)
Posts: 6
Location: Switzerland




Hi Justin,
I am making good progress now. I am still testing using the Enhanced Sytem Tester and once perfected will move to the Advisor.

Now, my question is very specific, Once the EST has run and I am viewing then results on the Order tab, I can see the following...

Orders Orders Bar Date Number Event Type Size Terms Price Price Field Position Source 34 02/03/2009 18:20 1 Considered Sell Short 1 Market Signal 34 02/03/2009 18:20 1 Placed Sell Short 1 Market Signal 35 02/03/2009 18:25 1 Opened Sell Short 1 Market Signal 35 02/03/2009 18:25 1 Executed Sell Short 1 Market 6818.0098 Pts Open 1 Signal 36 02/03/2009 18:30 2 Considered Buy 1 Market Signal 36 02/03/2009 18:30 2 Placed Buy 1 Market Signal 37 02/03/2009 18:35 2 Opened Buy 1 Market Signal 37 02/03/2009 18:35 2 Executed Buy 1 Market 6839.2002 Pts Open 2 Signal 37 02/03/2009 18:35 3 Considered Sell 1 Limit 6848.2002 Pts 2 Stop 37 02/03/2009 18:35 3 Placed Sell 1 Limit 2 Stop 37 02/03/2009 18:35 3 Opened Sell 1 Limit 2 Stop 37 02/03/2009 18:35 3 Executed Sell 1 Limit 6848.2002 Pts Limit 2 Stop
My question is, There is a delay in placed and opened position, which equal to the interval of the chart i.e 5 mins in this case.

Can I make the EST do the placed/opened/executed in the same time period/bar?





SulemanShah  
#8 Posted : Tuesday, March 3, 2009 3:27:17 AM(UTC)
SulemanShah

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 2/25/2009(UTC)
Posts: 6
Location: Switzerland

Hi ,

I found to answer to my own question... to anyone interested..

In the last screen of "Perform Trading Simulation" in Results, one can click more and in the "Trade Execution" tab, there is a "delay order opening" parameter, that needs to turned to 0.


Justin  
#9 Posted : Tuesday, March 3, 2009 12:12:23 PM(UTC)
Justin

Rank: Advanced Member

Groups: Registered, Registered Users, Unverified Users
Joined: 9/13/2004(UTC)
Posts: 673
Location: Salt Lake City, UT

If you do change this value you'd likely also want to set all the price fields to Close instead of Open.
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.