PDA

View Full Version : New Graph


NeilW
20th September 2004, 11:14 AM
Hi,

I have attached a chart that I created in Excel but this is very difficult (for me any way) to create. It required a lot of massaging of the trade results from tradesim to get this chart.

http://www.users.bigpond.com/nwrightson/chart.jpg

The X Axis represents the number of days in a trade and the Y Axis indicates as per the field descriptors. The Field1 is actually the number of trades taken for a corresponding day. The number of trades taken was devided by 100 to be scaled into a similiar area as the rest of the chart.

From this I can easily see that with this system if I have been in a trade for longer than 20 days I'm probably better of exiting and putting my money elsewhere, hence the need for the time based stop.


Thanks,
Neil.

[/url]

David Samborsky
20th September 2004, 11:48 AM
There is a function called SetTimeStop which sets up a time based stop.

ExtFml(“TradeSim.SetTimeStop”,NBARS);

This function is used to limit the maximum number of bars before the RecordTrades function is forced to exit a trade irrespective of the condition of the ExitTrigger. When a trade is entered and a valid exit trigger has not been detected after NBARS have been counted the trade will automatically be terminated on the next bar. If NBARS is set to zero then the time stop will be disabled. A call to the Initialize function disables the effects of a call to this function.

The following example sets up a time stop to automatically exit a trade after 60 bars have passed and an ExitTrigger has not been detected.

ExtFml(“TradeSim.SetTimeStop”,60);

NeilW
22nd September 2004, 04:58 AM
David,

The idea is to only exit a position if a ceratin amount of profit has not been made within a certain time frame. This is a form of money management.
If the stcok goes up by greater than say 5% then we do not want to exit the trade based on time, it may still be going up. Instead we want to exit usnig our normal exits i.e parabolic stop etc.

won't the ExtFml(“TradeSim.SetTimeStop”,60); always exit me out of a position when the 60 days have been reached regardless of what the price is doing?

Neil.

NeilW
22nd September 2004, 05:03 AM
David,

Do you understand my graph?

It is intended to show the following
1) trade durations
2) return over these periods
3) losing trades
4) finacial loss and gain on these trades

Neil.

David Samborsky
22nd September 2004, 11:00 AM
I was thinking using the time stop in conjunction with the profit stop. which exits if you don't hit your profit target within a certain time.