stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

TMA_CG: EA to buy at support & sell at resistance
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3372
Page 11 of 30
Author:  SpiderX [ Wed Jan 15, 2014 3:51 pm ]
Post subject:  Re: TMA_CG: EA to buy at support & sell at resistance

A quick suggestion...maybe to reduce position size when selling in an uptrend and vice versa.
Back to you dudest.

Cheers
Author:  dudest [ Wed Jan 15, 2014 4:00 pm ]
Post subject:  Re: TMA_CG: EA to buy at support & sell at resistance

SpiderX » Wed Jan 15, 2014 6:31 pm wrote:Hi dudest,

Was zooming out the chart to see the pattern in losing trades for TMACG...note the purple circles.
Then it occured..."there should be a streak of losing sell trades on 10 Jan if this had started earlier"...Yellow Circle.
So went to check your myfxbook.....and seems that this guess was correct.

Think TMACG will have a string of losing trades if price stagnates on one side of the band during a trend.

Cheers
Right you are my good man!

I'm going through the loss trades to see whether we should use the middle band as both TP and outer boundary when price is trending in one direction (again using slope as a filter)

Very rough idea ( not done with analysis yet ):
--> If slope < -0.2 ( going down ) :
----------> BUYs TP at mid-band ( minus few pips buffer )
----------> SELLs are taken from mid-band and TP at lower band ( minus few pips buffer )

--> If slope > +0.2 ( going up ) :
----------> SELLs TP at mid-band ( minus few pips buffer )
----------> BUYs are taken from mid-band and TP at upper band ( minus few pips buffer )

# Normal operation for BUYs when: slope > -0.2
[ and absolutely no BUYs when slope < -0.6 ]

# Normal operation for SELLs when: slope < +0.2
[ and absolutely no SELLs when slop > +0.6 ]


I smell a Version "D" baking in the oven :)

Cheers!
Author:  dudest [ Wed Jan 15, 2014 4:02 pm ]
Post subject:  Re: TMA_CG: EA to buy at support & sell at resistance

bazze » Wed Jan 15, 2014 5:50 pm wrote:My account are shrinking,four losses in a row :arrrg: But,still on the bright side :lol: (ver.modB.)
Relax friend! Last two trades closed in profit.

[ clawing back! ]
Author:  dudest [ Wed Jan 15, 2014 4:07 pm ]
Post subject:  Re: TMA_CG: EA to buy at support & sell at resistance

vadlapatis » Wed Jan 15, 2014 6:47 pm wrote:Hello Every 1

today trades with TMA_CG

LIVE
tma_cg.PNG

DEMO
Nice one vadlapatis!, thanks for posting up.

I'm using the comments from this weeks trades to know at what slope values the trades were taken and thanks for including them in your screenshots!

I think we can make this better when price is staying in one half of the band. A draft solution is in the making

Cheers!
Author:  dudest [ Wed Jan 15, 2014 5:07 pm ]
Post subject:  Re: TMA_CG: EA to buy at support & sell at resistance

SpiderX » Wed Jan 15, 2014 6:51 pm wrote:A quick suggestion...maybe to reduce position size when selling in an uptrend and vice versa.
Back to you dudest.

Cheers
Nice one! That's one way to go about it.

Another way would be to move to BreakEven quicker and not stack

==

Options:

1. Reduce lotsize for counter-trend trades

2. Keep lotsize the same but move to BreakEven faster and don't stack

==

If the middle-band idea pans out, I think #2 would be the likely option. Else, we'll go with #1
Author:  bazze [ Wed Jan 15, 2014 5:50 pm ]
Post subject:  Re: TMA_CG: EA to buy at support & sell at resistance

dudest » Wed Jan 15, 2014 4:34 pm wrote:
bazze » Wed Jan 15, 2014 3:46 pm wrote:Sorry,dudest... I didn't see your questions before now :oops:
Here is the whole logfile(ver.C) for yesterday....As you see I have tested not only this EA,but I really hopes that you can use it anyway....Sorry again for the "delay" ;)
(Edit:Haven't uploaded such files before,that's the reason that I give you the whole file,I shall try to learn me how to copy/paste later :smile: ) Broker: Sensus...Acc.size:$5000...Leverage: 1:200
OK, so I downloaded Sensus Empty4 and ran some tests against my AxiTrader Empty4.

AxiTrader:
# EURUSD chart: MODE_LOTSIZE returns 100,000 ==> OK ( 1 std lot = 100,000 units of base currency )
# XAUUSD chart: MODE_LOTSIZE returns 100 ==> OK ( 1 std lot of gold = 100 troy ounces )

Sensus:
# EURUSD chart: MODE_LOTSIZE returns: 100,000 (standard)
# XAUSUD chart: MODE_LOTSIZE returns: 1 (NOT standard)[ i.e, 1 lot here = 1 troy ounce (100 times less than a standard a/c) ]

==

Case: ( using code from CalculateLotSize ). Account balance: $5k

Code: Select all

double FreeMargin = AccountBalance(); // don't worry about FreeMargin being used to ref to A/c Bal
----------> Std account: $5k
----------> Mini account: $5k

Code: Select all

double TickValue = MarketInfo(Symbol(),MODE_TICKVALUE) ;
----------> Std account: $1 per tick ( tick = 0.01 of price quote = 1 point )
----------> Mini account: $0.01 per tick ( tick = 0.01 of price quote = 1 point )

Code: Select all

double LotStep = MarketInfo(Symbol(),MODE_LOTSTEP);
----------> Std account: 0.01 lots (1000 units)
----------> Mini account: 0.01 lots (1000 units)

Code: Select all

double SLPts = StopLossPips /PFactor;
----------> Std account: 3.0
----------> Mini account: 3.0

Code: Select all

   
SLPts /= Point;  //No idea why *= factor does not work here, but it doesn't
----------> Std account: 3 / 0.01 = 300
----------> Mini account: 3 / 0.01 = 300

Code: Select all

   
double Exposure = SLPts * TickValue; // Exposure based on 1 full lot
----------> Std account: 300 * 1 = 300
----------> Mini account: 300 * 0.01 = 3

Code: Select all

double AllowedExposure = (FreeMargin * Risk) / 100;
----------> Std account: ( $5000 * 3 ) / 100 = $150
----------> Mini account: ( $5000 * 3 ) / 100 = $150

Code: Select all

   
int TotalSteps = ((AllowedExposure / Exposure) / LotStep);
----------> Std account: (150 / 300) / 0.01 = 50
----------> Mini account: (150 / 3) / 0.01 = 5000

Code: Select all

double Lots = TotalSteps * LotStep;
----------> Std account: 50 * 0.01 = 0.5 lots
----------> Mini account: 5000 * 0.01 = 50 lots


Which adds up coz 1 standard lot = 100 Sensus lots
==> 100 * 0.5 std lots = 50 Sensus lots


++++++++++++++++


So all is well in LotSize land.

@Bazze: Your broker says you are trading "50 lots" but they are not "50 standard lots", they basically work out to 0.5 standard lots
[ I had other not so pleasant words for brokers such as Sensus that add complexity and confusion to a straight-forward spec, but that's for another day... ]

At the end of the day, we are all risking 3% of our accounts.

Conclusion: the lot sizing is working correctly (regardless or std or mini accounts)

Cheers
Thank you for clarifying this :) Does your EA trade often?
Author:  bazze [ Wed Jan 15, 2014 5:58 pm ]
Post subject:  Re: TMA_CG: EA to buy at support & sell at resistance

dudest,my two last trades was also closed in profit :smile:
Author:  varso [ Wed Jan 15, 2014 9:43 pm ]
Post subject:  Re: TMA_CG: EA to buy at support & sell at resistance

The roboforex have another problem. After rewrite spread from 100 to 1000. It has open trade but come another problem with TP. Here is log

I open also demo account with armadamarkets and here is looks everythink ok.
Author:  dudest [ Wed Jan 15, 2014 10:43 pm ]
Post subject:  Re: TMA_CG: EA to buy at support & sell at resistance

bazze » Wed Jan 15, 2014 8:50 pm wrote:
Thank you for clarifying this :) Does your EA trade often?
From my trade history: 61 trades in 8 trading days (including stack trades) ==> about 7-8 trades a day

Cheers
Author:  dudest [ Wed Jan 15, 2014 10:47 pm ]
Post subject:  Re: TMA_CG: EA to buy at support & sell at resistance

varso » Thu Jan 16, 2014 12:43 am wrote:The roboforex have another problem. After rewrite spread from 100 to 1000. It has open trade but come another problem with TP. Here is log

I open also demo account with armadamarkets and here is looks everythink ok.
Hallo varso,

Please post me a screenshot of the trade from the Account History tab.

Thanks
All times are UTC Page 11 of 30