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

Notification

Icon
Error

Options
Go to last post Go to first unread
naveens  
#1 Posted : Tuesday, June 15, 2010 11:43:50 PM(UTC)
naveens

Rank: Newbie

Groups: Registered, Registered Users
Joined: 6/16/2010(UTC)
Posts: 3

Hi please suggest me how to refer the the day on which previous trade occured and the price at which the trade occured. For example If my formula for placing a trade is dependent on the price and day of the previous trade, How can I refer to them in my formula? thanks in advance...
mstt  
#2 Posted : Wednesday, June 16, 2010 4:28:51 AM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)

Hi Naveen

There's no easy way to code what you're looking for. A little while back I did some work for a client that required each trade (after the first) to use aspects of the previous trade as conditions for setting up each new trade. I can't disclose the actual code but it required a PREV-based latch to manage entries, pyramiding, exits and to monitor the previous trade as one of the conditions of entry. The code for tracking all trades in an indicator required 9 PREV functions, and the Long and Short TradeSim explorations each required 8 PREVs to faithfully implement all of the required trade conditions.

If you created the same system in the EST you'd still need to resort to PREV and/or several Simulation functions. The beauty of creating the system code as an indicator is that you can see exactly what's happening - this makes troubleshooting when things don't work properly so much easier. Trying to locate code problems in the EST or the Explorer without a visual aid is sometimes a real pain.

Your choices are to pay someone to create the necessary code, take the time to learn how and why a PREV latch works (which could be anywhere from a couple of weeks to several months) then do the work yourself, or change your system to something simpler. Actually there are a couple of other options and one would be to change to software to a package that made such projects easier (I have no suggestions on that score), or pay some like Wabbit to create a DLL for MetaStock and encapsulate the system.

As I said, there are no quick-fix answers.

Roy

naveens  
#3 Posted : Wednesday, June 16, 2010 5:37:03 AM(UTC)
naveens

Rank: Newbie

Groups: Registered, Registered Users
Joined: 6/16/2010(UTC)
Posts: 3

Well..well... we seems to have a puzzle over here. Thanks for your suggestion Mr.Roy Just one more question...can you tell me what pyramiding is? new suggestions are also accepted thankyou
mstt  
#4 Posted : Wednesday, June 16, 2010 2:30:36 PM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)

Hi Naveen

Pyramiding is adding to existing trades, stacking one trade on top of another as each new entry signal is given.

Roy

naveens  
#5 Posted : Thursday, June 17, 2010 11:38:19 PM(UTC)
naveens

Rank: Newbie

Groups: Registered, Registered Users
Joined: 6/16/2010(UTC)
Posts: 3

OK... Thank you so much Roy...still working on it...no success till now... any more suggestions ppl?
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.