Hello
Is there a way to record trade details and export them to a Excel Spreadsheet?
Details to record:
Tradenumber
Opening price
Highest price recorded during trade
Lowest price recorded during trade
Closing price
Reason for asking is related to placement of StopLoss and JumpingStops.
Say we have a 200 pip StopLoss, and the trade reaches TakeProfit. I want to log the lowes point of the trade, look at the result of say 100 trades.
Now, if only 8 of a 100 trades reaches 200 pip stop, and all the others have lows ranging from 50 to 100 pips down, we could chang from a 200 to a 150 StopLoss without risking many more StopLoss hits.
Same for JumpingStop, what was high, should the jumps be larger/smaller?
Suggestion for what the Excel sheet could contain:
Tradenumber
Opening price, use a zero reference
Pips down - Open minus lowest recorded price
Pips up - Highest recored minus Open.
Close price
All results in a single column, for further analysis when we have all the need data. I can make Excel sheets, but a cannot for the life of me get data from CrapTurd4 into Excel
Thomas
(Sorry if this is not making sense, please tell me if i am wasting my time)
Individual trade analyzer Excel
-
Spectre
- Trader
- Posts: 39
- Joined: Mon Nov 05, 2012 6:18 am
- Location: Norway, the most taxed place on earth(maybe)
Individual trade analyzer Excel
" I'm not an alcoholic, i'm australian " - Lance
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Individual trade analyzer Excel
Just adding a reference here because people will read my posts here - some of them at least.
Maybe someone can come up with a solution to what you want. Hope someone does.

Maybe someone can come up with a solution to what you want. Hope someone does.
Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
- renexxxx
- Trader
- Posts: 860
- Joined: Sat Dec 31, 2011 3:48 am
Individual trade analyzer Excel
This needs to be done by an indicator that is always running on the account to be reported on.
This indicator would need to maintain for each ticket number, the high and low water marks since opening of the trade and when the trade is closed, a record should be added to a CSV file. The high and low water marks need to be updated frequently (every 1 second or so). The indicator must be resilient to Empty4 restarts and re-initialisations, so it would need to persist these high and low water marks eg. to a Global Variable (there are other ways too).
Let me know if this is sufficient to get you going.
This indicator would need to maintain for each ticket number, the high and low water marks since opening of the trade and when the trade is closed, a record should be added to a CSV file. The high and low water marks need to be updated frequently (every 1 second or so). The indicator must be resilient to Empty4 restarts and re-initialisations, so it would need to persist these high and low water marks eg. to a Global Variable (there are other ways too).
Let me know if this is sufficient to get you going.
-
Spectre
- Trader
- Posts: 39
- Joined: Mon Nov 05, 2012 6:18 am
- Location: Norway, the most taxed place on earth(maybe)
Individual trade analyzer Excel
Wow, thanks!SteveHopwood » Thu Mar 12, 2015 12:57 am wrote:Just adding a reference here because people will read my posts here - some of them at least.
Maybe someone can come up with a solution to what you want. Hope someone does.
" I'm not an alcoholic, i'm australian " - Lance
-
Spectre
- Trader
- Posts: 39
- Joined: Mon Nov 05, 2012 6:18 am
- Location: Norway, the most taxed place on earth(maybe)
Individual trade analyzer Excel
This sounds very good, exactly what i was thinking.renexxxx » Thu Mar 12, 2015 1:21 am wrote:This needs to be done by an indicator that is always running on the account to be reported on.
This indicator would need to maintain for each ticket number, the high and low water marks since opening of the trade and when the trade is closed, a record should be added to a CSV file. The high and low water marks need to be updated frequently (every 1 second or so). The indicator must be resilient to Empty4 restarts and re-initialisations, so it would need to persist these high and low water marks eg. to a Global Variable (there are other ways too).
Let me know if this is sufficient to get you going.
So the data logged in the CSV file would be imported into excel?
Now, if there is a kind soul in here that can code this. Coding indicator is worse than translating the dead sea scrolls.
" I'm not an alcoholic, i'm australian " - Lance
- renexxxx
- Trader
- Posts: 860
- Joined: Sat Dec 31, 2011 3:48 am
Individual trade analyzer Excel
Yes, that is correct. Excel can read Comma-Separated-Value (CSV) files.Spectre » Thu Mar 12, 2015 10:38 am wrote: So the data logged in the CSV file would be imported into excel?
It is actually not that bad, as you have nothing to do with time series data. But give me a few hours and I will knock something together.Spectre » Thu Mar 12, 2015 10:38 am wrote: Now, if there is a kind soul in here that can code this. Coding indicator is worse than translating the dead sea scrolls.
-
Spectre
- Trader
- Posts: 39
- Joined: Mon Nov 05, 2012 6:18 am
- Location: Norway, the most taxed place on earth(maybe)
Individual trade analyzer Excel
You, good sir, are magnificent.renexxxx » Thu Mar 12, 2015 1:43 am wrote:Yes, that is correct. Excel can read Comma-Separated-Value (CSV) files.Spectre » Thu Mar 12, 2015 10:38 am wrote: So the data logged in the CSV file would be imported into excel?
It is actually not that bad, as you have nothing to do with time series data. But give me a few hours and I will knock something together.Spectre » Thu Mar 12, 2015 10:38 am wrote: Now, if there is a kind soul in here that can code this. Coding indicator is worse than translating the dead sea scrolls.
Once again, this forum proves to be the superior place for forex and coding.
Thank you Steve for starting this forum and making it a beacon of light in the dark swamp that is forex and CrapTurd4. You probably get that a lot, but you and the rest of the forum deserve every last bit of it.
" I'm not an alcoholic, i'm australian " - Lance
-
Spectre
- Trader
- Posts: 39
- Joined: Mon Nov 05, 2012 6:18 am
- Location: Norway, the most taxed place on earth(maybe)
Individual trade analyzer Excel
In case you didn't think of it, the code should ignore trades already open as not to give false data at the beginning. If this is not possible, we can always manually remove data from the given trades.It is actually not that bad, as you have nothing to do with time series data. But give me a few hours and I will knock something together.
Thomas
" I'm not an alcoholic, i'm australian " - Lance
- renexxxx
- Trader
- Posts: 860
- Joined: Sat Dec 31, 2011 3:48 am
Individual trade analyzer Excel
You have to start somewhere. The code should be resilient to restarting Empty4 or re-initialising the indicator. If there were trades that were monitored by the indicator, and Empty4 is down for x-minutes, the High and Low water marks will exclude the movement within these x-minutes, and there is nothing we can do about that. When Empty4 and the indicator is restarted, it will resume monitoring open trades and update the High/Low water marks taken from before the x-minutes down time. In Excel you will never know whether the High/Low marks are a true representation of the real High/Low water marks, or whether there was a period within the life time of the open trade where the High/Low water marks were not updated. But this is life. It will be as good as it can be.Spectre » Thu Mar 12, 2015 11:14 am wrote: In case you didn't think of it, the code should ignore trades already open as not to give false data at the beginning. If this is not possible, we can always manually remove data from the given trades.
-
Spectre
- Trader
- Posts: 39
- Joined: Mon Nov 05, 2012 6:18 am
- Location: Norway, the most taxed place on earth(maybe)
Individual trade analyzer Excel
Ah, i understand. Thanks for educating me.renexxxx » Thu Mar 12, 2015 2:25 am wrote:You have to start somewhere. The code should be resilient to restarting Empty4 or re-initialising the indicator. If there were trades that were monitored by the indicator, and Empty4 is down for x-minutes, the High and Low water marks will exclude the movement within these x-minutes, and there is nothing we can do about that. When Empty4 and the indicator is restarted, it will resume monitoring open trades and update the High/Low water marks taken from before the x-minutes down time. In Excel you will never know whether the High/Low marks are a true representation of the real High/Low water marks, or whether there was a period within the life time of the open trade where the High/Low water marks were not updated. But this is life. It will be as good as it can be.Spectre » Thu Mar 12, 2015 11:14 am wrote: In case you didn't think of it, the code should ignore trades already open as not to give false data at the beginning. If this is not possible, we can always manually remove data from the given trades.
T
" I'm not an alcoholic, i'm australian " - Lance