PDA

View Full Version : Trade Re-entry


arpad_37
23rd May 2003, 06:25 AM
Hi David,

So far I have been happy with TradeSim. I have one question though which I think is more Metastock than TradeSim but here it goes.

I use an ATR based trailing stop loss from my LONGS and SHORTS. What I would like to include is after I have exited a trade due to trailing stop loss being hit and the Close price has recovered and passed the highest high close price (for LONGS) since I originally openend the trade and the security is still on "long" mode than I reenter the trade. Can you please assist?

Regards,

Arpad

David Samborsky
23rd May 2003, 11:30 AM
Hello Arpad

It sounds like you are trying to pyramid your trades. Are you using Version 3.0.0 of TradeSim? If not I suggest you goto the download page and download the pre-release beta version which contains support for pyramid trade strategies. Version 3 should make it easier to do what you want.

TradeSim Version 3.0.0 Build 652 Beta Pre-Release is available from our download page at http://www.compuvision.com.au/DownloadTradeSim.htm

Also I recommend downloading the additional supplimental documentation available from the download page as well.

arpad_37
23rd May 2003, 11:28 PM
Thanks David,

My question was regarding reentry once the initial stop loss is hit. I am using the "rally" function for that for LONGS but still have trouble with Shorts. This should be the opposite of Rally - can you please tell me what it is in Metastock.

I have not used the pyramid function, but I will download the version you are reffering to and shall try.

Regards,
Arpad

David Samborsky
24th May 2003, 03:56 AM
Hello Arpad

I am not familiar with the rally function so I would not be the best person to ask here. Would anyone else like to comment, tech/a , Jose ?

tech/a
24th May 2003, 07:11 AM
Hi

Had to look it up myself!!

Anyway a rally day is a binary code for Todays high being higher than yesterdays high which is higher than the day befores high,and todays low is Greater or equal to yesterdays low.

That would be written If(H > Ref(H,-1)and Ref(H,-1) > Ref(H,-2) and L > =Ref(L,-1) and Ref(L,-1) > =ref(L,-2),1,0)

Now if you compare my code with Rally() youll notice that Rally() plots more often than My code.

This is because I feel if you take the explaination literally in the Metastock formula language then mine is shall we say-------- more correct.

Jose you may take me to task on that!!

Still the reverse for short.

If(L < Ref(L,-1)and Ref(L,-1) < Ref(L,-2) and H < =Ref(H,-1) and Ref(H,-1) < =ref(H,-2),1,0)

tech

arpad_37
24th May 2003, 07:39 AM
Thanks Guys,

"Rally" actually refers to the last two days' highs and lows not including day before yesterday's - as described by tech. I have just hard coded the opposite for Shorts. Thanks guys for your help.

Arpad