TMA_CG: EA to buy at support & sell at resistance

Post Reply
User avatar
SpiderX
Trader
Posts: 554
Joined: Thu Aug 22, 2013 4:50 pm

Re: TMA_CG: EA to buy at support & sell at resistance

Post by SpiderX »

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

Cheers
"Love is patient, love is kind. It does not envy, it does not boast, it is not proud. It does not dishonor others, it is not self-seeking, it is not easily angered, it keeps no record of wrongs.Love does not delight in evil but rejoices with the truth. It always protects, always trusts, always hopes, always perseveres."
-Corinthians 13:4-8
dudest
Trader
Posts: 1847
Joined: Tue May 08, 2012 2:37 pm

Re: TMA_CG: EA to buy at support & sell at resistance

Post by dudest »

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!
dudest
Trader
Posts: 1847
Joined: Tue May 08, 2012 2:37 pm

Re: TMA_CG: EA to buy at support & sell at resistance

Post by dudest »

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! ]
dudest
Trader
Posts: 1847
Joined: Tue May 08, 2012 2:37 pm

Re: TMA_CG: EA to buy at support & sell at resistance

Post by dudest »

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!
dudest
Trader
Posts: 1847
Joined: Tue May 08, 2012 2:37 pm

Re: TMA_CG: EA to buy at support & sell at resistance

Post by dudest »

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
bazze

Re: TMA_CG: EA to buy at support & sell at resistance

Post by bazze »

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?
bazze

Re: TMA_CG: EA to buy at support & sell at resistance

Post by bazze »

dudest,my two last trades was also closed in profit :smile:
User avatar
varso
Trader
Posts: 44
Joined: Mon Oct 22, 2012 7:19 am

Re: TMA_CG: EA to buy at support & sell at resistance

Post by varso »

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.
You do not have the required permissions to view the files attached to this post.
dudest
Trader
Posts: 1847
Joined: Tue May 08, 2012 2:37 pm

Re: TMA_CG: EA to buy at support & sell at resistance

Post by dudest »

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
dudest
Trader
Posts: 1847
Joined: Tue May 08, 2012 2:37 pm

Re: TMA_CG: EA to buy at support & sell at resistance

Post by dudest »

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
Post Reply

Return to “Automated trading systems”